summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/Document-URL.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/dom/nodes/Document-URL.sub.html')
-rw-r--r--testing/web-platform/tests/dom/nodes/Document-URL.sub.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/dom/nodes/Document-URL.sub.html b/testing/web-platform/tests/dom/nodes/Document-URL.sub.html
new file mode 100644
index 000000000..8e9601107
--- /dev/null
+++ b/testing/web-platform/tests/dom/nodes/Document-URL.sub.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Document.URL with redirect</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id=log></div>
+<script>
+async_test(function() {
+ var iframe = document.createElement("iframe");
+ iframe.src = "/common/redirect.py?location=/common/blank.html";
+ document.body.appendChild(iframe);
+ this.add_cleanup(function() { document.body.removeChild(iframe); });
+ iframe.onload = this.step_func_done(function() {
+ assert_equals(iframe.contentDocument.URL,
+ "http://{{host}}:{{ports[http][0]}}/common/blank.html");
+ });
+})
+</script>