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

Unified Diff: tests/standalone/io/windows_environment_script.dart

Issue 13799012: Fix windows tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « no previous file | tests/standalone/io/windows_environment_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/windows_environment_script.dart
diff --git a/tests/standalone/io/windows_environment_script.dart b/tests/standalone/io/windows_environment_script.dart
index d0fce497f02ba5a2250038b33df1043d9fa439ce..f142163b480ef7971010367a4cf02a476892c6c0 100644
--- a/tests/standalone/io/windows_environment_script.dart
+++ b/tests/standalone/io/windows_environment_script.dart
@@ -6,9 +6,9 @@ import "dart:io";
main() {
var scriptDir = Platform.environment['SCRIPTDIR'];
- Expect.isTrue(scriptDir.contains('å'));
+ if (!scriptDir.contains('å')) throw "scriptDir not containing character å";
scriptDir = Platform.environment['ScriptDir'];
- Expect.isTrue(scriptDir.contains('å'));
+ if (!scriptDir.contains('å')) throw "scriptDir not containing character å";
var str = new File('$scriptDir/funky.bat').readAsStringSync();
- Expect.isTrue(str.contains('%~dp0'));
+ if (!str.contains('%~dp0')) throw "str not containing dp0";
}
« no previous file with comments | « no previous file | tests/standalone/io/windows_environment_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698