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

Unified Diff: lib/testing/render_test.dart

Issue 5885170347409408: Add location information to watchers to make them more debuggable. (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « lib/templating.dart ('k') | lib/watcher.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/testing/render_test.dart
diff --git a/lib/testing/render_test.dart b/lib/testing/render_test.dart
index 0c03abdb5e4bca7760fbf4de9f2f04bf35d5c0c4..80ddb5a3e59f451ade437006d01c343c5c3d92d9 100644
--- a/lib/testing/render_test.dart
+++ b/lib/testing/render_test.dart
@@ -20,7 +20,8 @@ void renderTests(String baseDir, String inputDir, String expectedDir,
if (arguments == null) arguments = new Options().arguments;
if (script == null) script = new Options().script;
- var filePattern = new RegExp(pattern != null ? pattern : '.');
+ var filePattern = new RegExp(pattern != null ? pattern
+ : (arguments.length > 0 ? arguments.removeAt(0) : '.'));
var scriptDir = path.absolute(path.dirname(script));
baseDir = path.join(scriptDir, baseDir);
« no previous file with comments | « lib/templating.dart ('k') | lib/watcher.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698