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 --- accessible/tests/mochitest/text/a11y.ini | 19 + accessible/tests/mochitest/text/doc.html | 9 + .../tests/mochitest/text/test_atcaretoffset.html | 425 +++++++++++++++++++++ .../tests/mochitest/text/test_charboundary.html | 138 +++++++ accessible/tests/mochitest/text/test_doc.html | 40 ++ accessible/tests/mochitest/text/test_dynamic.html | 80 ++++ accessible/tests/mochitest/text/test_general.xhtml | 79 ++++ accessible/tests/mochitest/text/test_gettext.html | 135 +++++++ .../tests/mochitest/text/test_hypertext.html | 150 ++++++++ .../tests/mochitest/text/test_lineboundary.html | 422 ++++++++++++++++++++ .../mochitest/text/test_paragraphboundary.html | 148 +++++++ .../tests/mochitest/text/test_passwords.html | 72 ++++ .../tests/mochitest/text/test_selection.html | 119 ++++++ .../mochitest/text/test_settext_input_event.html | 38 ++ .../tests/mochitest/text/test_textBounds.html | 36 ++ .../tests/mochitest/text/test_wordboundary.html | 361 +++++++++++++++++ accessible/tests/mochitest/text/test_words.html | 131 +++++++ 17 files changed, 2402 insertions(+) create mode 100644 accessible/tests/mochitest/text/a11y.ini create mode 100644 accessible/tests/mochitest/text/doc.html create mode 100644 accessible/tests/mochitest/text/test_atcaretoffset.html create mode 100644 accessible/tests/mochitest/text/test_charboundary.html create mode 100644 accessible/tests/mochitest/text/test_doc.html create mode 100644 accessible/tests/mochitest/text/test_dynamic.html create mode 100644 accessible/tests/mochitest/text/test_general.xhtml create mode 100644 accessible/tests/mochitest/text/test_gettext.html create mode 100644 accessible/tests/mochitest/text/test_hypertext.html create mode 100644 accessible/tests/mochitest/text/test_lineboundary.html create mode 100644 accessible/tests/mochitest/text/test_paragraphboundary.html create mode 100644 accessible/tests/mochitest/text/test_passwords.html create mode 100644 accessible/tests/mochitest/text/test_selection.html create mode 100644 accessible/tests/mochitest/text/test_settext_input_event.html create mode 100644 accessible/tests/mochitest/text/test_textBounds.html create mode 100644 accessible/tests/mochitest/text/test_wordboundary.html create mode 100644 accessible/tests/mochitest/text/test_words.html (limited to 'accessible/tests/mochitest/text') diff --git a/accessible/tests/mochitest/text/a11y.ini b/accessible/tests/mochitest/text/a11y.ini new file mode 100644 index 0000000000..18c4982aa6 --- /dev/null +++ b/accessible/tests/mochitest/text/a11y.ini @@ -0,0 +1,19 @@ +[DEFAULT] +support-files = doc.html + !/accessible/tests/mochitest/*.js + +[test_atcaretoffset.html] +[test_charboundary.html] +[test_doc.html] +[test_dynamic.html] +[test_general.xhtml] +[test_gettext.html] +[test_hypertext.html] +[test_lineboundary.html] +[test_paragraphboundary.html] +[test_passwords.html] +[test_selection.html] +[test_settext_input_event.html] +[test_textBounds.html] +[test_wordboundary.html] +[test_words.html] diff --git a/accessible/tests/mochitest/text/doc.html b/accessible/tests/mochitest/text/doc.html new file mode 100644 index 0000000000..d57406c226 --- /dev/null +++ b/accessible/tests/mochitest/text/doc.html @@ -0,0 +1,9 @@ + + + + + +inbody + diff --git a/accessible/tests/mochitest/text/test_atcaretoffset.html b/accessible/tests/mochitest/text/test_atcaretoffset.html new file mode 100644 index 0000000000..33fe7cd793 --- /dev/null +++ b/accessible/tests/mochitest/text/test_atcaretoffset.html @@ -0,0 +1,425 @@ + + + + Test: nsIAccessibleText getText* functions at caret offset + + + + + + + + + + + + + + + + + + Bug 852021 + +

+ +
+
+  
+
+  
+  
+  
+ + diff --git a/accessible/tests/mochitest/text/test_charboundary.html b/accessible/tests/mochitest/text/test_charboundary.html new file mode 100644 index 0000000000..5ca4120a47 --- /dev/null +++ b/accessible/tests/mochitest/text/test_charboundary.html @@ -0,0 +1,138 @@ + + + + Char boundary text tests + + + + + + + + + + +

+ +
+  
+ + +
hello my friend
+
hello my friend
+ + + +
+    
Brave Sir Robin ran
+
Brave Sir Robin ran
+
+ + +
+    
oneword + +two words +
+
oneword

two words
+
oneword + +two words +
+
oneword

two words
+ +
+ + + diff --git a/accessible/tests/mochitest/text/test_doc.html b/accessible/tests/mochitest/text/test_doc.html new file mode 100644 index 0000000000..88b75b98c4 --- /dev/null +++ b/accessible/tests/mochitest/text/test_doc.html @@ -0,0 +1,40 @@ + + + + nsIAccessibleText getText related function tests for document accessible + + + + + + + + + + Mozilla Bug 608887 +

+ +
+  
+ + + + + diff --git a/accessible/tests/mochitest/text/test_dynamic.html b/accessible/tests/mochitest/text/test_dynamic.html new file mode 100644 index 0000000000..63889fc664 --- /dev/null +++ b/accessible/tests/mochitest/text/test_dynamic.html @@ -0,0 +1,80 @@ + + + + nsIAccessibleText getText related function tests for tree mutations + + + + + + + + + + +

+ +
+  
+ +
ho
+
mozilla
+
ho
+ + diff --git a/accessible/tests/mochitest/text/test_general.xhtml b/accessible/tests/mochitest/text/test_general.xhtml new file mode 100644 index 0000000000..df0ffcc0c6 --- /dev/null +++ b/accessible/tests/mochitest/text/test_general.xhtml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + Bug 396166 + + + Bug 899433 + +

+ +
+    
+ +
+
diff --git a/accessible/tests/mochitest/text/test_gettext.html b/accessible/tests/mochitest/text/test_gettext.html new file mode 100644 index 0000000000..2f221a416b --- /dev/null +++ b/accessible/tests/mochitest/text/test_gettext.html @@ -0,0 +1,135 @@ + + + + Get text between offsets tests + + + + + + + + + + + +

+ +
+  
+ + +
hello my friend
+
hello my friend
+
hello my friend
+ + + +
Brave Sir Robin ran
+
Brave Sir Robin ran
+ +
Brave Sir Robin ran
+
Brave Sir Robin ran
+ +
+  
oneword + +two words +
+
oneword

two words
+
oneword + +two words +
+
oneword

two words
+ +
+ +
Hello My Friend
+
Hello My Friend
+
hello my friend
+ +
hello my friend
+
ゕゖヵヶ
+ + + diff --git a/accessible/tests/mochitest/text/test_hypertext.html b/accessible/tests/mochitest/text/test_hypertext.html new file mode 100644 index 0000000000..b8a289ea52 --- /dev/null +++ b/accessible/tests/mochitest/text/test_hypertext.html @@ -0,0 +1,150 @@ + + + + nsIAccessibleText getText related function tests for rich text + + + + + + + + + + + + + + Bug 630001, part3 + + + Bug 638326 + + + Bug 749810 + + +

+ +
+  
+ +
+ +
hello friend see
+
hello friend see
+
hello friend see
    +
  • Supermarket 1
  • +
  • Supermarket 2
  • +
+
    +
  1. foo
  2. +
  3. bar
  4. +
+ +
line + + +
heading
+
+ +
line + + + +
+ +
foo
+ +
+ + diff --git a/accessible/tests/mochitest/text/test_lineboundary.html b/accessible/tests/mochitest/text/test_lineboundary.html new file mode 100644 index 0000000000..77b35ece5d --- /dev/null +++ b/accessible/tests/mochitest/text/test_lineboundary.html @@ -0,0 +1,422 @@ + + + + Line boundary getText* functions tests + + + + + + + + + + + Bug 853340 + + + Bug 855732 + + + Bug 882292 + + + Bug 947170 + + +

+ +
+  
+ + +
hello my friend
+
hello my friend
+ + + +
+    
oneword + +two words +
+
oneword

two words
+
oneword + +two words +
+
oneword

two words
+ +
+ + + + + + +

Hello world +

+ + + +
    +
  1. Item
  2. +
  3. +
  4. a long and winding road that lead me to your door
  5. +
  6. a b c
  7. +

  8. hello
  9. +
+ +
+
+

sectiounus

+

seciofarus

+
+
+
+ Line 1 +
+ Line 3 +
+ +
+

Block

+
  • Li
+
+
a b
c
d
+
a
b c
d
e
+
a b
c
d
e
+
a b
c

d

+
a b
c
d

e

+
a
b c d
+
a b
c
+
a b
c
d
e
f
+ a
b
c
+
+Line 1
+
+Line 2
+
+Line 3
+
+Line 4
+
+
a
b
+
a b
c
+
a
b d
+
a
c d
+
a
b c d
+
a
b c d
+
+ + + + + + + + + +
Foo
Bar
+
+ + + + + + + + + +
Foo
Bar
+
+
+ + diff --git a/accessible/tests/mochitest/text/test_paragraphboundary.html b/accessible/tests/mochitest/text/test_paragraphboundary.html new file mode 100644 index 0000000000..8b270b661c --- /dev/null +++ b/accessible/tests/mochitest/text/test_paragraphboundary.html @@ -0,0 +1,148 @@ + + + + Paragraph boundary getText* functions tests + + + + + + + + + + + Bug 1520779 + + +

+ +
+  
+ +
+

hello my friend

+

hello again

+
+

ab

+

a
b

c

+


a
b

+ +

ab
c
d

+ + + + + + +

a
b

+

a

b

+ +

ab

+
a

b

+ + diff --git a/accessible/tests/mochitest/text/test_passwords.html b/accessible/tests/mochitest/text/test_passwords.html new file mode 100644 index 0000000000..fc184f2d45 --- /dev/null +++ b/accessible/tests/mochitest/text/test_passwords.html @@ -0,0 +1,72 @@ + + + + nsIAccessibleText getText related function tests for text and password inputs + + + + + + + + + + + Mozilla Bug 415943 +

+ +
+  
+ +
+ +
+ + +
+ + diff --git a/accessible/tests/mochitest/text/test_selection.html b/accessible/tests/mochitest/text/test_selection.html new file mode 100644 index 0000000000..ce83e57086 --- /dev/null +++ b/accessible/tests/mochitest/text/test_selection.html @@ -0,0 +1,119 @@ + + + + Test text selection functions + + + + + + + + + + + + + +

+ +
+  
+ +
Test selection count
+
+
Test adding two equal selections
+
Test adding 3 selections one adjacent
+
Test adding 2 selections, remove first one
+
Test extending a selection
+
Test moving a selection
+
+
Test adding selections to parent element +
Test adding selections to inner element1
+
Test adding selections to inner element2
+
+ +
world
+
    +
  1. Number one
  2. +
+ + + + diff --git a/accessible/tests/mochitest/text/test_settext_input_event.html b/accessible/tests/mochitest/text/test_settext_input_event.html new file mode 100644 index 0000000000..2f0ecacf30 --- /dev/null +++ b/accessible/tests/mochitest/text/test_settext_input_event.html @@ -0,0 +1,38 @@ + + + + Test that setTextContents only sends one DOM input event + + + + + + + + + + Mozilla Bug 1490840 +

+ + + + diff --git a/accessible/tests/mochitest/text/test_textBounds.html b/accessible/tests/mochitest/text/test_textBounds.html new file mode 100644 index 0000000000..66e7f1a93f --- /dev/null +++ b/accessible/tests/mochitest/text/test_textBounds.html @@ -0,0 +1,36 @@ + + + + TextBounds tests + + + + + + + + + + +

+ +
+  
+ +
+ + diff --git a/accessible/tests/mochitest/text/test_wordboundary.html b/accessible/tests/mochitest/text/test_wordboundary.html new file mode 100644 index 0000000000..49d4d95561 --- /dev/null +++ b/accessible/tests/mochitest/text/test_wordboundary.html @@ -0,0 +1,361 @@ + + + + Word boundary text tests + + + + + + + + + + +

+ +
+  
+ + +
hello
+
hello
+ + + +
hello
+
hello
+
hello
+ + + +
hello all
+
hello all
+ + +
hello all
+
hello all
+ + +
hello my friend
+
hello my friend
+ +
hello my friend
+ + +
+    
Brave Sir Robin ran
+
Brave Sir Robin ran
+
+ + +
+
oneword + +two words +
+
oneword

two words
+
oneword + +two words +
+
oneword

two words
+ +
+ +
a b
+ +

a @@ b

+

a @@b c

+

a b@@ c

+

a b@@c d

+

a @@b@@c@@ d

+ +

a x y b

+ + diff --git a/accessible/tests/mochitest/text/test_words.html b/accessible/tests/mochitest/text/test_words.html new file mode 100644 index 0000000000..7e4fba9154 --- /dev/null +++ b/accessible/tests/mochitest/text/test_words.html @@ -0,0 +1,131 @@ + + + + nsIAccessibleText getText related function tests for html:input,html:div and html:textarea + + + + + + + + + + + Mozilla Bug 452769 +

+ +
+  
one two
+
one two
+
one,two
+
one, two
+
one+two
+
one+two
+
one
two
+
one.two
+
345
+
3a A4
+
3.1416
+
4,261.01
+
カタカナ
+
Peter's car
+
N.A.T.O.
+
3+4*5=23
+
Hello. Friend, are you here?!
+
+ + + + -- cgit v1.2.3