From 3ba125235bad59e0583aea2c8e23841d13721e3e Mon Sep 17 00:00:00 2001 From: Lyza Danger Gardner Date: Tue, 4 Apr 2017 17:37:54 -0400 Subject: [PATCH 1/4] Add tool for managing multiple window.postMessage event handling --- common/PrefixedPostMessage.js | 100 ++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 common/PrefixedPostMessage.js diff --git a/common/PrefixedPostMessage.js b/common/PrefixedPostMessage.js new file mode 100644 index 00000000000000..674b52877c0d5d --- /dev/null +++ b/common/PrefixedPostMessage.js @@ -0,0 +1,100 @@ +/** + * Supports pseudo-"namespacing" for window-posted messages for a given test + * by generating and using a unique prefix that gets wrapped into message + * objects. This makes it more feasible to have multiple tests that use + * `window.postMessage` in a single test file. Basically, make it possible + * for the each test to listen for only the messages that are pertinent to it. + * + * 'Prefix' not an elegant term to use here but this models itself after + * PrefixedLocalStorage. + * + * PrefixedMessageTest: Instantiate in testharness.js tests to generate + * a new unique-ish prefix that can be used by other test support files + * PrefixedMessageResource: Instantiate in supporting test resource + * files to use/share a prefix generated by a test. + */ +var PrefixedMessage = function () { + this.prefix = ''; + this.param = 'prefixedMessage'; // Param to use in querystrings +}; + +/** + * Generate a URL that adds/replaces param with this object's prefix + * Use to link to test support files that make use of + * PrefixedMessageResource. + */ +PrefixedMessage.prototype.url = function (uri) { + function updateUrlParameter (uri, key, value) { + var i = uri.indexOf('#'); + var hash = (i === -1) ? '' : uri.substr(i); + uri = (i === -1) ? uri : uri.substr(0, i); + var re = new RegExp(`([?&])${key}=.*?(&|$)`, 'i'); + var separator = uri.indexOf('?') !== -1 ? '&' : '?'; + uri = (uri.match(re)) ? uri.replace(re, `$1${key}=${value}$2`) : + `${uri}${separator}${key}=${value}`; + return uri + hash; + } + return updateUrlParameter(uri, this.param, this.prefix); +}; + +/** + * Add an eventListener on `message` but only invoke the given callback + * for messages whose object contains this object's prefix. Remove the + * event listener once the anticipated message has been received. + */ +PrefixedMessage.prototype.onMessage = function (fn) { + window.addEventListener('message', e => { + if (typeof e.data === 'object' && e.data.hasOwnProperty('prefix')) { + if (e.data.prefix === this.prefix) { + // Only invoke callback when `data` is an object containing + // a `prefix` key with this object's prefix value + // Note fn is invoked with "unwrapped" data first, then the event `e` + // (which contains the full, wrapped e.data should it be needed) + fn.call(this, e.data.data, e); + window.removeEventListener('message', fn); + } + } + }); +}; + +/** + * Instantiate in a test file (e.g. during `setup`) to create a unique-ish + * prefix that can be shared by support files + */ +var PrefixedMessageTest = function () { + PrefixedMessage.call(this); + this.prefix = `${document.location.pathname}-${Math.random()}-${Date.now()}-`; +}; +PrefixedMessageTest.prototype = Object.create(PrefixedMessage.prototype); +PrefixedMessageTest.prototype.constructor = PrefixedMessageTest; + +/** + * Instantiate in a test support script to use a "prefix" generated by a + * PrefixedMessageTest in a controlling test file. It will look for + * the prefix in a URL param (see also PrefixedMessage#url) + */ +var PrefixedMessageResource = function () { + PrefixedMessage.call(this); + // Check URL querystring for prefix to use + var regex = new RegExp(`[?&]${this.param}(=([^&#]*)|&|#|$)`), + results = regex.exec(document.location.href); + if (results && results[2]) { + this.prefix = results[2]; + } +}; +PrefixedMessageResource.prototype = Object.create(PrefixedMessage.prototype); +PrefixedMessageResource.prototype.constructor = PrefixedMessageResource; + +/** + * This is how a test resource document can "send info" to its + * opener context. It will whatever message is being sent (`data`) in + * an object that injects the prefix. + */ +PrefixedMessageResource.prototype.postToOpener = function (data) { + if (window.opener) { + window.opener.postMessage({ + prefix: this.prefix, + data: data + }, '*'); + } +}; From 3b84b3c906213ea0276ae8aa84156587ccfa7e5d Mon Sep 17 00:00:00 2001 From: Lyza Danger Gardner Date: Tue, 4 Apr 2017 17:16:14 -0400 Subject: [PATCH 2/4] Add tests for `window.open` position and size features --- .../open-features-optional-001.html | 68 ++++++++++++++ .../open-features-optional-002.html | 70 +++++++++++++++ .../open-features-optional-003.html | 54 +++++++++++ .../open-features-optional-004.html | 54 +++++++++++ .../open-features-optional-005.html | 72 +++++++++++++++ .../open-features-optional-006.html | 75 ++++++++++++++++ .../open-features-optional-007.html | 90 +++++++++++++++++++ .../open-features-optional-008.html | 90 +++++++++++++++++++ .../open-features-optional-009.html | 74 +++++++++++++++ .../open-features-optional-010.html | 75 ++++++++++++++++ .../open-features-optional-011.html | 74 +++++++++++++++ .../open-features-optional-012.html | 75 ++++++++++++++++ .../open-features-optional-013.html | 67 ++++++++++++++ .../open-features-optional-014.html | 66 ++++++++++++++ .../open-features-optional-015.html | 74 +++++++++++++++ .../open-features-optional-016.html | 74 +++++++++++++++ .../resources/message-opener.html | 12 +++ 17 files changed, 1164 insertions(+) create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html create mode 100644 html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/resources/message-opener.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html new file mode 100644 index 00000000000000..e0e6f99f678bc7 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html @@ -0,0 +1,68 @@ + + +HTML: window.open `features`: tokenization -- position features `top` and `left` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html new file mode 100644 index 00000000000000..cdd8849456b76d --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html @@ -0,0 +1,70 @@ + + +HTML: window.open `features`: tokenization -- size features `width` and `height` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html new file mode 100644 index 00000000000000..9f87c829bec1ac --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html @@ -0,0 +1,54 @@ + + +HTML: window.open `features`: tokenization -- legacy position features `screenx`, `screeny` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html new file mode 100644 index 00000000000000..2e3162ec5abd07 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html @@ -0,0 +1,54 @@ + + +HTML: window.open `features`: tokenization -- legacy size features `innerheight`, `innerwidth` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html new file mode 100644 index 00000000000000..a1c85f1c3a087e --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html @@ -0,0 +1,72 @@ + + +HTML: window.open `features`: non-integer values for feature `top` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html new file mode 100644 index 00000000000000..c5c4d1d7cd3ad8 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html @@ -0,0 +1,75 @@ + + +HTML: window.open `features`: non-integer values for feature `left` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html new file mode 100644 index 00000000000000..b3a6711d984098 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html @@ -0,0 +1,90 @@ + + +HTML: window.open `features`: non-integer values for feature `width` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html new file mode 100644 index 00000000000000..9baf231e3997b1 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html @@ -0,0 +1,90 @@ + + +HTML: window.open `features`: non-integer values for feature `height` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html new file mode 100644 index 00000000000000..74d1406ba7552f --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html @@ -0,0 +1,74 @@ + + +HTML: window.open `features`: non-integer values for legacy feature `screenx` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html new file mode 100644 index 00000000000000..6d107f1c705ab0 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html @@ -0,0 +1,75 @@ + + +HTML: window.open `features`: non-integer values for legacy feature `screeny` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html new file mode 100644 index 00000000000000..8ff29e08497537 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html @@ -0,0 +1,74 @@ + + +HTML: window.open `features`: non-integer values for legacy feature `innerwidth` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html new file mode 100644 index 00000000000000..4a9f9eb3990f2e --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html @@ -0,0 +1,75 @@ + + +HTML: window.open `features`: non-integer values for legacy feature `innerheight` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html new file mode 100644 index 00000000000000..04978d724e6802 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html @@ -0,0 +1,67 @@ + + +HTML: window.open `features`: negative values for `top`, `left` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html new file mode 100644 index 00000000000000..a8cb402f2401b3 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html @@ -0,0 +1,66 @@ + + +HTML: window.open `features`: negative values for legacy `screenx`, `screeny` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html new file mode 100644 index 00000000000000..1eb9fb64ef1f57 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html @@ -0,0 +1,74 @@ + + +HTML: window.open `features`: negative values for `width`, `height` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html new file mode 100644 index 00000000000000..ff3d1bdb2e0266 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html @@ -0,0 +1,74 @@ + + +HTML: window.open `features`: negative values for legacy `innerwidth`, `innerheight` + + + + + + + + + diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/resources/message-opener.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/resources/message-opener.html new file mode 100644 index 00000000000000..e6c164bfae53f4 --- /dev/null +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/resources/message-opener.html @@ -0,0 +1,12 @@ + + From b84de1af3975474085aea3b9b1656a7460200d31 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Tue, 11 Apr 2017 22:50:51 +0200 Subject: [PATCH 3/4] Rename tests to be more descriptive --- ...16.html => open-features-negative-innerwidth-innerheight.html} | 0 ...ional-014.html => open-features-negative-screenx-screeny.html} | 0 ...res-optional-013.html => open-features-negative-top-left.html} | 0 ...optional-015.html => open-features-negative-width-height.html} | 0 ...es-optional-008.html => open-features-non-integer-height.html} | 0 ...tional-012.html => open-features-non-integer-innerheight.html} | 0 ...ptional-011.html => open-features-non-integer-innerwidth.html} | 0 ...ures-optional-006.html => open-features-non-integer-left.html} | 0 ...s-optional-009.html => open-features-non-integer-screenx.html} | 0 ...s-optional-010.html => open-features-non-integer-screeny.html} | 0 ...tures-optional-005.html => open-features-non-integer-top.html} | 0 ...res-optional-007.html => open-features-non-integer-width.html} | 0 ...tml => open-features-tokenization-innerheight-innerwidth.html} | 0 ...nization-001.html => open-features-tokenization-noopener.html} | 0 ...l-003.html => open-features-tokenization-screenx-screeny.html} | 0 ...optional-001.html => open-features-tokenization-top-left.html} | 0 ...onal-002.html => open-features-tokenization-width-height.html} | 0 17 files changed, 0 insertions(+), 0 deletions(-) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-016.html => open-features-negative-innerwidth-innerheight.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-014.html => open-features-negative-screenx-screeny.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-013.html => open-features-negative-top-left.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-015.html => open-features-negative-width-height.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-008.html => open-features-non-integer-height.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-012.html => open-features-non-integer-innerheight.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-011.html => open-features-non-integer-innerwidth.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-006.html => open-features-non-integer-left.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-009.html => open-features-non-integer-screenx.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-010.html => open-features-non-integer-screeny.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-005.html => open-features-non-integer-top.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-007.html => open-features-non-integer-width.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-004.html => open-features-tokenization-innerheight-innerwidth.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-tokenization-001.html => open-features-tokenization-noopener.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-003.html => open-features-tokenization-screenx-screeny.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-001.html => open-features-tokenization-top-left.html} (100%) rename html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/{open-features-optional-002.html => open-features-tokenization-width-height.html} (100%) diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-016.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-014.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-013.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-015.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-008.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-012.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-011.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-006.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-009.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-010.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-005.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-007.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-innerheight-innerwidth.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-004.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-innerheight-innerwidth.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-001.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-noopener.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-001.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-noopener.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-screenx-screeny.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-003.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-screenx-screeny.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-top-left.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-001.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-top-left.html diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-width-height.html similarity index 100% rename from html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-optional-002.html rename to html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-width-height.html From bb8e3fcba9fce2801664964bbbdf5bac178d8f41 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Wed, 12 Apr 2017 16:45:02 +0200 Subject: [PATCH 4/4] Set long timeout since Firefox takes a long time to open popups --- .../open-features-negative-innerwidth-innerheight.html | 1 + .../open-features-negative-screenx-screeny.html | 1 + .../open-features-negative-top-left.html | 1 + .../open-features-negative-width-height.html | 1 + .../open-features-non-integer-height.html | 1 + .../open-features-non-integer-innerheight.html | 1 + .../open-features-non-integer-innerwidth.html | 1 + .../open-features-non-integer-left.html | 1 + .../open-features-non-integer-screenx.html | 1 + .../open-features-non-integer-screeny.html | 1 + .../open-features-non-integer-top.html | 1 + .../open-features-non-integer-width.html | 1 + .../open-features-tokenization-innerheight-innerwidth.html | 1 + .../open-features-tokenization-noopener.html | 1 + .../open-features-tokenization-screenx-screeny.html | 1 + .../open-features-tokenization-top-left.html | 1 + .../open-features-tokenization-width-height.html | 1 + 17 files changed, 17 insertions(+) diff --git a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html index ff3d1bdb2e0266..7f55f1bb1d809a 100644 --- a/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html +++ b/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html @@ -1,6 +1,7 @@ HTML: window.open `features`: negative values for legacy `innerwidth`, `innerheight` +