| 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 /** Configuration for running tests in a browser using dart:dom_deprecated. */ | 5 /** Configuration for running tests in a browser using dart:dom_deprecated. */ |
| 6 #library('dom_config'); | 6 #library('dom_config'); |
| 7 | 7 |
| 8 #import('dart:dom_deprecated'); | 8 #import('dart:dom_deprecated'); |
| 9 #import('unittest.dart'); | 9 #import('unittest.dart'); |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 window.removeEventListener('error', _onErrorClosure); | 37 window.removeEventListener('error', _onErrorClosure); |
| 38 _showResultsInPage(passed, failed, errors, results, _isLayoutTest, | 38 _showResultsInPage(passed, failed, errors, results, _isLayoutTest, |
| 39 uncaughtError); | 39 uncaughtError); |
| 40 window.postMessage('unittest-suite-done', '*'); | 40 window.postMessage('unittest-suite-done', '*'); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 void useDomConfiguration([bool isLayoutTest = false]) { | 44 void useDomConfiguration([bool isLayoutTest = false]) { |
| 45 configure(new DomConfiguration(isLayoutTest)); | 45 configure(new DomConfiguration(isLayoutTest)); |
| 46 } | 46 } |
| OLD | NEW |