summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/origins/resources/mixedXHR.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/origins/resources/mixedXHR.html')
-rw-r--r--tests/auto/core/origins/resources/mixedXHR.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/core/origins/resources/mixedXHR.html b/tests/auto/core/origins/resources/mixedXHR.html
new file mode 100644
index 000000000..3dfd90006
--- /dev/null
+++ b/tests/auto/core/origins/resources/mixedXHR.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Mixed</title>
+ <script>
+ var result;
+ function sendXHR(url) {
+ result = undefined;
+ let req = new XMLHttpRequest();
+ req.addEventListener("load", () => { result = req.responseText });
+ req.addEventListener("error", () => { result = "error"; });
+ req.open("GET", url);
+ req.send();
+ }
+ </script>
+ </head>
+ <body>
+ </body>
+</html>