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

Unified Diff: tests/html/location_test.dart

Issue 16026004: Fix a test after recent uri change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/location_test.dart
diff --git a/tests/html/location_test.dart b/tests/html/location_test.dart
index 36adf4d717c8e788bcb76f0428e4a0979183691e..d5c8e5e7c3ca3007387e293980b31f4b3fd8719a 100644
--- a/tests/html/location_test.dart
+++ b/tests/html/location_test.dart
@@ -22,7 +22,7 @@ main() {
var origin = window.location.origin;
// We build up the origin from Uri, then make sure that it matches.
- var uri = new Uri(window.location.href);
+ var uri = Uri.parse(window.location.href);
var reconstructedOrigin = '${uri.scheme}://${uri.host}';
if (uri.port != 0) {
reconstructedOrigin = '$reconstructedOrigin:${uri.port}';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698