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

Unified Diff: client/tests/client/dom/IsolateLight.dart

Issue 9297032: Refactoring to migrate layout tests over. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Drop the forLayoutTests Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/tests/client/dom/IsolateLightTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/IsolateLight.dart
diff --git a/client/tests/client/dom/IsolateLight.dart b/client/tests/client/dom/IsolateLight.dart
deleted file mode 100644
index ee155f1d8e9e5749933e3500c27448c91b03dfd0..0000000000000000000000000000000000000000
--- a/client/tests/client/dom/IsolateLight.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-#library('IsolateLight');
-#import('../../../testing/unittest/unittest.dart');
-#import('dart:dom');
-#import('dart:json');
-
-var _isolateId;
-
-class TestIsolate extends Isolate {
- TestIsolate() : super.light();
-
- void main() {
- _isolateId = 1;
- final div = document.getElementById('testid');
-
- // These events fire in the main isolate. Note, dispatchEvent is
- // handled synchronously.
- Event event = document.createEvent('Event');
- event.initEvent('test', true, false);
- div.dispatchEvent(event);
-
- Expect.equals(1, _isolateId);
- event = document.createEvent('Event');
- event.initEvent('done', true, false);
- div.dispatchEvent(event);
- }
-}
-
-main() {
- _isolateId = 0;
-
- asyncTest('IsolatedStatic', 1, () {
- final div = document.createElement('div');
- div.id = 'testid';
- document.body.appendChild(div);
- div.addEventListener('test', (e) => Expect.equals(0, _isolateId), false);
- div.addEventListener('done', (e) => callbackDone(), false);
- new TestIsolate().spawn();
- });
-}
« no previous file with comments | « no previous file | client/tests/client/dom/IsolateLightTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698