blob: 05f39abe97b67e73a458c725fb08e479018bcdae [file] [log] [blame]
Robert Gindacf288e52012-10-15 11:13:52 -07001// 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
7var testManager;
8var testRun;
9
10window.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};