Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: native_client_sdk/src/tests/nacl_io_socket_test/test.js

Issue 61213002: [NaCl SDK] Run nacl_io_socket_test on the bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove removeModule(), it causes a race condition for fast tests Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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('nacl_io_socket_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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698