From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- layout/reftests/selection/1478604-ref.html | 20 ++ layout/reftests/selection/1478604.html | 23 ++ layout/reftests/selection/addrange-1.html | 22 ++ layout/reftests/selection/addrange-2.html | 23 ++ layout/reftests/selection/addrange-ref.html | 18 ++ layout/reftests/selection/disabled-1-ref.html | 6 + layout/reftests/selection/disabled-1.html | 9 + layout/reftests/selection/disabled-2-notref.html | 8 + layout/reftests/selection/disabled-2.html | 9 + layout/reftests/selection/dom-mutations-ref.html | 190 ++++++++++++++++ layout/reftests/selection/dom-mutations.html | 250 +++++++++++++++++++++ layout/reftests/selection/dynamic-text-1-ref.html | 15 ++ layout/reftests/selection/dynamic-text-1a.html | 22 ++ layout/reftests/selection/dynamic-text-1b.html | 20 ++ layout/reftests/selection/extend-1-ref.html | 13 ++ layout/reftests/selection/extend-1-sanity.html | 6 + layout/reftests/selection/extend-1a.html | 19 ++ layout/reftests/selection/extend-1b.html | 20 ++ layout/reftests/selection/extend-1c.html | 20 ++ layout/reftests/selection/extend-1d.html | 20 ++ layout/reftests/selection/extend-1e.html | 20 ++ layout/reftests/selection/extend-1f.html | 20 ++ layout/reftests/selection/extend-1g.html | 20 ++ layout/reftests/selection/extend-1h.html | 20 ++ layout/reftests/selection/extend-1i.html | 20 ++ layout/reftests/selection/extend-2-ref.html | 6 + layout/reftests/selection/extend-2a.html | 20 ++ layout/reftests/selection/extend-2b.html | 20 ++ layout/reftests/selection/extend-3-ref.html | 27 +++ layout/reftests/selection/extend-3-sanity.html | 17 ++ layout/reftests/selection/extend-3a.html | 34 +++ layout/reftests/selection/extend-3b.html | 33 +++ layout/reftests/selection/extend-3c.html | 33 +++ layout/reftests/selection/extend-3d.html | 33 +++ layout/reftests/selection/extend-3e.html | 33 +++ layout/reftests/selection/extend-3f.html | 33 +++ layout/reftests/selection/extend-3g.html | 33 +++ layout/reftests/selection/extend-3h.html | 33 +++ layout/reftests/selection/extend-3i.html | 33 +++ layout/reftests/selection/extend-4-ref.html | 17 ++ layout/reftests/selection/extend-4a.html | 33 +++ layout/reftests/selection/extend-4b.html | 33 +++ layout/reftests/selection/invalidation-1-ref.html | 14 ++ layout/reftests/selection/invalidation-1a.html | 21 ++ layout/reftests/selection/invalidation-1b.html | 21 ++ layout/reftests/selection/invalidation-1c.html | 21 ++ layout/reftests/selection/invalidation-1d.html | 21 ++ layout/reftests/selection/invalidation-1e.html | 21 ++ layout/reftests/selection/invalidation-1f.html | 21 ++ layout/reftests/selection/invalidation-2-ref.html | 8 + layout/reftests/selection/invalidation-2a.html | 21 ++ layout/reftests/selection/invalidation-2b.html | 21 ++ layout/reftests/selection/invalidation-2c.html | 21 ++ layout/reftests/selection/invalidation-2d.html | 21 ++ layout/reftests/selection/invalidation-2e.html | 21 ++ layout/reftests/selection/invalidation-2f.html | 21 ++ layout/reftests/selection/modify-range-ref.html | 68 ++++++ layout/reftests/selection/modify-range.html | 68 ++++++ .../reftests/selection/non-themed-widget-ref.html | 16 ++ layout/reftests/selection/non-themed-widget.html | 12 + .../pseudo-element-of-native-anonymous-ref.html | 13 ++ .../pseudo-element-of-native-anonymous.html | 17 ++ layout/reftests/selection/reftest.list | 60 +++++ .../rtl-selection-with-decoration-ref.html | 24 ++ .../selection/rtl-selection-with-decoration.html | 40 ++++ .../semitransparent-decoration-line-ref.html | 29 +++ .../selection/semitransparent-decoration-line.html | 45 ++++ .../selection/shadow-tree-order-1-notref.html | 4 + .../selection/shadow-tree-order-1-ref.html | 13 ++ layout/reftests/selection/shadow-tree-order-1.html | 18 ++ .../selection/splitText-normalize-ref.html | 40 ++++ layout/reftests/selection/splitText-normalize.html | 40 ++++ layout/reftests/selection/splitText-normalize.js | 86 +++++++ layout/reftests/selection/themed-widget-ref.html | 13 ++ layout/reftests/selection/themed-widget.html | 5 + .../reftests/selection/trailing-space-1-ref.html | 27 +++ layout/reftests/selection/trailing-space-1.html | 27 +++ layout/reftests/selection/writing-mode-ref.html | 39 ++++ layout/reftests/selection/writing-mode.html | 56 +++++ 79 files changed, 2338 insertions(+) create mode 100644 layout/reftests/selection/1478604-ref.html create mode 100644 layout/reftests/selection/1478604.html create mode 100644 layout/reftests/selection/addrange-1.html create mode 100644 layout/reftests/selection/addrange-2.html create mode 100644 layout/reftests/selection/addrange-ref.html create mode 100644 layout/reftests/selection/disabled-1-ref.html create mode 100644 layout/reftests/selection/disabled-1.html create mode 100644 layout/reftests/selection/disabled-2-notref.html create mode 100644 layout/reftests/selection/disabled-2.html create mode 100644 layout/reftests/selection/dom-mutations-ref.html create mode 100644 layout/reftests/selection/dom-mutations.html create mode 100644 layout/reftests/selection/dynamic-text-1-ref.html create mode 100644 layout/reftests/selection/dynamic-text-1a.html create mode 100644 layout/reftests/selection/dynamic-text-1b.html create mode 100644 layout/reftests/selection/extend-1-ref.html create mode 100644 layout/reftests/selection/extend-1-sanity.html create mode 100644 layout/reftests/selection/extend-1a.html create mode 100644 layout/reftests/selection/extend-1b.html create mode 100644 layout/reftests/selection/extend-1c.html create mode 100644 layout/reftests/selection/extend-1d.html create mode 100644 layout/reftests/selection/extend-1e.html create mode 100644 layout/reftests/selection/extend-1f.html create mode 100644 layout/reftests/selection/extend-1g.html create mode 100644 layout/reftests/selection/extend-1h.html create mode 100644 layout/reftests/selection/extend-1i.html create mode 100644 layout/reftests/selection/extend-2-ref.html create mode 100644 layout/reftests/selection/extend-2a.html create mode 100644 layout/reftests/selection/extend-2b.html create mode 100644 layout/reftests/selection/extend-3-ref.html create mode 100644 layout/reftests/selection/extend-3-sanity.html create mode 100644 layout/reftests/selection/extend-3a.html create mode 100644 layout/reftests/selection/extend-3b.html create mode 100644 layout/reftests/selection/extend-3c.html create mode 100644 layout/reftests/selection/extend-3d.html create mode 100644 layout/reftests/selection/extend-3e.html create mode 100644 layout/reftests/selection/extend-3f.html create mode 100644 layout/reftests/selection/extend-3g.html create mode 100644 layout/reftests/selection/extend-3h.html create mode 100644 layout/reftests/selection/extend-3i.html create mode 100644 layout/reftests/selection/extend-4-ref.html create mode 100644 layout/reftests/selection/extend-4a.html create mode 100644 layout/reftests/selection/extend-4b.html create mode 100644 layout/reftests/selection/invalidation-1-ref.html create mode 100644 layout/reftests/selection/invalidation-1a.html create mode 100644 layout/reftests/selection/invalidation-1b.html create mode 100644 layout/reftests/selection/invalidation-1c.html create mode 100644 layout/reftests/selection/invalidation-1d.html create mode 100644 layout/reftests/selection/invalidation-1e.html create mode 100644 layout/reftests/selection/invalidation-1f.html create mode 100644 layout/reftests/selection/invalidation-2-ref.html create mode 100644 layout/reftests/selection/invalidation-2a.html create mode 100644 layout/reftests/selection/invalidation-2b.html create mode 100644 layout/reftests/selection/invalidation-2c.html create mode 100644 layout/reftests/selection/invalidation-2d.html create mode 100644 layout/reftests/selection/invalidation-2e.html create mode 100644 layout/reftests/selection/invalidation-2f.html create mode 100644 layout/reftests/selection/modify-range-ref.html create mode 100644 layout/reftests/selection/modify-range.html create mode 100644 layout/reftests/selection/non-themed-widget-ref.html create mode 100644 layout/reftests/selection/non-themed-widget.html create mode 100644 layout/reftests/selection/pseudo-element-of-native-anonymous-ref.html create mode 100644 layout/reftests/selection/pseudo-element-of-native-anonymous.html create mode 100644 layout/reftests/selection/reftest.list create mode 100644 layout/reftests/selection/rtl-selection-with-decoration-ref.html create mode 100644 layout/reftests/selection/rtl-selection-with-decoration.html create mode 100644 layout/reftests/selection/semitransparent-decoration-line-ref.html create mode 100644 layout/reftests/selection/semitransparent-decoration-line.html create mode 100644 layout/reftests/selection/shadow-tree-order-1-notref.html create mode 100644 layout/reftests/selection/shadow-tree-order-1-ref.html create mode 100644 layout/reftests/selection/shadow-tree-order-1.html create mode 100644 layout/reftests/selection/splitText-normalize-ref.html create mode 100644 layout/reftests/selection/splitText-normalize.html create mode 100644 layout/reftests/selection/splitText-normalize.js create mode 100644 layout/reftests/selection/themed-widget-ref.html create mode 100644 layout/reftests/selection/themed-widget.html create mode 100644 layout/reftests/selection/trailing-space-1-ref.html create mode 100644 layout/reftests/selection/trailing-space-1.html create mode 100644 layout/reftests/selection/writing-mode-ref.html create mode 100644 layout/reftests/selection/writing-mode.html (limited to 'layout/reftests/selection') diff --git a/layout/reftests/selection/1478604-ref.html b/layout/reftests/selection/1478604-ref.html new file mode 100644 index 0000000000..1345e1966c --- /dev/null +++ b/layout/reftests/selection/1478604-ref.html @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/layout/reftests/selection/1478604.html b/layout/reftests/selection/1478604.html new file mode 100644 index 0000000000..5d17e5fd7b --- /dev/null +++ b/layout/reftests/selection/1478604.html @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/layout/reftests/selection/addrange-1.html b/layout/reftests/selection/addrange-1.html new file mode 100644 index 0000000000..648d421404 --- /dev/null +++ b/layout/reftests/selection/addrange-1.html @@ -0,0 +1,22 @@ + + + + Testcase #2 for bug 602331 + + + + * * + + diff --git a/layout/reftests/selection/addrange-2.html b/layout/reftests/selection/addrange-2.html new file mode 100644 index 0000000000..480e936780 --- /dev/null +++ b/layout/reftests/selection/addrange-2.html @@ -0,0 +1,23 @@ + + + + Testcase #3 for bug 602331 + + + + * Hello * + + diff --git a/layout/reftests/selection/addrange-ref.html b/layout/reftests/selection/addrange-ref.html new file mode 100644 index 0000000000..4e6a70db2f --- /dev/null +++ b/layout/reftests/selection/addrange-ref.html @@ -0,0 +1,18 @@ + + + + Testcase #1 for bug 602331 + + + + * Hello Kitty * + + diff --git a/layout/reftests/selection/disabled-1-ref.html b/layout/reftests/selection/disabled-1-ref.html new file mode 100644 index 0000000000..f259ca439d --- /dev/null +++ b/layout/reftests/selection/disabled-1-ref.html @@ -0,0 +1,6 @@ + + + + diff --git a/layout/reftests/selection/disabled-1.html b/layout/reftests/selection/disabled-1.html new file mode 100644 index 0000000000..a62971d076 --- /dev/null +++ b/layout/reftests/selection/disabled-1.html @@ -0,0 +1,9 @@ + + + + diff --git a/layout/reftests/selection/disabled-2-notref.html b/layout/reftests/selection/disabled-2-notref.html new file mode 100644 index 0000000000..ecce9e7054 --- /dev/null +++ b/layout/reftests/selection/disabled-2-notref.html @@ -0,0 +1,8 @@ + + + + diff --git a/layout/reftests/selection/disabled-2.html b/layout/reftests/selection/disabled-2.html new file mode 100644 index 0000000000..fc61d29563 --- /dev/null +++ b/layout/reftests/selection/disabled-2.html @@ -0,0 +1,9 @@ + + + + diff --git a/layout/reftests/selection/dom-mutations-ref.html b/layout/reftests/selection/dom-mutations-ref.html new file mode 100644 index 0000000000..5d2e29dcb5 --- /dev/null +++ b/layout/reftests/selection/dom-mutations-ref.html @@ -0,0 +1,190 @@ + + + + + Test for Bug 619273 + + + + diff --git a/layout/reftests/selection/dom-mutations.html b/layout/reftests/selection/dom-mutations.html new file mode 100644 index 0000000000..f81267f596 --- /dev/null +++ b/layout/reftests/selection/dom-mutations.html @@ -0,0 +1,250 @@ + + + + + Test for Bug 619273 + + + + diff --git a/layout/reftests/selection/dynamic-text-1-ref.html b/layout/reftests/selection/dynamic-text-1-ref.html new file mode 100644 index 0000000000..7552979633 --- /dev/null +++ b/layout/reftests/selection/dynamic-text-1-ref.html @@ -0,0 +1,15 @@ + + + + BC + FG + JK + + + diff --git a/layout/reftests/selection/dynamic-text-1a.html b/layout/reftests/selection/dynamic-text-1a.html new file mode 100644 index 0000000000..30e56ad3bc --- /dev/null +++ b/layout/reftests/selection/dynamic-text-1a.html @@ -0,0 +1,22 @@ + + + + 00 + BC + FG + JK + + + diff --git a/layout/reftests/selection/dynamic-text-1b.html b/layout/reftests/selection/dynamic-text-1b.html new file mode 100644 index 0000000000..1ffcf2329d --- /dev/null +++ b/layout/reftests/selection/dynamic-text-1b.html @@ -0,0 +1,20 @@ + + + + FG + JK + + + diff --git a/layout/reftests/selection/extend-1-ref.html b/layout/reftests/selection/extend-1-ref.html new file mode 100644 index 0000000000..a3d5bd9f8d --- /dev/null +++ b/layout/reftests/selection/extend-1-ref.html @@ -0,0 +1,13 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1-sanity.html b/layout/reftests/selection/extend-1-sanity.html new file mode 100644 index 0000000000..5e362a5133 --- /dev/null +++ b/layout/reftests/selection/extend-1-sanity.html @@ -0,0 +1,6 @@ + + + +0123456789 + + diff --git a/layout/reftests/selection/extend-1a.html b/layout/reftests/selection/extend-1a.html new file mode 100644 index 0000000000..b1ae4650b9 --- /dev/null +++ b/layout/reftests/selection/extend-1a.html @@ -0,0 +1,19 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1b.html b/layout/reftests/selection/extend-1b.html new file mode 100644 index 0000000000..666158cc67 --- /dev/null +++ b/layout/reftests/selection/extend-1b.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1c.html b/layout/reftests/selection/extend-1c.html new file mode 100644 index 0000000000..0a963f4405 --- /dev/null +++ b/layout/reftests/selection/extend-1c.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1d.html b/layout/reftests/selection/extend-1d.html new file mode 100644 index 0000000000..027f47e24e --- /dev/null +++ b/layout/reftests/selection/extend-1d.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1e.html b/layout/reftests/selection/extend-1e.html new file mode 100644 index 0000000000..d87d105761 --- /dev/null +++ b/layout/reftests/selection/extend-1e.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1f.html b/layout/reftests/selection/extend-1f.html new file mode 100644 index 0000000000..b04adbde65 --- /dev/null +++ b/layout/reftests/selection/extend-1f.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1g.html b/layout/reftests/selection/extend-1g.html new file mode 100644 index 0000000000..b91d792761 --- /dev/null +++ b/layout/reftests/selection/extend-1g.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1h.html b/layout/reftests/selection/extend-1h.html new file mode 100644 index 0000000000..57269776e1 --- /dev/null +++ b/layout/reftests/selection/extend-1h.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-1i.html b/layout/reftests/selection/extend-1i.html new file mode 100644 index 0000000000..4165397f68 --- /dev/null +++ b/layout/reftests/selection/extend-1i.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-2-ref.html b/layout/reftests/selection/extend-2-ref.html new file mode 100644 index 0000000000..5e362a5133 --- /dev/null +++ b/layout/reftests/selection/extend-2-ref.html @@ -0,0 +1,6 @@ + + + +0123456789 + + diff --git a/layout/reftests/selection/extend-2a.html b/layout/reftests/selection/extend-2a.html new file mode 100644 index 0000000000..20565fd72d --- /dev/null +++ b/layout/reftests/selection/extend-2a.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-2b.html b/layout/reftests/selection/extend-2b.html new file mode 100644 index 0000000000..553ead891d --- /dev/null +++ b/layout/reftests/selection/extend-2b.html @@ -0,0 +1,20 @@ + + + +0123456789 + + + diff --git a/layout/reftests/selection/extend-3-ref.html b/layout/reftests/selection/extend-3-ref.html new file mode 100644 index 0000000000..fa4ed01bbb --- /dev/null +++ b/layout/reftests/selection/extend-3-ref.html @@ -0,0 +1,27 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3-sanity.html b/layout/reftests/selection/extend-3-sanity.html new file mode 100644 index 0000000000..9be4706484 --- /dev/null +++ b/layout/reftests/selection/extend-3-sanity.html @@ -0,0 +1,17 @@ + + + + + + diff --git a/layout/reftests/selection/extend-3a.html b/layout/reftests/selection/extend-3a.html new file mode 100644 index 0000000000..54b44a52d0 --- /dev/null +++ b/layout/reftests/selection/extend-3a.html @@ -0,0 +1,34 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3b.html b/layout/reftests/selection/extend-3b.html new file mode 100644 index 0000000000..4992fa6f99 --- /dev/null +++ b/layout/reftests/selection/extend-3b.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3c.html b/layout/reftests/selection/extend-3c.html new file mode 100644 index 0000000000..5ffd190909 --- /dev/null +++ b/layout/reftests/selection/extend-3c.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3d.html b/layout/reftests/selection/extend-3d.html new file mode 100644 index 0000000000..8d293823ec --- /dev/null +++ b/layout/reftests/selection/extend-3d.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3e.html b/layout/reftests/selection/extend-3e.html new file mode 100644 index 0000000000..9cd8aa5b2f --- /dev/null +++ b/layout/reftests/selection/extend-3e.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3f.html b/layout/reftests/selection/extend-3f.html new file mode 100644 index 0000000000..0b534a15d3 --- /dev/null +++ b/layout/reftests/selection/extend-3f.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3g.html b/layout/reftests/selection/extend-3g.html new file mode 100644 index 0000000000..9a4cc70823 --- /dev/null +++ b/layout/reftests/selection/extend-3g.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3h.html b/layout/reftests/selection/extend-3h.html new file mode 100644 index 0000000000..9c802bbd48 --- /dev/null +++ b/layout/reftests/selection/extend-3h.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-3i.html b/layout/reftests/selection/extend-3i.html new file mode 100644 index 0000000000..61db7b0c6b --- /dev/null +++ b/layout/reftests/selection/extend-3i.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-4-ref.html b/layout/reftests/selection/extend-4-ref.html new file mode 100644 index 0000000000..9be4706484 --- /dev/null +++ b/layout/reftests/selection/extend-4-ref.html @@ -0,0 +1,17 @@ + + + + + + diff --git a/layout/reftests/selection/extend-4a.html b/layout/reftests/selection/extend-4a.html new file mode 100644 index 0000000000..87182829e4 --- /dev/null +++ b/layout/reftests/selection/extend-4a.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/extend-4b.html b/layout/reftests/selection/extend-4b.html new file mode 100644 index 0000000000..0ba691c2ca --- /dev/null +++ b/layout/reftests/selection/extend-4b.html @@ -0,0 +1,33 @@ + + + + + + + diff --git a/layout/reftests/selection/invalidation-1-ref.html b/layout/reftests/selection/invalidation-1-ref.html new file mode 100644 index 0000000000..a0f7f151e9 --- /dev/null +++ b/layout/reftests/selection/invalidation-1-ref.html @@ -0,0 +1,14 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1a.html b/layout/reftests/selection/invalidation-1a.html new file mode 100644 index 0000000000..4cec34c984 --- /dev/null +++ b/layout/reftests/selection/invalidation-1a.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1b.html b/layout/reftests/selection/invalidation-1b.html new file mode 100644 index 0000000000..36cd3d4402 --- /dev/null +++ b/layout/reftests/selection/invalidation-1b.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1c.html b/layout/reftests/selection/invalidation-1c.html new file mode 100644 index 0000000000..96edcc28d8 --- /dev/null +++ b/layout/reftests/selection/invalidation-1c.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1d.html b/layout/reftests/selection/invalidation-1d.html new file mode 100644 index 0000000000..d9cfa97f12 --- /dev/null +++ b/layout/reftests/selection/invalidation-1d.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1e.html b/layout/reftests/selection/invalidation-1e.html new file mode 100644 index 0000000000..dac4c6ac22 --- /dev/null +++ b/layout/reftests/selection/invalidation-1e.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-1f.html b/layout/reftests/selection/invalidation-1f.html new file mode 100644 index 0000000000..0d4bdbb607 --- /dev/null +++ b/layout/reftests/selection/invalidation-1f.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2-ref.html b/layout/reftests/selection/invalidation-2-ref.html new file mode 100644 index 0000000000..f79e64a999 --- /dev/null +++ b/layout/reftests/selection/invalidation-2-ref.html @@ -0,0 +1,8 @@ + + + + +

foo

+

bar

+ + diff --git a/layout/reftests/selection/invalidation-2a.html b/layout/reftests/selection/invalidation-2a.html new file mode 100644 index 0000000000..520cbbef8e --- /dev/null +++ b/layout/reftests/selection/invalidation-2a.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2b.html b/layout/reftests/selection/invalidation-2b.html new file mode 100644 index 0000000000..176c49cb81 --- /dev/null +++ b/layout/reftests/selection/invalidation-2b.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2c.html b/layout/reftests/selection/invalidation-2c.html new file mode 100644 index 0000000000..8d3bfd15cc --- /dev/null +++ b/layout/reftests/selection/invalidation-2c.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2d.html b/layout/reftests/selection/invalidation-2d.html new file mode 100644 index 0000000000..d2163bae77 --- /dev/null +++ b/layout/reftests/selection/invalidation-2d.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2e.html b/layout/reftests/selection/invalidation-2e.html new file mode 100644 index 0000000000..bbc8d11145 --- /dev/null +++ b/layout/reftests/selection/invalidation-2e.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/invalidation-2f.html b/layout/reftests/selection/invalidation-2f.html new file mode 100644 index 0000000000..f74821f90f --- /dev/null +++ b/layout/reftests/selection/invalidation-2f.html @@ -0,0 +1,21 @@ + + + + +

foo

+

bar

+ + + diff --git a/layout/reftests/selection/modify-range-ref.html b/layout/reftests/selection/modify-range-ref.html new file mode 100644 index 0000000000..5086fcef8a --- /dev/null +++ b/layout/reftests/selection/modify-range-ref.html @@ -0,0 +1,68 @@ + + + + Testcase for bug + + + + + diff --git a/layout/reftests/selection/modify-range.html b/layout/reftests/selection/modify-range.html new file mode 100644 index 0000000000..2595511ed0 --- /dev/null +++ b/layout/reftests/selection/modify-range.html @@ -0,0 +1,68 @@ + + + + Testcase for bug + + + + + diff --git a/layout/reftests/selection/non-themed-widget-ref.html b/layout/reftests/selection/non-themed-widget-ref.html new file mode 100644 index 0000000000..08faed7ec3 --- /dev/null +++ b/layout/reftests/selection/non-themed-widget-ref.html @@ -0,0 +1,16 @@ + + + + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/non-themed-widget.html b/layout/reftests/selection/non-themed-widget.html new file mode 100644 index 0000000000..7b8708fc1e --- /dev/null +++ b/layout/reftests/selection/non-themed-widget.html @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/pseudo-element-of-native-anonymous-ref.html b/layout/reftests/selection/pseudo-element-of-native-anonymous-ref.html new file mode 100644 index 0000000000..dbcfef7cfc --- /dev/null +++ b/layout/reftests/selection/pseudo-element-of-native-anonymous-ref.html @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/pseudo-element-of-native-anonymous.html b/layout/reftests/selection/pseudo-element-of-native-anonymous.html new file mode 100644 index 0000000000..9193f1c27c --- /dev/null +++ b/layout/reftests/selection/pseudo-element-of-native-anonymous.html @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/reftest.list b/layout/reftests/selection/reftest.list new file mode 100644 index 0000000000..a7d9ba1739 --- /dev/null +++ b/layout/reftests/selection/reftest.list @@ -0,0 +1,60 @@ +fuzzy(0-1,0-30) == dynamic-text-1a.html dynamic-text-1-ref.html +fuzzy(0-1,0-40) == dynamic-text-1b.html dynamic-text-1-ref.html +!= extend-1-sanity.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1a.html extend-1-ref.html +fuzzy(0-1,0-10) == extend-1b.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1c.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1d.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1e.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1f.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1g.html extend-1-ref.html +fuzzy(0-1,0-1000) == extend-1h.html extend-1-ref.html +fuzzy(0-1,0-10) == extend-1i.html extend-1-ref.html +== extend-2a.html extend-2-ref.html +== extend-2b.html extend-2-ref.html +!= extend-3-sanity.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3a.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3b.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3c.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3d.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3e.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3f.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3g.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3h.html extend-3-ref.html +fuzzy(0-1,0-700) == extend-3i.html extend-3-ref.html +== extend-4a.html extend-4-ref.html +== extend-4b.html extend-4-ref.html +# these 3 random-if(Android) are a difference of Native & Xul, see bug 739714 +random-if(Android) needs-focus != pseudo-element-of-native-anonymous.html pseudo-element-of-native-anonymous-ref.html # bug 676641 +# These tests uses Highlight and HighlightText color keywords, they are not same as text selection color on Mac. +random-if(Android) fails-if(cocoaWidget) needs-focus == non-themed-widget.html non-themed-widget-ref.html +random-if(Android) needs-focus == themed-widget.html themed-widget-ref.html +== addrange-1.html addrange-ref.html +fuzzy(0-1,0-1200) == addrange-2.html addrange-ref.html +== splitText-normalize.html splitText-normalize-ref.html +== modify-range.html modify-range-ref.html +== dom-mutations.html dom-mutations-ref.html +fuzzy-if(!OSX,0-1,0-2138) == trailing-space-1.html trailing-space-1-ref.html +!= invalidation-1-ref.html invalidation-2-ref.html +== invalidation-1a.html invalidation-1-ref.html +== invalidation-1b.html invalidation-1-ref.html +== invalidation-1c.html invalidation-1-ref.html +== invalidation-1d.html invalidation-1-ref.html +== invalidation-1e.html invalidation-1-ref.html +== invalidation-1f.html invalidation-1-ref.html +== invalidation-2a.html invalidation-2-ref.html +== invalidation-2b.html invalidation-2-ref.html +== invalidation-2c.html invalidation-2-ref.html +== invalidation-2d.html invalidation-2-ref.html +== invalidation-2e.html invalidation-2-ref.html +== invalidation-2f.html invalidation-2-ref.html +fuzzy(0-7,0-4) needs-focus == rtl-selection-with-decoration.html rtl-selection-with-decoration-ref.html +needs-focus == semitransparent-decoration-line.html semitransparent-decoration-line-ref.html +fuzzy-if(OSX,0-1,0-6) fuzzy-if(Android,0-188,0-39) needs-focus == writing-mode.html writing-mode-ref.html +needs-focus fuzzy(0-5,0-1) == 1478604.html 1478604-ref.html # !webrender: Seems like an antialiasing+invalidation issue. + +needs-focus fuzzy(0-3,0-13) == disabled-1.html disabled-1-ref.html +needs-focus != disabled-2.html disabled-2-notref.html + +== shadow-tree-order-1.html shadow-tree-order-1-ref.html +!= shadow-tree-order-1.html shadow-tree-order-1-notref.html diff --git a/layout/reftests/selection/rtl-selection-with-decoration-ref.html b/layout/reftests/selection/rtl-selection-with-decoration-ref.html new file mode 100644 index 0000000000..6e057bf95a --- /dev/null +++ b/layout/reftests/selection/rtl-selection-with-decoration-ref.html @@ -0,0 +1,24 @@ + + + + + rtl-selection-with-decoration-ref + + + +

זוהי עובדה הקורא שדעתו מבוססת של תהיה

+

זוהי עובדה הקורא שדעתו מבוססת של תהיה

+ + diff --git a/layout/reftests/selection/rtl-selection-with-decoration.html b/layout/reftests/selection/rtl-selection-with-decoration.html new file mode 100644 index 0000000000..942f50530b --- /dev/null +++ b/layout/reftests/selection/rtl-selection-with-decoration.html @@ -0,0 +1,40 @@ + + + + + rtl-selection-with-decoration + + + + +

זוהי עובדה הקורא שדעתו מבוססת של תהיה

+

זוהי עובדה הקורא שדעתו מבוססת של תהיה

+ + diff --git a/layout/reftests/selection/semitransparent-decoration-line-ref.html b/layout/reftests/selection/semitransparent-decoration-line-ref.html new file mode 100644 index 0000000000..75163e97fc --- /dev/null +++ b/layout/reftests/selection/semitransparent-decoration-line-ref.html @@ -0,0 +1,29 @@ + + + + + semitransparent-decoration-line-ref + + + +

Lorem ipsum dolor sit amet

+

Lorem ipsum dolor sit amet

+

Lorem ipsum dolor sit amet

+ + diff --git a/layout/reftests/selection/semitransparent-decoration-line.html b/layout/reftests/selection/semitransparent-decoration-line.html new file mode 100644 index 0000000000..bdddf67931 --- /dev/null +++ b/layout/reftests/selection/semitransparent-decoration-line.html @@ -0,0 +1,45 @@ + + + + + semitransparent-decoration-line + + + + +

Lorem ipsum dolor sit amet

+

Lorem ipsum dolor sit amet

+

Lorem ipsum dolor sit amet

+ + diff --git a/layout/reftests/selection/shadow-tree-order-1-notref.html b/layout/reftests/selection/shadow-tree-order-1-notref.html new file mode 100644 index 0000000000..35258d862f --- /dev/null +++ b/layout/reftests/selection/shadow-tree-order-1-notref.html @@ -0,0 +1,4 @@ + +

Something to find above

+

Something to find in the shadow

+

Something to find below

diff --git a/layout/reftests/selection/shadow-tree-order-1-ref.html b/layout/reftests/selection/shadow-tree-order-1-ref.html new file mode 100644 index 0000000000..4651a2c6fd --- /dev/null +++ b/layout/reftests/selection/shadow-tree-order-1-ref.html @@ -0,0 +1,13 @@ + +

Something to find above

+

Something to find in the shadow

+

Something to find below

+ diff --git a/layout/reftests/selection/shadow-tree-order-1.html b/layout/reftests/selection/shadow-tree-order-1.html new file mode 100644 index 0000000000..916fa6ab5f --- /dev/null +++ b/layout/reftests/selection/shadow-tree-order-1.html @@ -0,0 +1,18 @@ + +

Something to find above

+

+

Something to find below

+ diff --git a/layout/reftests/selection/splitText-normalize-ref.html b/layout/reftests/selection/splitText-normalize-ref.html new file mode 100644 index 0000000000..7af1d34d47 --- /dev/null +++ b/layout/reftests/selection/splitText-normalize-ref.html @@ -0,0 +1,40 @@ + + + + + Test for Bug 191864 + + + + + + + + + + diff --git a/layout/reftests/selection/splitText-normalize.html b/layout/reftests/selection/splitText-normalize.html new file mode 100644 index 0000000000..5a7ed98869 --- /dev/null +++ b/layout/reftests/selection/splitText-normalize.html @@ -0,0 +1,40 @@ + + + + + Test for Bug 191864 + + + + + + + + + + diff --git a/layout/reftests/selection/splitText-normalize.js b/layout/reftests/selection/splitText-normalize.js new file mode 100644 index 0000000000..ae3dd312fa --- /dev/null +++ b/layout/reftests/selection/splitText-normalize.js @@ -0,0 +1,86 @@ +/** Test for Bug 191864 **/ +var tests_done = 0; +var tests = [ + [ {}, [0,4], "012345678" ], + [ {}, [0,0], "012345678" ], + [ {}, [0,9], "012345678" ], + [ {startOffset:4}, [0,4], "012345678" ], + [ {startOffset:5}, [0,4], "012345678" ], + [ {startOffset:5,endOffset:6}, [0,4], "012345678" ], + [ {endOffset:5}, [0,4], "012345678" ], + [ {endOffset:4}, [0,4], "012345678" ], + [ {endOffset:3}, [0,4], "012345678" ], + [ {startOffset:1,endOffset:3}, [0,4], "012345678" ], + [ {startOffset:7,endOffset:7}, [0,4], "012345678" ], + [ {startOffset:4,endOffset:4}, [0,4], "012345678" ], + [ {endNode:1}, [0,4], "012345678", "" ], + [ {endNode:1}, [0,4], "01234567", "8" ], + [ {endNode:1}, [1,4], "0", "12345678" ], + [ {startOffset:1,endNode:1}, [0,0], "0", "12345678" ], + [ {endNode:2}, [1,4], "0", "12345", "678" ], +] + +function runtest(f,t,nosplit) { + // create content + let doc = f.contentDocument; + for (let i = 2; i < t.length; ++i) { + c = doc.createTextNode(t[i]); + doc.body.appendChild(c); + } + + // setup selection + let sel = t[0] + let startNode = sel.startNode === undefined ? doc.body.firstChild : doc.body.childNodes[sel.startNode]; + let startOffset = sel.startOffset === undefined ? 0 : sel.startOffset; + let endNode = sel.endNode === undefined ? startNode : doc.body.childNodes[sel.endNode]; + let endOffset = sel.endOffset === undefined ? endNode.length : sel.endOffset; + let selection = f.contentWindow.getSelection(); + let r = doc.createRange(); + r.setStart(startNode, startOffset); + r.setEnd(endNode, endOffset); + selection.addRange(r); + + // splitText + let split = t[1] + if (!nosplit) + doc.body.childNodes[split[0]].splitText(split[1]) +} +function test_ref(f,t,nosplit) { + runtest(f,t,true); +} +function test_split(f,t) { + runtest(f,t); +} +function test_split_insert(f,t) { + runtest(f,t); + let doc = f.contentDocument; + doc.body.firstChild; + let split = t[1] + let text1 = doc.body.childNodes[split[0]] + let text2 = doc.body.childNodes[split[0]+1] + if (text2.textContent.length==0) return; + let c = doc.createTextNode(text2.textContent[0]); + doc.body.insertBefore(c,text2); + let r = doc.createRange(); + r.setStart(text2, 0); + r.setEnd(text2, 1); + r.deleteContents(); +} +function test_split_merge(f,t) { + runtest(f,t); + f.contentDocument.body.normalize(); +} +function test_merge(f,t) { + runtest(f,t,true); + f.contentDocument.body.normalize(); +} + +function createFrame(run,t) { + let f = document.createElement('iframe'); + f.setAttribute('height','22'); + f.setAttribute('frameborder','0'); + f.setAttribute('width','200'); + f.src = 'data:text/html,'; + f.onload = function () { try { run(f, t); } finally { ++tests_done; } } + return f; +} diff --git a/layout/reftests/selection/themed-widget-ref.html b/layout/reftests/selection/themed-widget-ref.html new file mode 100644 index 0000000000..1a932c3037 --- /dev/null +++ b/layout/reftests/selection/themed-widget-ref.html @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/themed-widget.html b/layout/reftests/selection/themed-widget.html new file mode 100644 index 0000000000..6d94f5584b --- /dev/null +++ b/layout/reftests/selection/themed-widget.html @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/layout/reftests/selection/trailing-space-1-ref.html b/layout/reftests/selection/trailing-space-1-ref.html new file mode 100644 index 0000000000..bb33604a72 --- /dev/null +++ b/layout/reftests/selection/trailing-space-1-ref.html @@ -0,0 +1,27 @@ + + + + + Test for bug 1146754 + + + + +
+
123 x
+
456 x
+
789 x
+
012 x
+
+ + diff --git a/layout/reftests/selection/trailing-space-1.html b/layout/reftests/selection/trailing-space-1.html new file mode 100644 index 0000000000..487cd726e7 --- /dev/null +++ b/layout/reftests/selection/trailing-space-1.html @@ -0,0 +1,27 @@ + + + + + Test for bug 1146754 + + + + +
+
123
+
456
+
789
+
012
+
+ + diff --git a/layout/reftests/selection/writing-mode-ref.html b/layout/reftests/selection/writing-mode-ref.html new file mode 100644 index 0000000000..3619c1811f --- /dev/null +++ b/layout/reftests/selection/writing-mode-ref.html @@ -0,0 +1,39 @@ + + + + + writing-mode-ref + + + +

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+
+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+ + diff --git a/layout/reftests/selection/writing-mode.html b/layout/reftests/selection/writing-mode.html new file mode 100644 index 0000000000..e74728c589 --- /dev/null +++ b/layout/reftests/selection/writing-mode.html @@ -0,0 +1,56 @@ + + + + + writing-mode + + + + +

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+
+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+

你好世界!Hello World!

+ + -- cgit v1.2.3