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

Side by Side Diff: tests/dom/dom_isolates_test.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « tests/dom/dom_constructors_test.dart ('k') | tests/dom/domparser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('DOMIsolatesTest'); 1 #library('DOMIsolatesTest');
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:isolate'); 5 #import('dart:isolate');
6 6
7 isolateMain(port) { 7 isolateMain(port) {
8 port.receive((msg, replyTo) { 8 port.receive((msg, replyTo) {
9 if (msg != 'check') { 9 if (msg != 'check') {
10 replyTo.send('wrong msg: $msg'); 10 replyTo.send('wrong msg: $msg');
11 } 11 }
12 replyTo.send(window.location.toString()); 12 replyTo.send(window.location.toString());
13 port.close(); 13 port.close();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }); 51 });
52 52
53 test('Null as target window', () { 53 test('Null as target window', () {
54 expectThrow(() => spawnDomIsolate(null, 'isolateMain')); 54 expectThrow(() => spawnDomIsolate(null, 'isolateMain'));
55 }); 55 });
56 56
57 test('Not window as target window', () { 57 test('Not window as target window', () {
58 expectThrow(() => spawnDomIsolate(document, 'isolateMain')); 58 expectThrow(() => spawnDomIsolate(document, 'isolateMain'));
59 }); 59 });
60 } 60 }
OLDNEW
« no previous file with comments | « tests/dom/dom_constructors_test.dart ('k') | tests/dom/domparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698