summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/html/imports/xhr.html
blob: 4d555eae2bbb8bb0b176bc500f4a057aaf72bc53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<link id="master" rel="import" href="import-master.html">
</head>
<body>
<script>
description("Ensure XHR document doesn't load imports");
window.jsTestIsAsync = true;

var xhr = new XMLHttpRequest();
xhr.open("GET", "resources/root.html", true);
xhr.responseType = "document";
xhr.onload = function(e) {
   link = xhr.response.head.querySelector("#hello");
   shouldBeNull("link.import");
   finishJSTest();
}

xhr.send();

</script>
</body>
</html>