OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
6 --> | 6 --> |
7 <!-- | 7 <!-- |
8 START_HTML_DART_TEST | 8 START_HTML_DART_TEST |
9 { | 9 { |
10 "scripts": [ ], | 10 "scripts": [ ], |
11 "expectedMessages": ["hest", "fisk"] | 11 "expectedMessages": ["hest", "fisk"] |
12 } | 12 } |
13 END_HTML_DART_TEST | 13 END_HTML_DART_TEST |
14 --> | 14 --> |
15 <html> | 15 <html> |
16 <head> | 16 <head> |
17 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> | 17 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> |
18 <title>No Linked Scripts HTML test</title> | 18 <title>No Linked Scripts HTML test</title> |
19 </head><body> | 19 </head><body> |
20 <h1>No Linked Scripts HTML test</h1> | 20 <h1>No Linked Scripts HTML test</h1> |
21 <script> | 21 <script> |
22 window.postMessage('fisk', '*'); | 22 window.postMessage('fisk', '*'); |
23 window.postMessage('ged', '*'); | 23 window.postMessage('ged', '*'); |
24 window.postMessage('fisk', '*'); | 24 window.postMessage('fisk', '*'); |
25 | 25 |
26 function delayed() { | 26 function delayed() { |
27 parent.postMessage('ko', '*'); | 27 parent.postMessage('ko', '*'); |
28 window.postMessage('hest', '*'); | 28 window.postMessage('hest', '*'); |
29 } | 29 } |
30 setTimeout(delayed, 5000); | 30 setTimeout(delayed, 500); |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |