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

Unified Diff: LayoutTests/fast/html/imports/no-browsing-context.html

Issue 17419007: [HTML Imports] Implement sub-imports processing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT. Created 7 years, 6 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: LayoutTests/fast/html/imports/no-browsing-context.html
diff --git a/LayoutTests/fast/html/imports/no-browsing-context.html b/LayoutTests/fast/html/imports/no-browsing-context.html
new file mode 100644
index 0000000000000000000000000000000000000000..8586a68d60cad7e968e800f13ab8c42774a975f7
--- /dev/null
+++ b/LayoutTests/fast/html/imports/no-browsing-context.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+description("This ensures that @import doesn't work with headless documents.")
+window.jsTestIsAsync = true;
+var xhr = new XMLHttpRequest();
+xhr.open("GET", "resources/root.html");
+xhr.responseType = 'document';
+xhr.send(null);
+xhr.onload = function() {
+ shouldBeNull("xhr.response.getElementById('hello').import");
+ finishJSTest();
+};
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698