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
3// found in the LICENSE file.
4
5function addTests() {
6  common.tester.addAsyncTest('nacl_io_test', function (test) {
7    var intervalId = window.setInterval(function () {
8      if (!testsFinished)
9        return;
10
11      window.clearInterval(intervalId);
12      if (failedTests > 0)
13        test.fail('tests failed');
14      else
15        test.pass();
16    }, 100);
17  });
18}
19