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

Unified Diff: tests/html/xhr_test.dart

Issue 13704011: Map enums to strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/html/canvas_test.dart ('k') | tools/dom/scripts/dartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/xhr_test.dart
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart
index 85d8cc3b0568146bbf2c42b2a1a47c1be2ace3dd..6214581348fa2f52c81539eae33689163c6e5af5 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -142,8 +142,6 @@ main() {
}));
});
- // TODO(antonm): enable again.
- if (false)
test('XHR.request responseType arraybuffer', () {
if (ArrayBuffer.supported) {
HttpRequest.request(url, responseType: 'arraybuffer').then(
@@ -166,20 +164,17 @@ main() {
});
});
- // TODO(antonm): enable again.
- /*
- *groupXX('xhr_requestBlob', () {
- * testXX('XHR.request responseType blob', () {
- * if (ArrayBuffer.supported) {
- * return HttpRequest.request(url, responseType: 'blob').then(
- * (xhr) {
- * expect(xhr.status, equals(200));
- * var blob = xhr.response;
- * expect(blob is Blob, isTrue);
- * expect(blob, isNotNull);
- * });
- * }
- * });
- *});
- */
+ group('xhr_requestBlob', () {
+ test('XHR.request responseType blob', () {
+ if (ArrayBuffer.supported) {
+ return HttpRequest.request(url, responseType: 'blob').then(
+ (xhr) {
+ expect(xhr.status, equals(200));
+ var blob = xhr.response;
+ expect(blob is Blob, isTrue);
+ expect(blob, isNotNull);
+ });
+ }
+ });
+ });
}
« no previous file with comments | « tests/html/canvas_test.dart ('k') | tools/dom/scripts/dartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698