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

Unified Diff: pkg/intl/lib/src/http_request_data_reader.dart

Issue 22877005: Workaround for bug 11834 with Chrome XHR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/http_request_data_reader.dart
diff --git a/pkg/intl/lib/src/http_request_data_reader.dart b/pkg/intl/lib/src/http_request_data_reader.dart
index 530dce6d2553e30ae5d8ddd53dd4c1ba7f7fdb8d..bd86d6687fb9f4e7af582976438b12de4fd05303 100644
--- a/pkg/intl/lib/src/http_request_data_reader.dart
+++ b/pkg/intl/lib/src/http_request_data_reader.dart
@@ -19,5 +19,10 @@ class HTTPRequestDataReader implements LocaleDataReader {
String url;
HTTPRequestDataReader(this.url);
- Future read(String locale) => HttpRequest.getString('$url$locale.json');
+ Future read(String locale) {
+ // TODO(alanknight): Remove this once it's not necessary for Chrome.
+ // Without it, the tests will be flaky on Chrome. Issue 11834.
+ var someNumber = new DateTime.now().millisecondsSinceEpoch;
+ return HttpRequest.getString('$url$locale.json?cacheBlocker=$someNumber');
+ }
}
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698