Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: client/tests/client/dom/IsolateLightTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698