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

Side by Side Diff: pkg/unittest/html_enhanced_config.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. 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/core_matchers.dart ('k') | pkg/unittest/mock.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 * A simple unit test library for running tests in a browser. 6 * A simple unit test library for running tests in a browser.
7 * 7 *
8 * Provides enhanced HTML output with collapsible group headers 8 * Provides enhanced HTML output with collapsible group headers
9 * and other at-a-glance information about the test results. 9 * and other at-a-glance information about the test results.
10 */ 10 */
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 groupedBy[t.currentGroup] = new List<TestCase>(); 146 groupedBy[t.currentGroup] = new List<TestCase>();
147 } 147 }
148 148
149 groupedBy[t.currentGroup].add(t); 149 groupedBy[t.currentGroup].add(t);
150 } 150 }
151 151
152 // flatten the list again with tests ordered 152 // flatten the list again with tests ordered
153 List<TestCase> flattened = new List<TestCase>(); 153 List<TestCase> flattened = new List<TestCase>();
154 154
155 groupedBy 155 groupedBy
156 .getValues() 156 .values
157 .forEach((tList){ 157 .forEach((tList){
158 tList.sort((tcA, tcB) => tcA.id - tcB.id); 158 tList.sort((tcA, tcB) => tcA.id - tcB.id);
159 flattened.addAll(tList); 159 flattened.addAll(tList);
160 } 160 }
161 ); 161 );
162 162
163 var nonAlphanumeric = new RegExp('[^a-z0-9A-Z]'); 163 var nonAlphanumeric = new RegExp('[^a-z0-9A-Z]');
164 164
165 // output group headers and test rows 165 // output group headers and test rows
166 for (final test_ in flattened) { 166 for (final test_ in flattened) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 .unittest-row-description 406 .unittest-row-description
407 { 407 {
408 } 408 }
409 409
410 '''; 410 ''';
411 } 411 }
412 412
413 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { 413 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) {
414 configure(new HtmlEnhancedConfiguration(isLayoutTest)); 414 configure(new HtmlEnhancedConfiguration(isLayoutTest));
415 } 415 }
OLDNEW
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698