| Index: tracing/tracing/base/headless_tests.html
|
| diff --git a/tracing/tracing/base/headless_tests.html b/tracing/tracing/base/headless_tests.html
|
| index f9b9975de26608b8cc50948e7f3eebd5de630156..7dbf551e15a886bf7c5347dc23b320f33c3282a9 100644
|
| --- a/tracing/tracing/base/headless_tests.html
|
| +++ b/tracing/tracing/base/headless_tests.html
|
| @@ -17,10 +17,11 @@ tr.exportTo('tr.b.unittest', function() {
|
| throw new Error('headless_tests.html only works in headless mode');
|
| }
|
| function quit(errCode) {
|
| - if (tr.isVinn)
|
| + if (tr.isVinn) {
|
| global.quit(errCode);
|
| - else
|
| + } else {
|
| process.exit(errCode);
|
| + }
|
| }
|
|
|
| function printSpacer() {
|
| @@ -37,8 +38,9 @@ tr.exportTo('tr.b.unittest', function() {
|
| p = p.then(
|
| function didAllSuitesLoad() {
|
| var tests = loader.getAllTests().filter(function(testCase) {
|
| - if (testCase instanceof tr.b.unittest.PerfTestCase)
|
| + if (testCase instanceof tr.b.unittest.PerfTestCase) {
|
| return false;
|
| + }
|
| return true;
|
| });
|
| if (tests.length === 0) {
|
| @@ -59,10 +61,11 @@ tr.exportTo('tr.b.unittest', function() {
|
|
|
| p = p.then(
|
| function didAllTestRun() {
|
| - if (results.numTestsThatFailed > 0)
|
| + if (results.numTestsThatFailed > 0) {
|
| quit(1);
|
| - else
|
| - quit(0);
|
| + } else {
|
| + quit(0);
|
| + }
|
| },
|
| function testHarnessError(e) {
|
| console.log('FAILED: A test harness error has ocurred.');
|
|
|