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:
alanknight@google.com 2013-08-12 20:33:04 +00:00
parent 9eb12ad303
commit 9f565af534
2 changed files with 6 additions and 4 deletions

View file

@ -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');
}
}

View file

@ -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.