diff --git a/html/browsers/windows/browsing-context-names/001-1.html b/html/browsers/windows/browsing-context-names/001-1.html deleted file mode 100644 index d413c3019ff130..00000000000000 --- a/html/browsers/windows/browsing-context-names/001-1.html +++ /dev/null @@ -1,8 +0,0 @@ - -001-1 - diff --git a/html/browsers/windows/browsing-context-names/001.html b/html/browsers/windows/browsing-context-names/001.html deleted file mode 100644 index 2478cdc8fac104..00000000000000 --- a/html/browsers/windows/browsing-context-names/001.html +++ /dev/null @@ -1,22 +0,0 @@ - -Link with target=_blank, rel=noreferrer - - -
-Link - diff --git a/html/browsers/windows/browsing-context-names/002-1.html b/html/browsers/windows/browsing-context-names/002-1.html deleted file mode 100644 index ca8a485de6132d..00000000000000 --- a/html/browsers/windows/browsing-context-names/002-1.html +++ /dev/null @@ -1,8 +0,0 @@ - -002-1 - diff --git a/html/browsers/windows/browsing-context-names/002.html b/html/browsers/windows/browsing-context-names/002.html deleted file mode 100644 index 4a1df8e4d039ab..00000000000000 --- a/html/browsers/windows/browsing-context-names/002.html +++ /dev/null @@ -1,25 +0,0 @@ - -Link with target=_blank, no rel - - -
-Link - diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-existing.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-existing.html deleted file mode 100644 index 2eaba22f6fa8fa..00000000000000 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-existing.html +++ /dev/null @@ -1,25 +0,0 @@ - - -HTML Test: Choose browsing context - the given name is same as an existing browsing context's name - - - -
- - - diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-self-1.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-self-1.html deleted file mode 100644 index 99d7fe7d3feb20..00000000000000 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-self-1.html +++ /dev/null @@ -1,20 +0,0 @@ - - -HTML Test: Choose browsing context - the given name is '_self' - - - -
- - diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-self-2.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-self-2.html deleted file mode 100644 index e25a5b44240bdc..00000000000000 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-self-2.html +++ /dev/null @@ -1,20 +0,0 @@ - - -HTML Test: Choose browsing context - the given name is empty string - - - -
- - diff --git a/html/browsers/windows/browsing-context-names/browsing-context-_blank.html b/html/browsers/windows/browsing-context-names/choose-_blank-001.html similarity index 100% rename from html/browsers/windows/browsing-context-names/browsing-context-_blank.html rename to html/browsers/windows/browsing-context-names/choose-_blank-001.html diff --git a/html/browsers/windows/browsing-context-names/choose-_blank-002.html b/html/browsers/windows/browsing-context-names/choose-_blank-002.html new file mode 100644 index 00000000000000..aba9d52ba097f1 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/choose-_blank-002.html @@ -0,0 +1,21 @@ + +Link with target=_blank, rel=noreferrer + + + +
+Link + diff --git a/html/browsers/windows/browsing-context-names/choose-_blank-003.html b/html/browsers/windows/browsing-context-names/choose-_blank-003.html new file mode 100644 index 00000000000000..6912300ab2d969 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/choose-_blank-003.html @@ -0,0 +1,20 @@ + +Link with target=_blank, no rel + + + +
+Link + diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html b/html/browsers/windows/browsing-context-names/choose-_parent-001.html similarity index 81% rename from html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html rename to html/browsers/windows/browsing-context-names/choose-_parent-001.html index e1495beb8b184d..35cbc101c7b3c7 100644 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html +++ b/html/browsers/windows/browsing-context-names/choose-_parent-001.html @@ -12,4 +12,4 @@ })); }, 'The parent browsing context must be chosen if the given name is `_parent`'); - + diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html b/html/browsers/windows/browsing-context-names/choose-_parent-002.html similarity index 87% rename from html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html rename to html/browsers/windows/browsing-context-names/choose-_parent-002.html index 9cdef8349f38c1..7b7d561030e5ad 100644 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html +++ b/html/browsers/windows/browsing-context-names/choose-_parent-002.html @@ -12,6 +12,6 @@ assert_equals(e.data.name, 'iframeParent'); assert_false(e.data.isTop, 'window.parent is not top'); })); - topWindow = window.open('resources/parent-top.html', '_blank'); + topWindow = window.open('resources/choose-_parent-002-window.html', '_blank'); }, 'choosing _parent context: multiple nested contexts'); diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html b/html/browsers/windows/browsing-context-names/choose-_parent-003.html similarity index 85% rename from html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html rename to html/browsers/windows/browsing-context-names/choose-_parent-003.html index f0a165e6844c7a..20dc9b0d2ac48d 100644 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html +++ b/html/browsers/windows/browsing-context-names/choose-_parent-003.html @@ -12,6 +12,6 @@ assert_equals(e.data.name, 'parentTopReplace'); assert_equals(e.data.isTop, true); })); - topWindow = window.open('resources/parent-top-replace.html', 'parentTopReplace'); + topWindow = window.open('resources/choose-_parent-003-window.html', 'parentTopReplace'); }, '_parent should reuse window.parent context'); diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html b/html/browsers/windows/browsing-context-names/choose-_parent-004.html similarity index 90% rename from html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html rename to html/browsers/windows/browsing-context-names/choose-_parent-004.html index ca98f66d172380..ab2606092a10a6 100644 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html +++ b/html/browsers/windows/browsing-context-names/choose-_parent-004.html @@ -4,7 +4,7 @@
- + + +
+ + diff --git a/html/browsers/windows/browsing-context-names/browsing-context-default-name.html b/html/browsers/windows/browsing-context-names/choose-default-001.html similarity index 84% rename from html/browsers/windows/browsing-context-names/browsing-context-default-name.html rename to html/browsers/windows/browsing-context-names/choose-default-001.html index 470e244643cf46..c21159e0a618f3 100644 --- a/html/browsers/windows/browsing-context-names/browsing-context-default-name.html +++ b/html/browsers/windows/browsing-context-names/choose-default-001.html @@ -20,10 +20,4 @@ assert_equals(win.name, ""); win.close(); }, "A browsing context which is opened by window.open() method with '_blank' parameter has empty-string default name"); - -//This test must be run when the current browsing context's name is not set -test(t => { - assert_equals(window.name, ""); -}, "A browsing context has an empty-string default name"); - diff --git a/html/browsers/windows/browsing-context-names/choose-default-002.html b/html/browsers/windows/browsing-context-names/choose-default-002.html new file mode 100644 index 00000000000000..748ee689731843 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/choose-default-002.html @@ -0,0 +1,16 @@ + + +HTML Test: Browsing context names - empty string + + + +
+ + diff --git a/html/browsers/windows/browsing-context-names/choose-existing-001.html b/html/browsers/windows/browsing-context-names/choose-existing-001.html new file mode 100644 index 00000000000000..fdf74b8a797bb2 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/choose-existing-001.html @@ -0,0 +1,17 @@ + + +HTML Test: Choose browsing context - the given name is same as an existing browsing context's name + + + +
+ + + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html b/html/browsers/windows/browsing-context-names/resources/choose-_parent-001-iframe-1.html similarity index 77% rename from html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html rename to html/browsers/windows/browsing-context-names/resources/choose-_parent-001-iframe-1.html index 3d7accffd7806e..04dd74f1a53bda 100644 --- a/html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html +++ b/html/browsers/windows/browsing-context-names/resources/choose-_parent-001-iframe-1.html @@ -2,4 +2,4 @@ HTML Test: browsing context name - parent - + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-top-nested.html b/html/browsers/windows/browsing-context-names/resources/choose-_parent-002-iframe.html similarity index 63% rename from html/browsers/windows/browsing-context-names/resources/parent-top-nested.html rename to html/browsers/windows/browsing-context-names/resources/choose-_parent-002-iframe.html index ffe35113233935..52da8986b0ad35 100644 --- a/html/browsers/windows/browsing-context-names/resources/parent-top-nested.html +++ b/html/browsers/windows/browsing-context-names/resources/choose-_parent-002-iframe.html @@ -1,4 +1,4 @@ HTML Test: browsing context name - parent: nested context - + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-top.html b/html/browsers/windows/browsing-context-names/resources/choose-_parent-002-window.html similarity index 80% rename from html/browsers/windows/browsing-context-names/resources/parent-top.html rename to html/browsers/windows/browsing-context-names/resources/choose-_parent-002-window.html index 6ad72f969be9cd..558193742f6836 100644 --- a/html/browsers/windows/browsing-context-names/resources/parent-top.html +++ b/html/browsers/windows/browsing-context-names/resources/choose-_parent-002-window.html @@ -1,7 +1,7 @@ HTML Test: browsing context name - parent: top-level context - + diff --git a/html/browsers/windows/browsing-context-names/resources/choose-default-002-iframe.html b/html/browsers/windows/browsing-context-names/resources/choose-default-002-iframe.html new file mode 100644 index 00000000000000..567e4ea3103fb7 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/choose-default-002-iframe.html @@ -0,0 +1,17 @@ + + + +HTML Test: browsing context name - Empty string + + + + + diff --git a/html/browsers/windows/browsing-context-names/existing.html b/html/browsers/windows/browsing-context-names/resources/choose-existing-001-iframe.html similarity index 65% rename from html/browsers/windows/browsing-context-names/existing.html rename to html/browsers/windows/browsing-context-names/resources/choose-existing-001-iframe.html index 6023319cebfd31..cb0b554854fe0b 100644 --- a/html/browsers/windows/browsing-context-names/existing.html +++ b/html/browsers/windows/browsing-context-names/resources/choose-existing-001-iframe.html @@ -3,9 +3,5 @@ This is a test page diff --git a/html/browsers/windows/browsing-context-names/resources/parent-iframe-2.html b/html/browsers/windows/browsing-context-names/resources/open-in-_parent.html similarity index 100% rename from html/browsers/windows/browsing-context-names/resources/parent-iframe-2.html rename to html/browsers/windows/browsing-context-names/resources/open-in-_parent.html diff --git a/html/browsers/windows/browsing-context-names/resources/report-has-opener.html b/html/browsers/windows/browsing-context-names/resources/report-has-opener.html new file mode 100644 index 00000000000000..37d8cedc6da479 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/report-has-opener.html @@ -0,0 +1,8 @@ + + + diff --git a/html/browsers/windows/browsing-context-names/self1.html b/html/browsers/windows/browsing-context-names/self1.html deleted file mode 100644 index d72df6f86420cb..00000000000000 --- a/html/browsers/windows/browsing-context-names/self1.html +++ /dev/null @@ -1,11 +0,0 @@ - - -HTML Test: browsing context name - self - -