Index: tests/html/typed_arrays_4_test.dart |
diff --git a/tests/html/typed_arrays_4_test.dart b/tests/html/typed_arrays_4_test.dart |
index 112e38293c956e58cbbe57422bd71d51966f1937..45852d0239edbf2f8a3ad35a27b25fac1c209f90 100644 |
--- a/tests/html/typed_arrays_4_test.dart |
+++ b/tests/html/typed_arrays_4_test.dart |
@@ -10,6 +10,11 @@ import 'dart:html'; |
main() { |
useHtmlConfiguration(); |
+ // Only perform tests if ArrayBuffer is supported. |
+ if (!ArrayBuffer.supported) { |
+ return; |
+ } |
+ |
test('indexOf_dynamic', () { |
var a1 = new Uint8Array(1024); |
for (int i = 0; i < a1.length; i++) { |