| OLD | NEW |
| 1 #library('IsolateLightTest'); | 1 #library('IsolateLightTest'); |
| 2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
| 3 #import('dart:dom'); | 3 #import('dart:dom'); |
| 4 #import('dart:json'); | 4 #import('dart:json'); |
| 5 #import('dart:isolate'); | 5 #import('dart:isolate'); |
| 6 | 6 |
| 7 var _isolateId; | 7 var _isolateId; |
| 8 | 8 |
| 9 class TestIsolate extends Isolate { | 9 class TestIsolate extends Isolate { |
| 10 TestIsolate() : super.light(); | 10 TestIsolate() : super.light(); |
| 11 | 11 |
| 12 void main() { | 12 void main() { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 30 _isolateId = 0; | 30 _isolateId = 0; |
| 31 asyncTest('IsolatedStatic', 1, () { | 31 asyncTest('IsolatedStatic', 1, () { |
| 32 final div = document.createElement('div'); | 32 final div = document.createElement('div'); |
| 33 div.id = 'testid'; | 33 div.id = 'testid'; |
| 34 document.body.appendChild(div); | 34 document.body.appendChild(div); |
| 35 div.addEventListener('test', (e) => Expect.equals(0, _isolateId), false); | 35 div.addEventListener('test', (e) => Expect.equals(0, _isolateId), false); |
| 36 div.addEventListener('done', (e) => callbackDone(), false); | 36 div.addEventListener('done', (e) => callbackDone(), false); |
| 37 new TestIsolate().spawn(); | 37 new TestIsolate().spawn(); |
| 38 }); | 38 }); |
| 39 } | 39 } |
| OLD | NEW |