mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 21:01:50 +00:00
Workaround for bug 11834 with Chrome XHR
R=efortuna@google.com Review URL: https://codereview.chromium.org//22877005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26028 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
9eb12ad303
commit
9f565af534
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,9 +45,6 @@ intl/test/date_time_format_http_request_test: Skip # Timeout.
|
|||
intl/test/date_time_format_http_request_test: Fail # Issue 8983
|
||||
mime/test/mime_multipart_transformer_test: Skip # No typed_data on IE9.
|
||||
|
||||
[ $runtime == chrome && $compiler == dart2js ]
|
||||
intl/test/date_time_format_http_request_test: Pass, Fail # Issue: 12376
|
||||
|
||||
[ $runtime == safari ]
|
||||
fixnum/test/int_64_test: Pass, Fail # Bug in JSC.
|
||||
crypto/test/hmac_sha1_test: Fail # Issue 11407.
|
||||
|
|
Loading…
Reference in a new issue