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

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

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « pkg/unittest/lib/html_layout_config.dart ('k') | pkg/unittest/lib/src/config.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 '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
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
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 """;
OLDNEW
« no previous file with comments | « pkg/unittest/lib/html_layout_config.dart ('k') | pkg/unittest/lib/src/config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698