Index: tests/corelib/uri_test.dart |
diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart |
index a9166be3c11d0dd205f6be6fbfef99b9e504cc00..7ef2c1c1f71afb3835307efc546894a9ae80339a 100644 |
--- a/tests/corelib/uri_test.dart |
+++ b/tests/corelib/uri_test.dart |
@@ -24,6 +24,7 @@ testUri(String uriText, bool isAbsolute) { |
Expect.equals(uri, uri2); |
Expect.equals(uri.hashCode, uri2.hashCode); |
+ |
Harry Terkelsen
2016/07/18 22:48:12
nit: delete
keertip
2016/07/18 23:29:32
Done.
|
// Test that removeFragment doesn't change anything else. |
if (uri.hasFragment) { |
Expect.equals(Uri.parse(uriText.substring(0, uriText.indexOf('#'))), |
@@ -32,6 +33,11 @@ testUri(String uriText, bool isAbsolute) { |
Expect.equals(uri, |
Uri.parse(uriText + "#fragment").removeFragment()); |
} |
+ |
+ // Test uri.replace on uri with fragment |
+ uri = Uri.parse('http://hello.com/fake#fragment'); |
+ uri = uri.replace(path: "D/E/E"); |
+ Expect.stringEquals('http://hello.com/D/E/E#fragment', uri.toString()); |
} |
testEncodeDecode(String orig, String encoded) { |