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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-onerror-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/imports/import-onerror.html
diff --git a/LayoutTests/fast/html/imports/import-onerror.html b/LayoutTests/fast/html/imports/import-onerror.html
new file mode 100644
index 0000000000000000000000000000000000000000..76dd1b49898f814f090d21596786c78f6978f527
--- /dev/null
+++ b/LayoutTests/fast/html/imports/import-onerror.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../js/resources/js-test-pre.js"></script>
+<script>
+testRunner.waitUntilDone();
+
+var givenLoadEventTargets = [];
+function handleError(event)
+{
+ givenLoadEventTargets.push(event.target.id);
+ if (givenLoadEventTargets.length == 3) {
+ shouldBe("['invalid', 'notFound', 'notFoundShared']", "givenLoadEventTargets.sort()");
+ testRunner.notifyDone();
+ }
+}
+</script>
+<link id="notFound" rel="import" href="notfound.html" onerror="handleError(event)">
+<link id="notFoundShared" rel="import" href="notfound.html" onerror="handleError(event)">
+<link id="invalid" rel="import" href="" onerror="handleError(event)">
+</head>
+<body></body>
+<script src="../../js/resources/js-test-post.js"></script>
+</html>
« 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