| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="application/javascript" src="../../../../dart/pkg/unittest/test_co
ntroller.js"></script> | 3 <script type="application/javascript" src="../../../../dart/pkg/unittest/test_co
ntroller.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 | 6 |
| 7 <script type="application/dart"> | 7 <script type="application/dart"> |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:json'; | 9 import 'dart:json'; |
| 10 import '../../../../dart/pkg/unittest/lib/unittest.dart'; | 10 import '../../../../dart/pkg/unittest/lib/unittest.dart'; |
| 11 import '../../../../dart/pkg/unittest/lib/html_config.dart'; | 11 import '../../../../dart/pkg/unittest/lib/html_config.dart'; |
| 12 import 'Multiscript.dart'; | 12 import 'Multiscript.dart'; |
| 13 main() { | 13 main() { |
| 14 useHtmlConfiguration(true); | 14 useHtmlConfiguration(true); |
| 15 asyncTest('Multiple script tags', 3, () { | 15 test('Multiple script tags', () { |
| 16 var callback = expectAsync0(() {}, count: 3); |
| 16 addHandler('done', (msg) { | 17 addHandler('done', (msg) { |
| 17 Expect.equals(msg['actual'], msg['expect']); | 18 Expect.equals(msg['actual'], msg['expect']); |
| 18 callbackDone(); | 19 callback(); |
| 19 }); | 20 }); |
| 20 postMessage('start', {}); | 21 postMessage('start', {}); |
| 21 }); | 22 }); |
| 22 } | 23 } |
| 23 </script> | 24 </script> |
| 24 | 25 |
| 25 <script type="application/dart"> | 26 <script type="application/dart"> |
| 26 import 'Multiscript.dart'; | 27 import 'Multiscript.dart'; |
| 27 main() { | 28 main() { |
| 28 State.s = 1; | 29 State.s = 1; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 main() { | 50 main() { |
| 50 State.s = 100; | 51 State.s = 100; |
| 51 onStart((m) { | 52 onStart((m) { |
| 52 State.update(); | 53 State.update(); |
| 53 checkEventDelivery(3, 102); | 54 checkEventDelivery(3, 102); |
| 54 }); | 55 }); |
| 55 } | 56 } |
| 56 </script> | 57 </script> |
| 57 </body> | 58 </body> |
| 58 </html> | 59 </html> |
| OLD | NEW |