From 26aaa2402df82f0d455ab60881cf5fdf67b90521 Mon Sep 17 00:00:00 2001 From: Shunguo Yan Date: Wed, 22 Mar 2023 15:40:34 -0500 Subject: [PATCH 1/6] initial test case #1226 --- .../shadow-label copy.html | 74 +++++++++++++++++++ .../shadow-label.html | 73 ++++++++++++++++++ .../shadow-text.html | 60 +++++++++++++++ 3 files changed, 207 insertions(+) create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html new file mode 100755 index 000000000..cea201763 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html @@ -0,0 +1,74 @@ + + + + + + Shadow DOM input Label + + + +
+
+ +
+
+ + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html new file mode 100755 index 000000000..2c6f53f20 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html @@ -0,0 +1,73 @@ + + + + + + Shadow DOM input Label + + + +
+ + +
+ + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html new file mode 100755 index 000000000..9a75a8616 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + Client Access Manager + + + + + + + + + +
+ + + + + From 041f1b7aba3661c548d9eab24ca9019443568a11 Mon Sep 17 00:00:00 2001 From: Shunguo Yan Date: Thu, 23 Mar 2023 16:39:00 -0500 Subject: [PATCH 2/6] add additional test cases #1226 --- .../custom-element.html | 70 +++++++++++++++++++ ...{shadow-label.html => shadow-label-1.html} | 25 ++----- .../shadow-label-2.html | 64 +++++++++++++++++ ...dow-label copy.html => shadow-label3.html} | 27 +++---- 4 files changed, 149 insertions(+), 37 deletions(-) create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/custom-element.html rename accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/{shadow-label.html => shadow-label-1.html} (66%) create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-2.html rename accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/{shadow-label copy.html => shadow-label3.html} (71%) diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/custom-element.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/custom-element.html new file mode 100755 index 000000000..d2622f1b1 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/custom-element.html @@ -0,0 +1,70 @@ + + + + + + + + test + + + + + + This is input label + + + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-1.html similarity index 66% rename from accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html rename to accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-1.html index 2c6f53f20..99aa8d4c5 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-1.html @@ -24,27 +24,12 @@
- +
- + + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html similarity index 71% rename from accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html rename to accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html index cea201763..e95c2ac1e 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label copy.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html @@ -25,25 +25,18 @@
-
- + This is input label - + + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-20.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-20.html new file mode 100755 index 000000000..e9b3f01f7 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-20.html @@ -0,0 +1,66 @@ + + + + + + Slot Label 20 + + + +
+
+
+ + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21 copy.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21 copy.html new file mode 100755 index 000000000..e37447684 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21 copy.html @@ -0,0 +1,67 @@ + + + + + + Shadow DOM input Label + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21.html new file mode 100755 index 000000000..53ca6942a --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-21.html @@ -0,0 +1,67 @@ + + + + + + Slot Label 21 + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html similarity index 93% rename from accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html rename to accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html index e95c2ac1e..1d246b4a0 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label3.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html @@ -19,13 +19,12 @@ - Shadow DOM input Label + Slot Label 22
-
-
+
Tex in div
- + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-23.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-23.html new file mode 100755 index 000000000..3b25d5312 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-23.html @@ -0,0 +1,66 @@ + + + + + + Slot Label 22 + + + +
+
Tex in div
+
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-24.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-24.html new file mode 100755 index 000000000..3bc98dcbf --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-24.html @@ -0,0 +1,65 @@ + + + + + + Slot Label 22 + + + +
+
Tex in div
+
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-25.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-25.html new file mode 100755 index 000000000..b5e9523ed --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-25.html @@ -0,0 +1,66 @@ + + + + + + Slot Label 21 + + + +
+
+
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-26.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-26.html new file mode 100755 index 000000000..7c589d3a8 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-26.html @@ -0,0 +1,64 @@ + + + + + + Slot Label 21 + + + +
+ + + + \ No newline at end of file diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-2.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-30.html similarity index 94% rename from accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-2.html rename to accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-30.html index 9193454a8..019be451e 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-label-2.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-30.html @@ -19,7 +19,7 @@ - Shadow DOM input Label + Slot Label 20 @@ -32,7 +32,7 @@ let shadow = document.getElementById("host").attachShadow({ mode: "open" }); let slot = document.createElement("slot"); - slot.innerHTML = "this label is for input"; + slot.innerHTML = "label as a shadow dom host and add text in a slot child"; shadow.appendChild(slot); diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-text.html similarity index 100% rename from accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/shadow-text.html rename to accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-text.html From 7e4b1a53cedaabc10c22f1341f2611e95e29603b Mon Sep 17 00:00:00 2001 From: Shunguo Yan Date: Tue, 28 Mar 2023 13:45:35 -0500 Subject: [PATCH 4/6] test cases #1226 --- .../slot-label-13.html | 64 +++++++++++++++++++ .../slot-label-22.html | 6 +- .../slot-label-23.html | 8 +-- .../slot-label-26.html | 8 +-- 4 files changed, 75 insertions(+), 11 deletions(-) create mode 100755 accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-13.html diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-13.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-13.html new file mode 100755 index 000000000..07b8b8a15 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-13.html @@ -0,0 +1,64 @@ + + + + + + Slot Label 13 + + + +
+
Search by location or language. Note: Location/Language will be dynamically updated as you provide the input +
+
+ + + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html index 1d246b4a0..33db6199a 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/Valerie_Label_HasContent_ruleunit/slot-label-22.html @@ -46,14 +46,14 @@ "ruleId": "Valerie_Label_HasContent", "value": [ "INFORMATION", - "FAIL" + "PASS" ], "path": { "dom": "/html[1]/body[1]/main[1]/div[1]/#document-fragment[1]/label[1]", "aria": "/document[1]/main[1]" }, - "reasonId": "Fail_1", - "message": "The