Index: tests/html/typed_arrays_arraybuffer_test.dart |
diff --git a/tests/html/typed_arrays_arraybuffer_test.dart b/tests/html/typed_arrays_arraybuffer_test.dart |
index 69d8d28d26c5c7bd85890501f7eef00a1e7ca574..21fbc7a5e4799b963eb21c54b5f594b4a666e8ec 100644 |
--- a/tests/html/typed_arrays_arraybuffer_test.dart |
+++ b/tests/html/typed_arrays_arraybuffer_test.dart |
@@ -10,6 +10,11 @@ import 'dart:html'; |
main() { |
useHtmlConfiguration(); |
+ // Only perform tests if ArrayBuffer is supported. |
+ if (!ArrayBuffer.supported) { |
+ return; |
+ } |
+ |
test('constructor', () { |
var a = new ArrayBuffer(100); |
expect(a.byteLength, 100); |