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

Unified Diff: pkg/unittest/lib/html_individual_config.dart

Issue 11377043: Fix stale copy of unittest config. (Closed) Base URL: http://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/html_individual_config.dart
===================================================================
--- pkg/unittest/lib/html_individual_config.dart (revision 14664)
+++ pkg/unittest/lib/html_individual_config.dart (working copy)
@@ -9,11 +9,12 @@
* the entire test file.
*
* To use, import this file, and call [useHtmlIndividualConfiguration] at the
- * start of your set sequence. Your group descriptions MUST NOT contain spaces.
+ * start of your set sequence. Important constraint: your group descriptions
+ * MUST NOT contain spaces.
*/
#library('unittest');
-#import('unittest.dart', prefix: 'unittest_file');
+#import('unittest.dart', prefix: 'unittest');
#import('html_config.dart', prefix: 'htmlconfig');
#import('dart:html');
@@ -23,15 +24,13 @@
HtmlIndividualConfiguration(isLayoutTest): super(isLayoutTest);
void onStart() {
- var testName = window.location.hash;
- if (testName != '') {
+ var testGroupName = window.location.hash;
+ if (testGroupName != '') {
try {
- testName = testName.substring(1); // cut off the #
- unittest_file.filterTests('^$testName');
+ testGroupName = testGroupName.substring(1); // cut off the #
+ unittest.filterTests('^$testGroupName');
} catch (e) {
- print('tried to match "$testName"');
- for (TestCase c in unittest_file.testCases)
- print('test case ${c.description}');
+ print('tried to match "$testGroupName"');
print('NO_SUCH_TEST');
exit(1);
}
@@ -41,5 +40,5 @@
}
void useHtmlIndividualConfiguration([bool isLayoutTest = false]) {
- unittest_file.configure(new HtmlIndividualConfiguration(isLayoutTest));
+ unittest.configure(new HtmlIndividualConfiguration(isLayoutTest));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698