OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 _doneWrap = true; | 251 _doneWrap = true; |
252 for (int i = 0; i < testCases.length; i++) { | 252 for (int i = 0; i < testCases.length; i++) { |
253 testCases[i].test = wrapTest(testCases[i]); | 253 testCases[i].test = wrapTest(testCases[i]); |
254 testCases[i].setUp = null; | 254 testCases[i].setUp = null; |
255 testCases[i].tearDown = null; | 255 testCases[i].tearDown = null; |
256 } | 256 } |
257 } | 257 } |
258 window.on.message.add(_messageHandler); | 258 window.on.message.add(_messageHandler); |
259 } | 259 } |
260 | 260 |
261 static final _notAlphaNumeric = new RegExp('[^a-z0-9A-Z]'); | 261 static const _notAlphaNumeric = const RegExp('[^a-z0-9A-Z]'); |
262 | 262 |
263 String _stringToDomId(String s) { | 263 String _stringToDomId(String s) { |
264 if (s.length == 0) { | 264 if (s.length == 0) { |
265 return '-None-'; | 265 return '-None-'; |
266 } | 266 } |
267 return s.trim().replaceAll(_notAlphaNumeric, '-'); | 267 return s.trim().replaceAll(_notAlphaNumeric, '-'); |
268 } | 268 } |
269 | 269 |
270 // Used for DOM element IDs for tests result list entries. | 270 // Used for DOM element IDs for tests result list entries. |
271 static const _testIdPrefix = 'test-'; | 271 static const _testIdPrefix = 'test-'; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 display: block; | 664 display: block; |
665 list-style-type: disc; | 665 list-style-type: disc; |
666 -webkit-margin-before: 1em; | 666 -webkit-margin-before: 1em; |
667 -webkit-margin-after: 1em; | 667 -webkit-margin-after: 1em; |
668 -webkit-margin-start: 0px; | 668 -webkit-margin-start: 0px; |
669 -webkit-margin-end: 0px; | 669 -webkit-margin-end: 0px; |
670 -webkit-padding-start: 40px; | 670 -webkit-padding-start: 40px; |
671 } | 671 } |
672 | 672 |
673 """; | 673 """; |
OLD | NEW |