Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: lib/unittest/interactive_html_config.dart

Issue 10827165: Reverted a couple of earlier cleanups to the unittest framework. They introduced issues with cases … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/unittest/unittest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'master' 8 * IFrame, so the configuration consists of two parts - a 'master'
9 * config that manages all the tests, and a 'slave' config for the 9 * config that manages all the tests, and a 'slave' config for the
10 * IFrame that runs the individual tests. 10 * IFrame that runs the individual tests.
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // inline as attributes but that started getting very messy, 420 // inline as attributes but that started getting very messy,
421 // so we do it this way. 421 // so we do it this way.
422 document.body.nodes.add(new Element.html("<style>$_CSS</style>")); 422 document.body.nodes.add(new Element.html("<style>$_CSS</style>"));
423 document.body.nodes.add(new Element.html( 423 document.body.nodes.add(new Element.html(
424 "<div id='control'>" 424 "<div id='control'>"
425 "<input id='start' disabled='true' type='button' value='Run'>" 425 "<input id='start' disabled='true' type='button' value='Run'>"
426 "</div>")); 426 "</div>"));
427 document.query('#start').on.click.add((e) { 427 document.query('#start').on.click.add((e) {
428 InputElement startButton = document.query('#start'); 428 InputElement startButton = document.query('#start');
429 startButton.disabled = true; 429 startButton.disabled = true;
430 runTests(); 430 rerunTests();
431 }); 431 });
432 } 432 }
433 if (document.query('#otherlogs') == null) { 433 if (document.query('#otherlogs') == null) {
434 document.body.nodes.add(new Element.html( 434 document.body.nodes.add(new Element.html(
435 "<div id='otherlogs'></div>")); 435 "<div id='otherlogs'></div>"));
436 } 436 }
437 if (document.query('#specs') == null) { 437 if (document.query('#specs') == null) {
438 document.body.nodes.add(new Element.html( 438 document.body.nodes.add(new Element.html(
439 "<div id='specs'><div id='group-divs'></div></div>")); 439 "<div id='specs'><div id='group-divs'></div></div>"));
440 } 440 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 display: block; 653 display: block;
654 list-style-type: disc; 654 list-style-type: disc;
655 -webkit-margin-before: 1em; 655 -webkit-margin-before: 1em;
656 -webkit-margin-after: 1em; 656 -webkit-margin-after: 1em;
657 -webkit-margin-start: 0px; 657 -webkit-margin-start: 0px;
658 -webkit-margin-end: 0px; 658 -webkit-margin-end: 0px;
659 -webkit-padding-start: 40px; 659 -webkit-padding-start: 40px;
660 } 660 }
661 661
662 """; 662 """;
OLDNEW
« no previous file with comments | « no previous file | lib/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698