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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dom/GeolocationTest.dart ('k') | security/cross-frame-access.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dom/Workers.dart
===================================================================
--- dom/Workers.dart (revision 1080)
+++ dom/Workers.dart (working copy)
@@ -5,15 +5,14 @@
main() {
useHtmlConfiguration(true);
- asyncTest('Workers minimal', 1, () {
+ test('Workers minimal', () {
// FIXME: once we decide how Workers and Dart go together, this may become pure
// Dart test.
final worker = new Worker('resources/pong.js');
worker.onError.listen((error) => Expect.fail('error: $error'));
- worker.onMessage.listen((event) {
+ worker.onMessage.listen(expectAsync1((event) {
Expect.equals('I am fine, thank you.', event.data);
- callbackDone();
- });
+ }));
worker.postMessage('How do you do?');
});
}
« 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