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

Unified Diff: Multiscript.html

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 | « no previous file | dom/GeolocationTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Multiscript.html
===================================================================
--- Multiscript.html (revision 1080)
+++ Multiscript.html (working copy)
@@ -12,10 +12,11 @@
import 'Multiscript.dart';
main() {
useHtmlConfiguration(true);
- asyncTest('Multiple script tags', 3, () {
+ test('Multiple script tags', () {
+ var callback = expectAsync0(() {}, count: 3);
addHandler('done', (msg) {
Expect.equals(msg['actual'], msg['expect']);
- callbackDone();
+ callback();
});
postMessage('start', {});
});
« no previous file with comments | « no previous file | dom/GeolocationTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698