Index: third_party/WebKit/LayoutTests/http/tests/fetch/referrer/test.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/referrer/test.html b/third_party/WebKit/LayoutTests/http/tests/fetch/referrer/test.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63049921facef18d0fac6f1ae14d13afe0cf8b81 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/referrer/test.html |
@@ -0,0 +1,29 @@ |
+<!doctype html> |
+<html> |
+<script src = "/resources/testharness.js"></script> |
+<script src = "/resources/testharness-helpers.js"></script> |
+<script src = "/resources/testharnessreport.js"></script> |
+<body> |
+<script> |
+ |
+test(() => { |
+ let o = new TestObject; |
+ assert_equals(o.getScriptStateURL(), location.href); |
+ }, 'new TestObject'); |
+ |
+promise_test(() => { |
+ let iframe = document.createElement('iframe'); |
+ iframe.src = 'resources/iframe.html'; |
+ return new Promise(resolve => { |
+ iframe.onload = resolve; |
+ document.body.appendChild(iframe); |
+ }).then(() => { |
+ let o = new iframe.contentWindow.TestObject; |
+ assert_equals(o.getScriptStateURL(), location.href); |
+ }); |
+ }, 'new iframe.contentWindow.TestObject'); |
+ |
+done(); |
+</script> |
+</body> |
+</html> |