From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../mozilla/tests/focus/Range_collapse.html | 207 ++++ .../mozilla/tests/focus/Range_selectNode.html | 267 +++++ .../mozilla/tests/focus/Range_setEnd.html | 364 ++++++ .../mozilla/tests/focus/Range_setStart.html | 353 ++++++ .../mozilla/tests/focus/Selection_addRange.html | 1242 ++++++++++++++++++++ .../tests/focus/Selection_addRange_in_iframe.html | 63 + .../focus/Selection_addRange_into_iframe.html | 67 ++ .../Selection_addRange_into_iframe_iframe.html | 9 + .../mozilla/tests/focus/Selection_collapse.html | 148 +++ .../tests/focus/Selection_collapseToEnd.html | 134 +++ .../tests/focus/Selection_collapseToStart.html | 142 +++ .../mozilla/tests/focus/Selection_extend.html | 189 +++ .../tests/focus/Selection_removeAllRanges.html | 112 ++ .../mozilla/tests/focus/Selection_removeRange.html | 112 ++ .../tests/focus/Selection_selectAllChildren.html | 254 ++++ .../tests/focus/Selection_setBaseAndExtent.html | 926 +++++++++++++++ .../tests/focus/delegateFocus-is-focusable.html | 19 + .../focus-before-iframe-loaded-different-site.html | 16 + .../focus-before-iframe-loaded-same-site.html | 16 + ...t-tick-before-iframe-loaded-different-site.html | 16 + ...s-next-tick-before-iframe-loaded-same-site.html | 16 + ...iframe-focus-event-after-iframe-gets-focus.html | 75 ++ ...-before-iframe-loaded-different-site-inner.html | 17 + ...ore-iframe-loaded-different-site-outer.sub.html | 42 + ...focus-before-iframe-loaded-same-site-inner.html | 17 + ...focus-before-iframe-loaded-same-site-outer.html | 42 + ...-before-iframe-loaded-different-site-inner.html | 17 + ...ore-iframe-loaded-different-site-outer.sub.html | 50 + ...-tick-before-iframe-loaded-same-site-inner.html | 17 + ...-tick-before-iframe-loaded-same-site-outer.html | 50 + ...different-site-iframe-gets-focus-outer.sub.html | 42 + ...-focus-event-after-iframe-gets-focus-inner.html | 31 + ...nt-after-same-site-iframe-gets-focus-outer.html | 42 + 33 files changed, 5114 insertions(+) create mode 100644 testing/web-platform/mozilla/tests/focus/Range_collapse.html create mode 100644 testing/web-platform/mozilla/tests/focus/Range_selectNode.html create mode 100644 testing/web-platform/mozilla/tests/focus/Range_setEnd.html create mode 100644 testing/web-platform/mozilla/tests/focus/Range_setStart.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_addRange.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_addRange_in_iframe.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe_iframe.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_collapse.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_collapseToEnd.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_collapseToStart.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_extend.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_removeAllRanges.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_removeRange.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_selectAllChildren.html create mode 100644 testing/web-platform/mozilla/tests/focus/Selection_setBaseAndExtent.html create mode 100644 testing/web-platform/mozilla/tests/focus/delegateFocus-is-focusable.html create mode 100644 testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-different-site.html create mode 100644 testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-same-site.html create mode 100644 testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-different-site.html create mode 100644 testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-same-site.html create mode 100644 testing/web-platform/mozilla/tests/focus/iframe-focus-event-after-iframe-gets-focus.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-inner.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-outer.sub.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-inner.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-outer.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-inner.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-outer.sub.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-inner.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-outer.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-different-site-iframe-gets-focus-outer.sub.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-iframe-gets-focus-inner.html create mode 100644 testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-same-site-iframe-gets-focus-outer.html (limited to 'testing/web-platform/mozilla/tests/focus') diff --git a/testing/web-platform/mozilla/tests/focus/Range_collapse.html b/testing/web-platform/mozilla/tests/focus/Range_collapse.html new file mode 100644 index 0000000000..7c16f16bec --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Range_collapse.html @@ -0,0 +1,207 @@ + + +focus move tests caused by a call of Range.collapse() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Range_selectNode.html b/testing/web-platform/mozilla/tests/focus/Range_selectNode.html new file mode 100644 index 0000000000..3975653d2c --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Range_selectNode.html @@ -0,0 +1,267 @@ + + +focus move tests caused by a call of Range.selectNode() and Range.selectNodeContents() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Range_setEnd.html b/testing/web-platform/mozilla/tests/focus/Range_setEnd.html new file mode 100644 index 0000000000..e1eed4ae71 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Range_setEnd.html @@ -0,0 +1,364 @@ + + +focus move tests caused by a call of Range.setEnd(), Range.setEndAfter() and Range.setEndBefore() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Range_setStart.html b/testing/web-platform/mozilla/tests/focus/Range_setStart.html new file mode 100644 index 0000000000..9297aa02ab --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Range_setStart.html @@ -0,0 +1,353 @@ + + +focus move tests caused by a call of Range.setStart(), Range.setStartAfter() and Range.setStartBefore() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_addRange.html b/testing/web-platform/mozilla/tests/focus/Selection_addRange.html new file mode 100644 index 0000000000..d94e688158 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_addRange.html @@ -0,0 +1,1242 @@ + + +focus move tests caused by a call of Selection.addRange() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_addRange_in_iframe.html b/testing/web-platform/mozilla/tests/focus/Selection_addRange_in_iframe.html new file mode 100644 index 0000000000..71b7c26c46 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_addRange_in_iframe.html @@ -0,0 +1,63 @@ + + +focus move and auto scroll tests caused by a call of Selection.addRange() into a contenteditable element in iframe + + + +
Spacer to check whether or not page was scrolled down to focused editor
+ + diff --git a/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe.html b/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe.html new file mode 100644 index 0000000000..e06e9cd17a --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe.html @@ -0,0 +1,67 @@ + + +focus move tests caused by a call of Selection.addRange() into iframe + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

Here is an iframe:

+ + diff --git a/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe_iframe.html b/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe_iframe.html new file mode 100644 index 0000000000..946d4aa5e7 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_addRange_into_iframe_iframe.html @@ -0,0 +1,9 @@ + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

Here are two editors:

+
The first editor.
+
The second editor.
+
The non-editable div.
+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_collapse.html b/testing/web-platform/mozilla/tests/focus/Selection_collapse.html new file mode 100644 index 0000000000..2e3050d822 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_collapse.html @@ -0,0 +1,148 @@ + + +focus move tests caused by a call of Selection.collapse() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_collapseToEnd.html b/testing/web-platform/mozilla/tests/focus/Selection_collapseToEnd.html new file mode 100644 index 0000000000..f768782650 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_collapseToEnd.html @@ -0,0 +1,134 @@ + + +focus move tests caused by a call of Selection.collapseToEnd() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_collapseToStart.html b/testing/web-platform/mozilla/tests/focus/Selection_collapseToStart.html new file mode 100644 index 0000000000..238a436c1b --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_collapseToStart.html @@ -0,0 +1,142 @@ + + +focus move tests caused by a call of Selection.collapseToStart() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_extend.html b/testing/web-platform/mozilla/tests/focus/Selection_extend.html new file mode 100644 index 0000000000..62136cc4a3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_extend.html @@ -0,0 +1,189 @@ + + +focus move tests caused by a call of Selection.extend() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_removeAllRanges.html b/testing/web-platform/mozilla/tests/focus/Selection_removeAllRanges.html new file mode 100644 index 0000000000..6e6854d44b --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_removeAllRanges.html @@ -0,0 +1,112 @@ + + +focus move tests caused by a call of Selection.removeAllRanges() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_removeRange.html b/testing/web-platform/mozilla/tests/focus/Selection_removeRange.html new file mode 100644 index 0000000000..14e78381d2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_removeRange.html @@ -0,0 +1,112 @@ + + +focus move tests caused by a call of Selection.removeRange() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_selectAllChildren.html b/testing/web-platform/mozilla/tests/focus/Selection_selectAllChildren.html new file mode 100644 index 0000000000..2753e60851 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_selectAllChildren.html @@ -0,0 +1,254 @@ + + +focus move tests caused by a call of Selection.selectAllChildren() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/Selection_setBaseAndExtent.html b/testing/web-platform/mozilla/tests/focus/Selection_setBaseAndExtent.html new file mode 100644 index 0000000000..7cfc110009 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/Selection_setBaseAndExtent.html @@ -0,0 +1,926 @@ + + +focus move tests caused by a call of Selection.setBaseAndExtent() + + + +
Spacer to check whether or not page was scrolled down to focused editor
+

static text

+

content of editor

+

content of outer editor

static content of outer editor

content of inner editor

+

static text

+

anchor

+ diff --git a/testing/web-platform/mozilla/tests/focus/delegateFocus-is-focusable.html b/testing/web-platform/mozilla/tests/focus/delegateFocus-is-focusable.html new file mode 100644 index 0000000000..35fd30f1f6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/delegateFocus-is-focusable.html @@ -0,0 +1,19 @@ + + +focus move tests caused by a call of Selection.addRange() + + +
+ diff --git a/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-different-site.html b/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-different-site.html new file mode 100644 index 0000000000..e765990145 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-different-site.html @@ -0,0 +1,16 @@ + + +focus() before iframe loaded different site + + + diff --git a/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-same-site.html b/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-same-site.html new file mode 100644 index 0000000000..fd7c2bffa6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/focus-before-iframe-loaded-same-site.html @@ -0,0 +1,16 @@ + + +focus() before iframe loaded same site + + + diff --git a/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-different-site.html b/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-different-site.html new file mode 100644 index 0000000000..58310fd687 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-different-site.html @@ -0,0 +1,16 @@ + + +focus() from next tick before iframe loaded different site + + + diff --git a/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-same-site.html b/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-same-site.html new file mode 100644 index 0000000000..01b467718c --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/focus-next-tick-before-iframe-loaded-same-site.html @@ -0,0 +1,16 @@ + + +focus() from next tick before iframe loaded same site + + + diff --git a/testing/web-platform/mozilla/tests/focus/iframe-focus-event-after-iframe-gets-focus.html b/testing/web-platform/mozilla/tests/focus/iframe-focus-event-after-iframe-gets-focus.html new file mode 100644 index 0000000000..82a1346ec6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/iframe-focus-event-after-iframe-gets-focus.html @@ -0,0 +1,75 @@ + + +Test focus event after iframe gets focus + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-inner.html b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-inner.html new file mode 100644 index 0000000000..bcf23627d2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-inner.html @@ -0,0 +1,17 @@ + + + + +focus() before iframe loaded different site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-outer.sub.html b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-outer.sub.html new file mode 100644 index 0000000000..e95fe7d292 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-outer.sub.html @@ -0,0 +1,42 @@ + + + +focus() before iframe loaded different site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-inner.html b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-inner.html new file mode 100644 index 0000000000..3c277f078f --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-inner.html @@ -0,0 +1,17 @@ + + + + +focus() before iframe loaded same site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-outer.html b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-outer.html new file mode 100644 index 0000000000..8c829d6d47 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-outer.html @@ -0,0 +1,42 @@ + + + +focus() before iframe loaded same site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-inner.html b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-inner.html new file mode 100644 index 0000000000..2c1b35f2b2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-inner.html @@ -0,0 +1,17 @@ + + + + +focus() from next tick before iframe loaded different site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-outer.sub.html b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-outer.sub.html new file mode 100644 index 0000000000..83a48e303d --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-different-site-outer.sub.html @@ -0,0 +1,50 @@ + + + +focus() from next tick before iframe loaded different site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-inner.html b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-inner.html new file mode 100644 index 0000000000..62add75ed9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-inner.html @@ -0,0 +1,17 @@ + + + + +focus() from next tick before iframe loaded same site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-outer.html b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-outer.html new file mode 100644 index 0000000000..a68d34039d --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/focus-next-tick-before-iframe-loaded-same-site-outer.html @@ -0,0 +1,50 @@ + + + +focus() from next tick before iframe loaded same site + + + + + diff --git a/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-different-site-iframe-gets-focus-outer.sub.html b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-different-site-iframe-gets-focus-outer.sub.html new file mode 100644 index 0000000000..d69580237c --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-different-site-iframe-gets-focus-outer.sub.html @@ -0,0 +1,42 @@ + + +Iframe focus event after different site iframe gets focus outer + + diff --git a/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-iframe-gets-focus-inner.html b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-iframe-gets-focus-inner.html new file mode 100644 index 0000000000..64a360d248 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-iframe-gets-focus-inner.html @@ -0,0 +1,31 @@ + + + + + Iframe focus event inner document + + +

Inner

+ + + diff --git a/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-same-site-iframe-gets-focus-outer.html b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-same-site-iframe-gets-focus-outer.html new file mode 100644 index 0000000000..06040d6485 --- /dev/null +++ b/testing/web-platform/mozilla/tests/focus/support/iframe-focus-event-after-same-site-iframe-gets-focus-outer.html @@ -0,0 +1,42 @@ + + +Iframe focus event after same site iframe gets focus outer + + -- cgit v1.2.3