Chromium Code Reviews| Index: tests/isolate/v2_compute_this_script_browser_test.dart |
| diff --git a/tests/isolate/v2_compute_this_script_browser_test.dart b/tests/isolate/v2_compute_this_script_browser_test.dart |
| index 1a097285606f7aee2804162d868991982cbeb9c1..025dfa546af1bba264af8f4b3fe1b619c9626d22 100644 |
| --- a/tests/isolate/v2_compute_this_script_browser_test.dart |
| +++ b/tests/isolate/v2_compute_this_script_browser_test.dart |
| @@ -5,22 +5,25 @@ |
| // Test that spawn works even when there are many script files in the page. |
| // This requires computing correctly the URL to the orignal script, so we can |
| // pass it to the web worker APIs. |
| -#library('spawn_tests'); |
| +#library('compute_this_script'); |
| -#import('dart:dom_deprecated'); |
| +#import('dart:html'); |
| #import('dart:isolate'); |
| #import('../../lib/unittest/unittest.dart'); |
| -#import('../../lib/unittest/dom_config.dart'); |
| +#import('../../lib/unittest/html_config.dart'); |
| child() { |
| - port.receive((msg, reply) => reply.send('re: $msg')); |
| + port.receive((msg, reply) { |
| + reply.send('re: $msg'); |
|
Emily Fortuna
2012/06/28 20:47:29
oh no, no longer the handy => syntax! ;-)
|
| + port.close(); |
| + }); |
| } |
| main() { |
| - useDomConfiguration(); |
| - var script = document.createElement('script'); |
| - document.body.appendChild(script); |
| + useHtmlConfiguration(); |
| + var script = document.$dom_createElement('script'); |
| + document.body.$dom_appendChild(script); |
| test('spawn with other script tags in page', () { |
| ReceivePort port = new ReceivePort(); |
| port.receive(expectAsync2((msg, _) { |