| OLD | NEW |
| 1 #library('IsolatesTest'); | 1 #library('IsolatesTest'); |
| 2 #import('../../pkg/unittest/lib/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
| 3 #import('../../pkg/unittest/lib/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
| 4 #import('dart:html'); | 4 #import('dart:html'); |
| 5 #import('dart:json'); | 5 #import('dart:json'); |
| 6 #import('dart:isolate', prefix:'isolate'); | 6 #import('dart:isolate', prefix:'isolate'); |
| 7 | 7 |
| 8 String responseFor(message) => 'response for $message'; | 8 String responseFor(message) => 'response for $message'; |
| 9 | 9 |
| 10 void isolateEntry() { | 10 void isolateEntry() { |
| 11 bool wasThrown = false; | 11 bool wasThrown = false; |
| 12 try { | 12 try { |
| 13 window.alert('Test'); | 13 window.alert('Test'); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 43 port.call(msg2).then((response) { | 43 port.call(msg2).then((response) { |
| 44 guardAsync(() { | 44 guardAsync(() { |
| 45 Expect.equals(responseFor(msg2), response); | 45 Expect.equals(responseFor(msg2), response); |
| 46 callback(); | 46 callback(); |
| 47 }); | 47 }); |
| 48 }); | 48 }); |
| 49 }); | 49 }); |
| 50 }); | 50 }); |
| 51 }); | 51 }); |
| 52 } | 52 } |
| OLD | NEW |