OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file | 3 // BSD-style license that can be found in the LICENSE file |
4 | 4 |
5 library postmessage_js_test; | 5 library postmessage_js_test; |
6 import '../../pkg/unittest/lib/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
7 import '../../pkg/unittest/lib/html_individual_config.dart'; | 7 import 'package:unittest/html_individual_config.dart'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'dart:collection'; // SplayTreeMap | 9 import 'dart:collection'; // SplayTreeMap |
10 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
11 import 'utils.dart'; | 11 import 'utils.dart'; |
12 | 12 |
13 injectSource(code) { | 13 injectSource(code) { |
14 final script = new ScriptElement(); | 14 final script = new ScriptElement(); |
15 script.type = 'text/javascript'; | 15 script.type = 'text/javascript'; |
16 script.innerHtml = code; | 16 script.innerHtml = code; |
17 document.body.append(script); | 17 document.body.append(script); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 var typed_arrays_list = [view_a, array_buffer, view_b]; | 143 var typed_arrays_list = [view_a, array_buffer, view_b]; |
144 | 144 |
145 // Note that FF is failing this test because in the sent message: | 145 // Note that FF is failing this test because in the sent message: |
146 // view_a.buffer == array_buffer | 146 // view_a.buffer == array_buffer |
147 // But in the response: | 147 // But in the response: |
148 // view_a.buffer != array_buffer | 148 // view_a.buffer != array_buffer |
149 go('typed_arrays_list', typed_arrays_list); | 149 go('typed_arrays_list', typed_arrays_list); |
150 }); | 150 }); |
151 | 151 |
152 } | 152 } |
OLD | NEW |