From 070a1f411a360248476305119a8e863e9e94f1cd Mon Sep 17 00:00:00 2001 From: Lyza Danger Gardner Date: Tue, 14 Mar 2017 15:45:02 -0400 Subject: [PATCH] HTML: Extend test coverage for named contexts: _parent - Add tests for reused `parent` context - Add tests for case-sensitivity - Organize supporting files --- .../browsing-context-choose-parent-001.html | 15 ++++++++++++++ .../browsing-context-choose-parent-002.html | 17 ++++++++++++++++ .../browsing-context-choose-parent-003.html | 17 ++++++++++++++++ .../browsing-context-choose-parent-004.html | 16 +++++++++++++++ .../browsing-context-choose-parent.html | 20 ------------------- .../browsing-context-names/existing.html | 2 +- .../parent-iframe-1.html} | 2 +- .../parent-iframe-2.html} | 2 +- .../resources/parent-iframe-3.html | 6 ++++++ .../parent-iframe-insensitive-1.html | 4 ++++ .../parent-iframe-insensitive-2.html | 8 ++++++++ .../resources/parent-top-nested.html | 4 ++++ .../resources/parent-top-replace.html | 4 ++++ .../resources/parent-top.html | 12 +++++++++++ .../resources/post-to-opener.html | 12 +++++++++++ .../resources/post-to-top-or-close.html | 16 +++++++++++++++ .../post-to-top.html} | 7 ++++--- .../windows/browsing-context-names/self1.html | 2 +- .../windows/browsing-context-names/self2.html | 2 +- 19 files changed, 140 insertions(+), 28 deletions(-) create mode 100644 html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html create mode 100644 html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html create mode 100644 html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html create mode 100644 html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html delete mode 100644 html/browsers/windows/browsing-context-names/browsing-context-choose-parent.html rename html/browsers/windows/browsing-context-names/{parent1.html => resources/parent-iframe-1.html} (77%) rename html/browsers/windows/browsing-context-names/{parent2.html => resources/parent-iframe-2.html} (80%) create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-iframe-3.html create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-1.html create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-2.html create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-top-nested.html create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-top-replace.html create mode 100644 html/browsers/windows/browsing-context-names/resources/parent-top.html create mode 100644 html/browsers/windows/browsing-context-names/resources/post-to-opener.html create mode 100644 html/browsers/windows/browsing-context-names/resources/post-to-top-or-close.html rename html/browsers/windows/browsing-context-names/{message.html => resources/post-to-top.html} (70%) diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html new file mode 100644 index 00000000000000..e1495beb8b184d --- /dev/null +++ b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-001.html @@ -0,0 +1,15 @@ + + +HTML Test: Choose browsing context - '_parent' + + + +
+ + diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html new file mode 100644 index 00000000000000..9cdef8349f38c1 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-002.html @@ -0,0 +1,17 @@ + + +HTML Test: Choose browsing context - '_parent' (nested contexts) + + +
+ diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html new file mode 100644 index 00000000000000..f0a165e6844c7a --- /dev/null +++ b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-003.html @@ -0,0 +1,17 @@ + + +HTML Test: Choose browsing context - '_parent' (via window.open) + + +
+ diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html new file mode 100644 index 00000000000000..ca98f66d172380 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent-004.html @@ -0,0 +1,16 @@ + + +HTML Test: Choose browsing context - '_parent' (case-sensitivity) + + +
+ + + diff --git a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent.html b/html/browsers/windows/browsing-context-names/browsing-context-choose-parent.html deleted file mode 100644 index c771a8fd71bbac..00000000000000 --- a/html/browsers/windows/browsing-context-names/browsing-context-choose-parent.html +++ /dev/null @@ -1,20 +0,0 @@ - - -HTML Test: Choose browsing context - the given name is '_parent' - - - -
- - diff --git a/html/browsers/windows/browsing-context-names/existing.html b/html/browsers/windows/browsing-context-names/existing.html index 13d2c6ab4e00c2..6023319cebfd31 100644 --- a/html/browsers/windows/browsing-context-names/existing.html +++ b/html/browsers/windows/browsing-context-names/existing.html @@ -5,7 +5,7 @@ diff --git a/html/browsers/windows/browsing-context-names/parent1.html b/html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html similarity index 77% rename from html/browsers/windows/browsing-context-names/parent1.html rename to html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html index fb34b2fe707922..3d7accffd7806e 100644 --- a/html/browsers/windows/browsing-context-names/parent1.html +++ b/html/browsers/windows/browsing-context-names/resources/parent-iframe-1.html @@ -2,4 +2,4 @@ HTML Test: browsing context name - parent - + diff --git a/html/browsers/windows/browsing-context-names/parent2.html b/html/browsers/windows/browsing-context-names/resources/parent-iframe-2.html similarity index 80% rename from html/browsers/windows/browsing-context-names/parent2.html rename to html/browsers/windows/browsing-context-names/resources/parent-iframe-2.html index 34eb1c76bf55b7..81d0735c60970a 100644 --- a/html/browsers/windows/browsing-context-names/parent2.html +++ b/html/browsers/windows/browsing-context-names/resources/parent-iframe-2.html @@ -4,6 +4,6 @@ diff --git a/html/browsers/windows/browsing-context-names/resources/parent-iframe-3.html b/html/browsers/windows/browsing-context-names/resources/parent-iframe-3.html new file mode 100644 index 00000000000000..1412dc2e79b227 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-iframe-3.html @@ -0,0 +1,6 @@ + + +HTML Test: browsing context name - parent + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-1.html b/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-1.html new file mode 100644 index 00000000000000..8ddbf44a3b5e40 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-1.html @@ -0,0 +1,4 @@ + + +HTML Test: browsing context name - parent + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-2.html b/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-2.html new file mode 100644 index 00000000000000..38d6b2f42848a1 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-iframe-insensitive-2.html @@ -0,0 +1,8 @@ + + +HTML Test: browsing context name - parent (case-insensitive) + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-top-nested.html b/html/browsers/windows/browsing-context-names/resources/parent-top-nested.html new file mode 100644 index 00000000000000..ffe35113233935 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-top-nested.html @@ -0,0 +1,4 @@ + + +HTML Test: browsing context name - parent: nested context + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-top-replace.html b/html/browsers/windows/browsing-context-names/resources/parent-top-replace.html new file mode 100644 index 00000000000000..9b334c326693c0 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-top-replace.html @@ -0,0 +1,4 @@ + + +HTML Test: browsing context name - parent: top-level context (gets replaced) + diff --git a/html/browsers/windows/browsing-context-names/resources/parent-top.html b/html/browsers/windows/browsing-context-names/resources/parent-top.html new file mode 100644 index 00000000000000..6ad72f969be9cd --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/parent-top.html @@ -0,0 +1,12 @@ + + +HTML Test: browsing context name - parent: top-level context + + diff --git a/html/browsers/windows/browsing-context-names/resources/post-to-opener.html b/html/browsers/windows/browsing-context-names/resources/post-to-opener.html new file mode 100644 index 00000000000000..3e9b7aaccb0dda --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/post-to-opener.html @@ -0,0 +1,12 @@ + + +HTML Test: post window's name to top browsing context + + diff --git a/html/browsers/windows/browsing-context-names/resources/post-to-top-or-close.html b/html/browsers/windows/browsing-context-names/resources/post-to-top-or-close.html new file mode 100644 index 00000000000000..2ccb6731d7ba44 --- /dev/null +++ b/html/browsers/windows/browsing-context-names/resources/post-to-top-or-close.html @@ -0,0 +1,16 @@ + + +HTML Test: post window's name to top browsing context + + diff --git a/html/browsers/windows/browsing-context-names/message.html b/html/browsers/windows/browsing-context-names/resources/post-to-top.html similarity index 70% rename from html/browsers/windows/browsing-context-names/message.html rename to html/browsers/windows/browsing-context-names/resources/post-to-top.html index 90720d46a9d090..aebb57b0197e3c 100644 --- a/html/browsers/windows/browsing-context-names/message.html +++ b/html/browsers/windows/browsing-context-names/resources/post-to-top.html @@ -3,7 +3,8 @@ HTML Test: post window's name to top browsing context diff --git a/html/browsers/windows/browsing-context-names/self1.html b/html/browsers/windows/browsing-context-names/self1.html index 2c8e3a414c94e2..d72df6f86420cb 100644 --- a/html/browsers/windows/browsing-context-names/self1.html +++ b/html/browsers/windows/browsing-context-names/self1.html @@ -5,7 +5,7 @@ diff --git a/html/browsers/windows/browsing-context-names/self2.html b/html/browsers/windows/browsing-context-names/self2.html index 57276fadafe860..b3b4f59b535974 100644 --- a/html/browsers/windows/browsing-context-names/self2.html +++ b/html/browsers/windows/browsing-context-names/self2.html @@ -5,7 +5,7 @@