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

Unified Diff: tests/standalone/src/OptionsTest.dart

Issue 9159013: Add script attribute to Options class, providing the name of the running script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« corelib/src/options.dart ('K') | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/OptionsTest.dart
diff --git a/tests/standalone/src/OptionsTest.dart b/tests/standalone/src/OptionsTest.dart
index caf0e123fe58969dd347cdf434cb0cfe9a1eb4a6..174c28df8faa2e6db80cfca6f7c6e772807bfe17 100644
--- a/tests/standalone/src/OptionsTest.dart
+++ b/tests/standalone/src/OptionsTest.dart
@@ -12,6 +12,8 @@ main() {
Expect.equals(10, Math.parseInt(opts.arguments[0]));
Expect.equals("OptionsTest", opts.arguments[1]);
Expect.equals(20, Math.parseInt(opts.arguments[2]));
+ Expect.isTrue(opts.script.replaceAll('\\', '/').
+ endsWith('tests/standalone/src/OptionsTest.dart'));
// Now add an additional argument.
opts.arguments.add("Fourth");
« corelib/src/options.dart ('K') | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698