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

Side by Side Diff: LayoutTests/fast/html/imports/import-events-inline.html

Issue 141143006: [import] Cleanup: get rid of ad-hoc state machine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-shared-crash.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 var list = []; 6 var list = [];
7 function handle(event) 7 function handle(event)
8 { 8 {
9 list.push(event.type + '@' + event.target.id); 9 list.push(event.type + '@' + event.target.id);
10 if (list.length < 3) 10 if (list.length < 3)
11 return; 11 return;
12 // FIXME(crbug.com/336113): error event should be dispatched synchronously. 12 expected = ['load@shouldLoad', 'error@shouldError', 'click@toClick'];
13 expected = ['load@shouldLoad', 'click@toClick', 'error@shouldError'];
14 shouldBe('window.list', 'expected'); 13 shouldBe('window.list', 'expected');
15 finishJSTest(); 14 finishJSTest();
16 } 15 }
17 </script> 16 </script>
18 <link id="harness" rel="import" href="resources/events-inline.html"> 17 <link id="harness" rel="import" href="resources/events-inline.html">
19 </head> 18 </head>
20 <body> 19 <body>
21 <script> 20 <script>
22 window.jsTestIsAsync = true; 21 window.jsTestIsAsync = true;
23 description('Test that inline event handler is fired on an imported document.'); 22 description('Test that inline event handler is fired on an imported document.');
24 </script> 23 </script>
25 </body> 24 </body>
26 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-shared-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698