");} var testCase = {'fn': fn, 'defer': deferred}; suite.add(testName, testCase); var testName = 'serializeTextNode'; var deferred = false; var fn = function() {serializeTextNode("hello ");} var testCase = {'fn': fn, 'defer': deferred}; suite.add(testName, testCase); suite.on('start', pageController.onStartHandler); suite.on('cycle', pageController.onCycleHandler); suite.on('abort', pageController.onAbortHandler); suite.on('error', pageController.onErrorHandler); suite.on('reset', pageController.onResetHandler); suite.on('complete', pageController.onCompleteHandler); suite.run({ 'async': true });