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

Side by Side Diff: tests/html/no_linked_scripts_htmltest.html

Issue 700753004: Refactor browser test enqueuing in test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix errors. Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <!-- 7 <!--
8 START_HTML_DART_TEST 8 START_HTML_DART_TEST
9 { 9 {
10 "scripts": [ ], 10 "scripts": [ ],
11 "expectedMessages": ["hest", "fisk"] 11 "expectedMessages": ["hest", "fisk"]
12 } 12 }
13 END_HTML_DART_TEST 13 END_HTML_DART_TEST
14 --> 14 -->
15 <html> 15 <html>
16 <head> 16 <head>
17 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> 17 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script>
18 <title>No Linked Scripts HTML test</title> 18 <title>No Linked Scripts HTML test</title>
19 </head><body> 19 </head><body>
20 <h1>No Linked Scripts HTML test</h1> 20 <h1>No Linked Scripts HTML test</h1>
21 <script> 21 <script>
22 window.postMessage('fisk', '*'); 22 window.postMessage('fisk', '*');
23 window.postMessage('ged', '*'); 23 window.postMessage('ged', '*');
24 window.postMessage('fisk', '*'); 24 window.postMessage('fisk', '*');
25 25
26 function delayed() { 26 function delayed() {
27 parent.postMessage('ko', '*'); 27 parent.postMessage('ko', '*');
28 window.postMessage('hest', '*'); 28 window.postMessage('hest', '*');
29 } 29 }
30 setTimeout(delayed, 5000); 30 setTimeout(delayed, 500);
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698