| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 } | 462 } |
| 463 | 463 |
| 464 /** | 464 /** |
| 465 * Allocate a Configuration. We allocate either a parent or | 465 * Allocate a Configuration. We allocate either a parent or |
| 466 * child, depending on whether the URL has a search part. | 466 * child, depending on whether the URL has a search part. |
| 467 */ | 467 */ |
| 468 void useInteractiveHtmlConfiguration() { | 468 void useInteractiveHtmlConfiguration() { |
| 469 if (config != null) return; | 469 if (config != null) return; |
| 470 if (window.location.search == '') { // This is the parent. | 470 if (window.location.search == '') { // This is the parent. |
| 471 _prepareDom(); | 471 _prepareDom(); |
| 472 configure(new ParentInteractiveHtmlConfiguration()); | 472 config = new ParentInteractiveHtmlConfiguration(); |
| 473 } else { | 473 } else { |
| 474 configure(new ChildInteractiveHtmlConfiguration()); | 474 config = new ChildInteractiveHtmlConfiguration(); |
| 475 } | 475 } |
| 476 } | 476 } |
| 477 | 477 |
| 478 String _CSS = """ | 478 String _CSS = """ |
| 479 body { | 479 body { |
| 480 font-family: Arial, sans-serif; | 480 font-family: Arial, sans-serif; |
| 481 margin: 0; | 481 margin: 0; |
| 482 font-size: 14px; | 482 font-size: 14px; |
| 483 } | 483 } |
| 484 | 484 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 display: block; | 667 display: block; |
| 668 list-style-type: disc; | 668 list-style-type: disc; |
| 669 -webkit-margin-before: 1em; | 669 -webkit-margin-before: 1em; |
| 670 -webkit-margin-after: 1em; | 670 -webkit-margin-after: 1em; |
| 671 -webkit-margin-start: 0px; | 671 -webkit-margin-start: 0px; |
| 672 -webkit-margin-end: 0px; | 672 -webkit-margin-end: 0px; |
| 673 -webkit-padding-start: 40px; | 673 -webkit-padding-start: 40px; |
| 674 } | 674 } |
| 675 | 675 |
| 676 """; | 676 """; |
| OLD | NEW |