summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/common/window-name-setter.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/common/window-name-setter.html')
-rw-r--r--test/wpt/tests/common/window-name-setter.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/wpt/tests/common/window-name-setter.html b/test/wpt/tests/common/window-name-setter.html
new file mode 100644
index 0000000..c0603aa
--- /dev/null
+++ b/test/wpt/tests/common/window-name-setter.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>A page that sets window.name</title>
+
+<script>
+"use strict";
+
+window.onload = () => {
+ window.name = location.hash.slice(1); // Drop the first '#' character.
+ window.name = "spices";
+};
+</script>