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

Unified Diff: sky/tests/modules/imports-can-load-404s.html

Issue 682913002: Don't crash when importing a 404 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
Index: sky/tests/modules/imports-can-load-404s.html
diff --git a/sky/tests/modules/imports-can-load-404s.html b/sky/tests/modules/imports-can-load-404s.html
new file mode 100644
index 0000000000000000000000000000000000000000..318e0a33ced1d25aece693359a9b0c823c34d166
--- /dev/null
+++ b/sky/tests/modules/imports-can-load-404s.html
@@ -0,0 +1,9 @@
+<html>
+<link rel="import" href="resources/does-not-exist.html" as="hello" />
+<link rel="import" href="../resources/dump-as-text.html" />
+<div id="result">FAIL - Script did not execute</div>
+<script>
+document.getElementById("result").textContent =
+ hello === undefined ? "PASS" : "FAIL";
+</script>
+</html>
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.cpp ('k') | sky/tests/modules/imports-can-load-404s-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698