| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 * This configuration can be used to rerun selected tests, as well | 6 * This configuration can be used to rerun selected tests, as well |
| 7 * as see diagnostic output from tests. It runs each test in its own | 7 * as see diagnostic output from tests. It runs each test in its own |
| 8 * IFrame, so the configuration consists of two parts - a 'parent' | 8 * IFrame, so the configuration consists of two parts - a 'parent' |
| 9 * config that manages all the tests, and a 'child' config for the | 9 * config that manages all the tests, and a 'child' config for the |
| 10 * IFrame that runs the individual tests. | 10 * IFrame that runs the individual tests. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ++idx2; | 57 ++idx2; |
| 58 var body = msg.substring(idx2); | 58 var body = msg.substring(idx2); |
| 59 | 59 |
| 60 return new _Message(messageType, elapsed, body); | 60 return new _Message(messageType, elapsed, body); |
| 61 } | 61 } |
| 62 | 62 |
| 63 String toString() => text(messageType, elapsed, body); | 63 String toString() => text(messageType, elapsed, body); |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 class HtmlConfiguration extends Configuration { | 67 class HtmlConfiguration extends SimpleConfiguration { |
| 68 StreamSubscription _errorSubscription; | 68 StreamSubscription _errorSubscription; |
| 69 | 69 |
| 70 void _installErrorHandler() { | 70 void _installErrorHandler() { |
| 71 if (_errorSubscription == null) { | 71 if (_errorSubscription == null) { |
| 72 _errorSubscription = window.onError.listen((e) { | 72 _errorSubscription = window.onError.listen((e) { |
| 73 handleExternalError(e, '(DOM callback has errors)'); | 73 handleExternalError(e, '(DOM callback has errors)'); |
| 74 }); | 74 }); |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 ul, menu, dir { | 700 ul, menu, dir { |
| 701 display: block; | 701 display: block; |
| 702 list-style-type: disc; | 702 list-style-type: disc; |
| 703 -webkit-margin-before: 1em; | 703 -webkit-margin-before: 1em; |
| 704 -webkit-margin-after: 1em; | 704 -webkit-margin-after: 1em; |
| 705 -webkit-margin-start: 0px; | 705 -webkit-margin-start: 0px; |
| 706 -webkit-margin-end: 0px; | 706 -webkit-margin-end: 0px; |
| 707 -webkit-padding-start: 40px; | 707 -webkit-padding-start: 40px; |
| 708 } | 708 } |
| 709 """; | 709 """; |
| OLD | NEW |