| 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>
|
|
|