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

Side by Side Diff: dom/Workers.dart

Issue 12221052: Remove use of deprecated test methods (asynctTest/callbackDone/expectThrows). Base URL: http://src.chromium.org/multivm/trunk/webkit/LayoutTests/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « dom/GeolocationTest.dart ('k') | security/cross-frame-access.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #import('../../../../../dart/pkg/unittest/lib/unittest.dart'); 1 #import('../../../../../dart/pkg/unittest/lib/unittest.dart');
2 #import('../../../../../dart/pkg/unittest/lib/html_config.dart'); 2 #import('../../../../../dart/pkg/unittest/lib/html_config.dart');
3 #import('dart:html'); 3 #import('dart:html');
4 4
5 main() { 5 main() {
6 useHtmlConfiguration(true); 6 useHtmlConfiguration(true);
7 7
8 asyncTest('Workers minimal', 1, () { 8 test('Workers minimal', () {
9 // FIXME: once we decide how Workers and Dart go together, this may become p ure 9 // FIXME: once we decide how Workers and Dart go together, this may become p ure
10 // Dart test. 10 // Dart test.
11 final worker = new Worker('resources/pong.js'); 11 final worker = new Worker('resources/pong.js');
12 worker.onError.listen((error) => Expect.fail('error: $error')); 12 worker.onError.listen((error) => Expect.fail('error: $error'));
13 worker.onMessage.listen((event) { 13 worker.onMessage.listen(expectAsync1((event) {
14 Expect.equals('I am fine, thank you.', event.data); 14 Expect.equals('I am fine, thank you.', event.data);
15 callbackDone(); 15 }));
16 });
17 worker.postMessage('How do you do?'); 16 worker.postMessage('How do you do?');
18 }); 17 });
19 } 18 }
OLDNEW
« no previous file with comments | « dom/GeolocationTest.dart ('k') | security/cross-frame-access.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698