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

Unified Diff: tests/html/worker_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: tests/html/worker_test.dart
diff --git a/tests/html/worker_test.dart b/tests/html/worker_test.dart
index d24394bb74d8c23bad1353aa2ca4b8330739c620..018d7fc288e6b7d6fcb1812675b9838eb1162c56 100644
--- a/tests/html/worker_test.dart
+++ b/tests/html/worker_test.dart
@@ -37,7 +37,7 @@ main() {
var blob = new Blob([workerScript], 'text/javascript');
var url = Url.createObjectUrl(blob);
var worker = new Worker(url);
- var test = expectAsync1((e) {
+ var test = expectAsync((e) {
expect(e.data, 'WorkerMessage');
});
worker.onMessage.first.then(test);

Powered by Google App Engine
This is Rietveld 408576698