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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | dom/GeolocationTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="application/javascript" src="../../../../dart/pkg/unittest/test_co ntroller.js"></script> 3 <script type="application/javascript" src="../../../../dart/pkg/unittest/test_co ntroller.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 6
7 <script type="application/dart"> 7 <script type="application/dart">
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:json'; 9 import 'dart:json';
10 import '../../../../dart/pkg/unittest/lib/unittest.dart'; 10 import '../../../../dart/pkg/unittest/lib/unittest.dart';
11 import '../../../../dart/pkg/unittest/lib/html_config.dart'; 11 import '../../../../dart/pkg/unittest/lib/html_config.dart';
12 import 'Multiscript.dart'; 12 import 'Multiscript.dart';
13 main() { 13 main() {
14 useHtmlConfiguration(true); 14 useHtmlConfiguration(true);
15 asyncTest('Multiple script tags', 3, () { 15 test('Multiple script tags', () {
16 var callback = expectAsync0(() {}, count: 3);
16 addHandler('done', (msg) { 17 addHandler('done', (msg) {
17 Expect.equals(msg['actual'], msg['expect']); 18 Expect.equals(msg['actual'], msg['expect']);
18 callbackDone(); 19 callback();
19 }); 20 });
20 postMessage('start', {}); 21 postMessage('start', {});
21 }); 22 });
22 } 23 }
23 </script> 24 </script>
24 25
25 <script type="application/dart"> 26 <script type="application/dart">
26 import 'Multiscript.dart'; 27 import 'Multiscript.dart';
27 main() { 28 main() {
28 State.s = 1; 29 State.s = 1;
(...skipping 20 matching lines...) Expand all
49 main() { 50 main() {
50 State.s = 100; 51 State.s = 100;
51 onStart((m) { 52 onStart((m) {
52 State.update(); 53 State.update();
53 checkEventDelivery(3, 102); 54 checkEventDelivery(3, 102);
54 }); 55 });
55 } 56 }
56 </script> 57 </script>
57 </body> 58 </body>
58 </html> 59 </html>
OLDNEW
« 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