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

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

Issue 22573005: [HTML Imports] Implement "load" and "error" events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 4 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-onerror-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script>
6 testRunner.waitUntilDone();
7
8 var givenLoadEventTargets = [];
9 function handleError(event)
10 {
11 givenLoadEventTargets.push(event.target.id);
12 if (givenLoadEventTargets.length == 3) {
13 shouldBe("['invalid', 'notFound', 'notFoundShared']", "givenLoadEventTar gets.sort()");
14 testRunner.notifyDone();
15 }
16 }
17 </script>
18 <link id="notFound" rel="import" href="notfound.html" onerror="handleError(event )">
19 <link id="notFoundShared" rel="import" href="notfound.html" onerror="handleError (event)">
20 <link id="invalid" rel="import" href="" onerror="handleError(event)">
21 </head>
22 <body></body>
23 <script src="../../js/resources/js-test-post.js"></script>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-onerror-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698