OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 2 Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
3 for details. All rights reserved. Use of this source code is governed by a | 3 for details. All rights reserved. Use of this source code is governed by a |
4 BSD-style license that can be found in the LICENSE file. | 4 BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 Test that two instances of a script does not interfere when loading the same | 6 Test that two instances of a script does not interfere when loading the same |
7 deferred library. | 7 deferred library. |
8 | 8 |
9 START_HTML_DART_TEST | 9 START_HTML_DART_TEST |
10 { | 10 { |
11 "scripts": ["deferred_multi_app.dart"], | 11 "scripts": ["deferred_multi_app.dart", "deferred_multi_app_lib.dart"], |
12 "expectedMessages": ["one", "two"] | 12 "expectedMessages": ["one", "two"] |
13 } | 13 } |
14 END_HTML_DART_TEST | 14 END_HTML_DART_TEST |
15 --> | 15 --> |
16 <html> | 16 <html> |
17 <body> | 17 <body> |
18 <div id="state">1</div> | 18 <div id="state">1</div> |
19 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> | 19 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> |
20 <script src="deferred_multi_app.dart" type="application/dart"></script> | 20 <script src="deferred_multi_app.dart" type="application/dart"></script> |
21 <script src="deferred_multi_app.dart" type="application/dart"></script> | 21 <script src="deferred_multi_app.dart" type="application/dart"></script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |