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

Unified Diff: tests/corelib/uri_query_test.dart

Issue 335773003: Revert "Try to retain original structure of URI." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/corelib/uri_http_test.dart ('k') | tests/corelib/uri_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_query_test.dart
diff --git a/tests/corelib/uri_query_test.dart b/tests/corelib/uri_query_test.dart
index 6ec657cdbe9355ce5b6e62dd001b21f3d1f64140..bb21f9bc0de206ddd9216c2ece36a9e5b3783eef 100644
--- a/tests/corelib/uri_query_test.dart
+++ b/tests/corelib/uri_query_test.dart
@@ -23,7 +23,11 @@ void testQueryParameters() {
if (normalizedQuery == null) normalizedQuery = query;
check(uri) {
Expect.equals(normalizedQuery, uri.query);
- Expect.equals("?$normalizedQuery", uri.toString());
+ if (query.isEmpty) {
+ Expect.equals(normalizedQuery, uri.toString());
+ } else {
+ Expect.equals("?$normalizedQuery", uri.toString());
+ }
if (parameters.containsValue(null)) {
var map = new Map.from(parameters);
map.forEach((k, v) { if (v == null) map[k] = ""; });
« no previous file with comments | « tests/corelib/uri_http_test.dart ('k') | tests/corelib/uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698