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

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

Issue 12452004: pkg/unittest: locking down TestCase (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed to not break other alternative test configurations Created 7 years, 9 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
OLDNEW
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void onInit() { 239 void onInit() {
240 _installErrorHandler(); 240 _installErrorHandler();
241 document.query('#group-divs').innerHtml = ""; 241 document.query('#group-divs').innerHtml = "";
242 } 242 }
243 243
244 void onStart() { 244 void onStart() {
245 _installErrorHandler(); 245 _installErrorHandler();
246 if (!_doneWrap) { 246 if (!_doneWrap) {
247 _doneWrap = true; 247 _doneWrap = true;
248 for (int i = 0; i < testCases.length; i++) { 248 for (int i = 0; i < testCases.length; i++) {
249 testCases[i].test = wrapTest(testCases[i]); 249 testCases[i].testFunction = wrapTest(testCases[i]);
250 testCases[i].setUp = null; 250 testCases[i].setUp = null;
251 testCases[i].tearDown = null; 251 testCases[i].tearDown = null;
252 } 252 }
253 } 253 }
254 assert(_messageSubscription == null); 254 assert(_messageSubscription == null);
255 _messageSubscription = window.onMessage.listen(_handleMessage); 255 _messageSubscription = window.onMessage.listen(_handleMessage);
256 } 256 }
257 257
258 static final _notAlphaNumeric = new RegExp('[^a-z0-9A-Z]'); 258 static final _notAlphaNumeric = new RegExp('[^a-z0-9A-Z]');
259 259
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 """;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698