OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, 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 <html lang="en"> | 7 <html lang="en"> |
8 <head> | 8 <head> |
9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
11 <link rel="components" href="component_imports_component_c2a.html"> | 11 <link rel="components" href="component_imports_component_c2a.html"> |
12 <script type="application/javascript" src="testing.js"></script> | 12 <script type="application/javascript" src="testing.js"></script> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <!-- use component-a, which internally uses component-b defined in a separate | 15 <!-- use component-a, which internally uses component-b defined in a separate |
16 file --> | 16 file --> |
17 expect 'hello': <x-component-a></x-component-a> | 17 expect 'hello': <x-component-a></x-component-a> |
18 <script type="application/dart"> | 18 <script type="application/dart"> |
19 import 'dart:html'; | 19 import 'dart:html'; |
20 main() { | 20 main() { |
21 window.setTimeout(() => window.postMessage('done', '*'), 0); | 21 window.setImmediate(() => window.postMessage('done', '*')); |
22 } | 22 } |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
26 | 26 |
OLD | NEW |