Robert Ginda | cf288e5 | 2012-10-15 11:13:52 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2012 The Chromium OS 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 | |
| 5 | 'use strict'; |
| 6 | |
| 7 | var testManager; |
| 8 | var testRun; |
| 9 | |
| 10 | window.onload = function() { |
| 11 | lib.rtdep(hterm.testDeps); |
| 12 | |
| 13 | hterm.defaultStorage = new lib.Storage.Memory(); |
| 14 | |
| 15 | lib.init(lib.f.alarm(function() { |
| 16 | testManager = new lib.TestManager(); |
| 17 | testRun = testManager.createTestRun({window: window}); |
| 18 | |
| 19 | // Stop after the first failure to make it easier to debug in the |
| 20 | // JS console. |
| 21 | testRun.maxFailures = 1; |
| 22 | |
| 23 | testRun.selectPattern(testRun.ALL_TESTS); |
| 24 | testRun.run(); |
| 25 | |
| 26 | }), console.log.bind(console)); |
| 27 | }; |