|
@@ -0,0 +1,18 @@
|
|
|
|
+<script src="../include.js"></script>
|
|
|
|
+<script>
|
|
|
|
+ asyncTest((done) => {
|
|
|
|
+ const xhr = new XMLHttpRequest();
|
|
|
|
+ xhr.responseType = "document";
|
|
|
|
+ xhr.open("GET", "data:text/html,<!DOCTYPE html><html/>", true);
|
|
|
|
+ xhr.onreadystatechange = function() {
|
|
|
|
+ if (xhr.readyState === 4 && xhr.status === 200) {
|
|
|
|
+ if (xhr.response instanceof Document)
|
|
|
|
+ println("PASS");
|
|
|
|
+ else
|
|
|
|
+ println("FAIL");
|
|
|
|
+ done();
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ xhr.send();
|
|
|
|
+ });
|
|
|
|
+</script>
|