summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/html/imports/no-browsing-context.html
blob: 304c450f157e5b293dac59f25456b3b59792671c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.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>
</body>
</html>