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

Unified Diff: tests/html/typed_arrays_arraybuffer_test.dart

Issue 11757002: Fixing ArrayBuffer et al on IE. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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/typed_arrays_5_test.dart ('k') | tests/html/typed_arrays_dataview_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/html/typed_arrays_5_test.dart ('k') | tests/html/typed_arrays_dataview_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698