OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 function addTests() { | 5 function addTests() { |
6 common.tester.addAsyncTest('nacl_io_test', function (test) { | 6 common.tester.addAsyncTest('sdk_util_test', function (test) { |
7 var intervalId = window.setInterval(function () { | 7 var intervalId = window.setInterval(function () { |
8 if (!testsFinished) | 8 if (!testsFinished) |
9 return; | 9 return; |
10 | 10 |
11 window.clearInterval(intervalId); | 11 window.clearInterval(intervalId); |
12 if (failedTests > 0) | 12 if (failedTests > 0) |
13 test.fail('tests failed'); | 13 test.fail('tests failed'); |
14 else | 14 else |
15 test.pass(); | 15 test.pass(); |
16 }, 100); | 16 }, 100); |
17 }); | 17 }); |
18 } | 18 } |
OLD | NEW |