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

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

Issue 12824008: Making it easier to run individual HTML tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« pkg/unittest/lib/html_config.dart ('K') | « pkg/unittest/lib/html_config.dart ('k') | 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
diff --git a/pkg/unittest/lib/html_individual_config.dart b/pkg/unittest/lib/html_individual_config.dart
index f722a6d3e5cd761930244bdaefcd97f88aac41d7..2432a55733c6f186df379a1082522b17ffe8ef71 100644
--- a/pkg/unittest/lib/html_individual_config.dart
+++ b/pkg/unittest/lib/html_individual_config.dart
@@ -24,15 +24,15 @@ class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration {
HtmlIndividualConfiguration(isLayoutTest): super(isLayoutTest);
void onStart() {
- var testGroupName = window.location.search;
- if (testGroupName != '') {
+ var search = window.location.search;
+ if (search != '') {
blois 2013/03/14 18:02:14 This is a slightly unrelated change, but basically
try {
- for (var parameter in testGroupName.substring(1).split('&')) {
+ for (var parameter in search.substring(1).split('&')) {
if (parameter.startsWith('group=')) {
- testGroupName = parameter.split('=')[1];
+ var testGroupName = parameter.split('=')[1];
+ unittest.filterTests('^$testGroupName${unittest.groupSep}');
}
}
- unittest.filterTests('^$testGroupName${unittest.groupSep}');
} catch (e) {
print('tried to match "$testGroupName"');
print('NO_SUCH_TEST');
« pkg/unittest/lib/html_config.dart ('K') | « pkg/unittest/lib/html_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698