summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/tests/nacl_io_socket_test/test.js
blob: 88648bac181cda446131a76de6e41c53795dc3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function addTests() {
  common.tester.addAsyncTest('nacl_io_socket_test', function (test) {
    var intervalId = window.setInterval(function () {
      if (!testsFinished)
        return;

      window.clearInterval(intervalId);
      if (failedTests > 0)
        test.fail('tests failed');
      else
        test.pass();
    }, 100);
  });
}