| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="application/javascript" src="../../../../dart/client/testing/unitt
est/test_controller.js"></script> | |
| 4 </head> | |
| 5 <body> | |
| 6 | |
| 7 <script type="application/dart"> | |
| 8 #import('dart:dom'); | |
| 9 #import('dart:json'); | |
| 10 #import('../../../../dart/client/testing/unittest/unittest.dart'); | |
| 11 #import('Multiscript.dart'); | |
| 12 main() { | |
| 13 forLayoutTests(); | |
| 14 asyncTest('Multiple script tags', 3, () { | |
| 15 addHandler('done', (msg) { | |
| 16 Expect.equals(msg['actual'], msg['expect']); | |
| 17 callbackDone(); | |
| 18 }); | |
| 19 postMessage('start', {}); | |
| 20 }); | |
| 21 } | |
| 22 </script> | |
| 23 | |
| 24 <script type="application/dart"> | |
| 25 #import('Multiscript.dart'); | |
| 26 main() { | |
| 27 State.s = 1; | |
| 28 onStart((m) { | |
| 29 State.update(); | |
| 30 checkEventDelivery(1, 3); | |
| 31 }); | |
| 32 } | |
| 33 </script> | |
| 34 | |
| 35 <script type="application/dart"> | |
| 36 #import('Multiscript.dart'); | |
| 37 main() { | |
| 38 State.s = 10; | |
| 39 onStart((m) { | |
| 40 State.update(); | |
| 41 checkEventDelivery(2, 12); | |
| 42 }); | |
| 43 } | |
| 44 </script> | |
| 45 | |
| 46 <script type="application/dart"> | |
| 47 #import('Multiscript.dart'); | |
| 48 main() { | |
| 49 State.s = 100; | |
| 50 onStart((m) { | |
| 51 State.update(); | |
| 52 checkEventDelivery(3, 102); | |
| 53 }); | |
| 54 } | |
| 55 </script> | |
| 56 </body> | |
| 57 </html> | |
| OLD | NEW |