| OLD | NEW |
| 1 #library('IsolatesTest'); | 1 #library('IsolatesTest'); |
| 2 #import('../../../../lib/unittest/unittest.dart'); | 2 #import('../../lib/unittest/unittest.dart'); |
| 3 #import('../../../../lib/unittest/dom_config.dart'); | 3 #import('../../lib/unittest/dom_config.dart'); |
| 4 #import('dart:dom'); | 4 #import('dart:dom'); |
| 5 #import('dart:json'); | 5 #import('dart:json'); |
| 6 #import('dart:isolate', prefix:'isolate'); | 6 #import('dart:isolate', prefix:'isolate'); |
| 7 | 7 |
| 8 class PingPongIsolate extends isolate.Isolate { | 8 class PingPongIsolate extends isolate.Isolate { |
| 9 PingPongIsolate() : super.heavy(); | 9 PingPongIsolate() : super.heavy(); |
| 10 | 10 |
| 11 void main() { | 11 void main() { |
| 12 bool wasThrown = false; | 12 bool wasThrown = false; |
| 13 try { | 13 try { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 port.call(msg1).then((response) { | 45 port.call(msg1).then((response) { |
| 46 Expect.equals(PingPongIsolate.responseFor(msg1), response); | 46 Expect.equals(PingPongIsolate.responseFor(msg1), response); |
| 47 port.call(msg2).then((response) { | 47 port.call(msg2).then((response) { |
| 48 Expect.equals(PingPongIsolate.responseFor(msg2), response); | 48 Expect.equals(PingPongIsolate.responseFor(msg2), response); |
| 49 callbackDone(); | 49 callbackDone(); |
| 50 }); | 50 }); |
| 51 }); | 51 }); |
| 52 }); | 52 }); |
| 53 }); | 53 }); |
| 54 } | 54 } |
| OLD | NEW |