OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * A simple unit test library for running tests in a browser. | 6 * A simple unit test library for running tests in a browser. |
7 */ | 7 */ |
8 #library('unittest'); | 8 #library('unittest'); |
9 | 9 |
10 #import('dart:html'); | 10 #import('dart:html'); |
(...skipping 27 matching lines...) Expand all Loading... |
38 window.on.error.remove(_onErrorClosure); | 38 window.on.error.remove(_onErrorClosure); |
39 _showResultsInPage(passed, failed, errors, results, _isLayoutTest, | 39 _showResultsInPage(passed, failed, errors, results, _isLayoutTest, |
40 uncaughtError); | 40 uncaughtError); |
41 window.postMessage('unittest-suite-done', '*'); | 41 window.postMessage('unittest-suite-done', '*'); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 void useHtmlConfiguration([bool isLayoutTest = false]) { | 45 void useHtmlConfiguration([bool isLayoutTest = false]) { |
46 configure(new HtmlConfiguration(isLayoutTest)); | 46 configure(new HtmlConfiguration(isLayoutTest)); |
47 } | 47 } |
OLD | NEW |