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

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

Issue 52723007: Revert "Change dart:io Platform.script to return a Uri." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/standalone/io/https_unauthorized_test.dart ('k') | tests/standalone/io/print_sync_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/platform_test.dart
diff --git a/tests/standalone/io/platform_test.dart b/tests/standalone/io/platform_test.dart
index 85a7a4713ad3bb13dda7a64db72b8820ab799069..04494aac90cbc3dd8d4ca174519f65490ae0a738 100644
--- a/tests/standalone/io/platform_test.dart
+++ b/tests/standalone/io/platform_test.dart
@@ -25,7 +25,7 @@ test() {
var environment = Platform.environment;
Expect.isTrue(environment is Map<String, String>);
Expect.isTrue(Platform.executable.contains('dart'));
- Expect.isTrue(Platform.script.path.
+ Expect.isTrue(Platform.script.replaceAll('\\', '/').
endsWith('tests/standalone/io/platform_test.dart'));
Directory packageRoot = new Directory(Platform.packageRoot);
Expect.isTrue(packageRoot.existsSync());
@@ -48,7 +48,7 @@ testIsolate() {
port.first.then((results) {
Expect.equals(Platform.executable, results["Platform.executable"]);
- Uri uri = results["Platform.script"];
+ Uri uri = new Uri.file(results["Platform.script"]);
// SpawnFunction retains the script url of the parent which in this
// case was a relative path.
Expect.equals("file", uri.scheme);
« no previous file with comments | « tests/standalone/io/https_unauthorized_test.dart ('k') | tests/standalone/io/print_sync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698