diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.txt new file mode 100644 index 00000000000..119a10de2c7 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Fail +Details +Result Test Name MessageFail +Pass Firing a synthetic event at a select's option doesn't crash +Fail Validate Enter, Up/Down Arrow keyboard accessibility support for disabled \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-popover-position-with-zoom.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-popover-position-with-zoom.tentative.txt new file mode 100644 index 00000000000..6740142a2ac --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-popover-position-with-zoom.tentative.txt @@ -0,0 +1,14 @@ +Summary + +Harness status: OK + +Rerun + +Found 4 tests + +4 Fail +Details +Result Test Name MessageFail The popover should be bottom left positioned +Fail The popover should be top left positioned +Fail The popover should be bottom right positioned +Fail The popover should be top right positioned \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.txt new file mode 100644 index 00000000000..862e26913eb --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-light-dismiss-invalidation.tentative.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Fail +Details +Result Test Name MessageFail select should not match :open when light dismissed. \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-open-closed.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-open-closed.tentative.txt new file mode 100644 index 00000000000..e7fed6a1e8f --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-pseudo-open-closed.tentative.txt @@ -0,0 +1,12 @@ +Summary + +Harness status: OK + +Rerun + +Found 2 tests + +2 Fail +Details +Result Test Name MessageFail select should support :open and :closed pseudo selectors. +Fail select :open and :closed should invalidate correctly. \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-remove.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-remove.txt new file mode 100644 index 00000000000..62c3fa52093 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-remove.txt @@ -0,0 +1,14 @@ +Summary + +Harness status: OK + +Rerun + +Found 4 tests + +4 Pass +Details +Result Test Name MessagePass select.remove(n) should work +Pass select.options.remove(n) should work +Pass remove() should work on select elements. +Pass Element#remove() should work on select elements. \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.txt new file mode 100644 index 00000000000..0c207e5fdbd --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Fail +Details +Result Test Name MessageFail Test required attribute \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.txt new file mode 100644 index 00000000000..e9b25a42e37 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.txt @@ -0,0 +1,19 @@ +Summary + +Harness status: OK + +Rerun + +Found 8 tests + +7 Pass +1 Fail +Details +Result Test Name MessagePass .selectedOptions with no selected option +Pass .selectedOptions with one selected option +Pass .selectedOptions using the 'multiple' attribute with no selected options +Pass .selectedOptions using the 'multiple' attribute with two selected options +Pass .selectedOptions without the 'multiple' attribute but more than one selected option should return the last one +Pass .selectedOptions should return `HTMLCollection` instance +Pass .selectedOptions should always return the same value - [SameObject] +Fail .selectedOptions should return the same object after selection changes - [SameObject] \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.txt new file mode 100644 index 00000000000..c5709177ff6 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Fail +Details +Result Test Name MessageFail select setCustomValidity is correct Cannot access property "customError" on undefined object "elem.validity" \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.txt new file mode 100644 index 00000000000..603d1ef93a9 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.txt @@ -0,0 +1,12 @@ +Summary + +Harness status: OK + +Rerun + +Found 2 tests + +2 Fail +Details +Result Test Name MessageFail Validation for placeholder option +Fail Check form not submitted for invalid select undefined is not a function (evaluated from 'select2.checkValidity') \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.txt new file mode 100644 index 00000000000..9e9b4a95fa7 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-validity.txt @@ -0,0 +1,16 @@ +Summary + +Harness status: OK + +Rerun + +Found 6 tests + +6 Fail +Details +Result Test Name MessageFail Placeholder label options within a select +Fail Placeholder label-like options within optgroup undefined is not a function (evaluated from 'select.checkValidity') +Fail Validation on selects with display size set as more than one undefined is not a function (evaluated from 'select.checkValidity') +Fail Validation on selects with multiple set undefined is not a function (evaluated from 'select.checkValidity') +Fail Validation on selects with non-empty disabled option undefined is not a function (evaluated from 'select.checkValidity') +Fail Remove and add back the placeholder label option undefined is not a function (evaluated from 'select.checkValidity') \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.txt new file mode 100644 index 00000000000..7851914d111 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Pass +Details +Result Test Name MessagePass select.value should reflect option.value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.txt new file mode 100644 index 00000000000..1e8fbbb44e9 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.txt @@ -0,0 +1,21 @@ +Summary + +Harness status: OK + +Rerun + +Found 11 tests + +11 Fail +Details +Result Test Name MessageFail Test that HTMLselect with no options has empty string for value and null for selectedOption +Fail Test value and selectedOption with HTMLOptionElement element option parts +Fail Test value and selectedOption when value is null +Fail Test value and selectedOption when value is undefined +Fail Test value with non-HTMLOptionElement elements labeled as parts +Fail Test that value and selectedOption are updated when options are removed +Fail Test that slotted-in selected-value part is updated to value of select +Fail Test that option parts in a slotted-in listbox are reflected in the value property +Fail Test that value and selectedOption are correctly updated +Fail Test that HTMLOption.selected updates select.value and select.selectedOption +Fail Test that HTMLOption.value updates select.value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value.txt new file mode 100644 index 00000000000..f214eb0924f --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-value.txt @@ -0,0 +1,14 @@ +Summary + +Harness status: OK + +Rerun + +Found 4 tests + +4 Pass +Details +Result Test Name MessagePass options +Pass optgroups +Pass option is child of div +Pass no options \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.txt new file mode 100644 index 00000000000..904bec92f76 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Fail +Details +Result Test Name MessageFail Select element with "readonly" attribute shouldn't be barred from constraint validation \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/selected-index.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/selected-index.txt new file mode 100644 index 00000000000..f83d7bbea4a --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/selected-index.txt @@ -0,0 +1,23 @@ +Summary + +Harness status: OK + +Rerun + +Found 13 tests + +13 Pass +Details +Result Test Name MessagePass get empty +Pass get default +Pass get disabled +Pass get unselected +Pass set empty (HTMLSelectElement) +Pass set empty (HTMLOptionsCollection) +Pass set (HTMLSelectElement) +Pass set (HTMLOptionsCollection) +Pass set and reset (HTMLSelectElement) +Pass set and reset (HTMLOptionsCollection) +Pass get display:none +Pass reset to display:none +Pass set selectedIndex=-1 \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-cross-origin-iframe.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-cross-origin-iframe.txt new file mode 100644 index 00000000000..785c2d01e6c --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-cross-origin-iframe.txt @@ -0,0 +1,15 @@ +Summary + +Harness status: OK + +Rerun + +Found 4 tests + +1 Pass +3 Fail +Details +Result Test Name MessagePass Test showPicker() called from cross-origin iframe +Fail Test showPicker() called from cross-origin iframe 1 +Fail Test showPicker() called from cross-origin iframe 2 +Fail Test showPicker() called from cross-origin iframe 3 \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-disabled.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-disabled.txt new file mode 100644 index 00000000000..217f357f455 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/forms/the-select-element/show-picker-disabled.txt @@ -0,0 +1,11 @@ +Summary + +Harness status: OK + +Rerun + +Found 1 tests + +1 Pass +Details +Result Test Name MessagePass select showPicker() throws when disabled \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.html new file mode 100644 index 00000000000..9900f80172b --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.html @@ -0,0 +1,8 @@ + + + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js new file mode 100644 index 00000000000..ea23e8d724a --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-optgroup-element/optgroup-removal.window.js @@ -0,0 +1,7 @@ +test(() => { + const select = document.createElement("select"); + select.innerHTML = " + + +
+ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-index.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-index.html new file mode 100644 index 00000000000..8cfce789c54 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-index.html @@ -0,0 +1,54 @@ + +HTMLOptionElement.prototype.index + + + + + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label-value.js b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label-value.js new file mode 100644 index 00000000000..5c453f1733e --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label-value.js @@ -0,0 +1,82 @@ +function test_option(member) { + test(function() { + var option = document.createElement("option"); + assert_equals(option[member], ""); + }, "No children, no " + member); + + test(function() { + var option = document.createElement("option"); + option.setAttribute(member, "") + assert_equals(option[member], ""); + }, "No children, empty " + member); + + test(function() { + var option = document.createElement("option"); + option.setAttribute(member, member) + assert_equals(option[member], member); + }, "No children, " + member); + + test(function() { + var option = document.createElement("option"); + option.setAttributeNS("http://www.example.com/", member, member) + assert_equals(option[member], ""); + }, "No children, namespaced " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + assert_equals(option[member], "child"); + }, "Single child, no " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.setAttribute(member, "") + assert_equals(option[member], ""); + }, "Single child, empty " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.setAttribute(member, member) + assert_equals(option[member], member); + }, "Single child, " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.setAttributeNS("http://www.example.com/", member, member) + assert_equals(option[member], "child"); + }, "Single child, namespaced " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.appendChild(document.createTextNode(" node ")); + assert_equals(option[member], "child node"); + }, "Two children, no " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.appendChild(document.createTextNode(" node ")); + option.setAttribute(member, "") + assert_equals(option[member], ""); + }, "Two children, empty " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.appendChild(document.createTextNode(" node ")); + option.setAttribute(member, member) + assert_equals(option[member], member); + }, "Two children, " + member); + + test(function() { + var option = document.createElement("option"); + option.appendChild(document.createTextNode(" child ")); + option.appendChild(document.createTextNode(" node ")); + option.setAttributeNS("http://www.example.com/", member, member) + assert_equals(option[member], "child node"); + }, "Two children, namespaced " + member); +} diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label.html new file mode 100644 index 00000000000..dbb8842c412 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-label.html @@ -0,0 +1,12 @@ + + +HTMLOptionElement.label + + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-selected.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-selected.html new file mode 100644 index 00000000000..bd001a9bebb --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-selected.html @@ -0,0 +1,61 @@ + + +HTMLOptionElement.selected + + + + +
+ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-backslash.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-backslash.html new file mode 100644 index 00000000000..91e42c1353b --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-backslash.html @@ -0,0 +1,15 @@ + + +Test for the backslash sign in option.text + + +
+ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-label.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-label.html new file mode 100644 index 00000000000..c6b14e2a326 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-label.html @@ -0,0 +1,23 @@ + + +HTMLOptionElement.text + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-recurse.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-recurse.html new file mode 100644 index 00000000000..c785fd4db46 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-recurse.html @@ -0,0 +1,92 @@ + + +HTMLOptionElement.text + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-setter.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-setter.html new file mode 100644 index 00000000000..ab8e1a36d75 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-setter.html @@ -0,0 +1,24 @@ + + + +
+ +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-spaces.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-spaces.html new file mode 100644 index 00000000000..99d7b922264 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-text-spaces.html @@ -0,0 +1,75 @@ + + +HTMLOptionElement.text + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-value.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-value.html new file mode 100644 index 00000000000..945249b9b41 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-option-element/option-value.html @@ -0,0 +1,12 @@ + + +HTMLOptionElement.value + + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/WEB_FEATURES.yml b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/WEB_FEATURES.yml new file mode 100644 index 00000000000..9695c952942 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/WEB_FEATURES.yml @@ -0,0 +1,9 @@ +features: +- name: constraint-validation + files: + - select-setcustomvalidity.html + - select-validity.html + - select-willvalidate-readonly-attribute.html +- name: show-picker-select + files: + - show-picker-* diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-add.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-add.html new file mode 100644 index 00000000000..4bbdc97ccec --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-add.html @@ -0,0 +1,89 @@ + + + + +HTMLOptionsCollection + + + + +
+ + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html new file mode 100644 index 00000000000..a89af9365dd --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html @@ -0,0 +1,54 @@ + + + + +HTMLOptionsCollection + + + + +
+ + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html new file mode 100644 index 00000000000..d4a349f30c3 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html @@ -0,0 +1,117 @@ + + + + +HTMLOptionsCollection + + +
+ + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/inserted-or-removed.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/inserted-or-removed.html new file mode 100644 index 00000000000..40a7dc6f002 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/inserted-or-removed.html @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add-optgroup.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add-optgroup.html new file mode 100644 index 00000000000..ea32194d3a9 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add-optgroup.html @@ -0,0 +1,29 @@ + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add.html new file mode 100644 index 00000000000..e870aedd84e --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-add.html @@ -0,0 +1,36 @@ + + +HTMLSelectElement Test: add() + + + + + +
+ +
+ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-ask-for-reset.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-ask-for-reset.html new file mode 100644 index 00000000000..ce26ddddd13 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-ask-for-reset.html @@ -0,0 +1,97 @@ + + +HTMLSelectElement ask for reset + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-multiple.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-multiple.html new file mode 100644 index 00000000000..c186f1ca156 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-multiple.html @@ -0,0 +1,48 @@ + + +HTMLSelectElement ask for reset + + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-named-getter.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-named-getter.html new file mode 100644 index 00000000000..e60be359885 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-named-getter.html @@ -0,0 +1,46 @@ + + +Absence of a named getter on HTMLSelectElement + + +
+ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-remove.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-remove.html new file mode 100644 index 00000000000..7d5cd51a47d --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-remove.html @@ -0,0 +1,64 @@ + + +HTMLSelectElement.remove + + + + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.html new file mode 100644 index 00000000000..c00c7232ef8 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-required-attribute.tentative.html @@ -0,0 +1,65 @@ + + +HTMLselectElement Test: required attribute + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.html new file mode 100644 index 00000000000..7dd6e7943be --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-selectedOptions.html @@ -0,0 +1,143 @@ + + + + +HTMLSelectElement.selectedOptions + + + + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.html new file mode 100644 index 00000000000..6ffa6ddf60f --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-setcustomvalidity.html @@ -0,0 +1,17 @@ + +select setCustomValidity + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.html new file mode 100644 index 00000000000..699614d1f40 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.html @@ -0,0 +1,124 @@ + + +HTMLSelectElement.checkValidity + + + +
+ diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.html new file mode 100644 index 00000000000..5e53bf5516c --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-validity.tentative.html @@ -0,0 +1,94 @@ + + +HTMLselectElement Test: validity + + + + + + +
+ +
+ + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.html new file mode 100644 index 00000000000..b29b1b85bc6 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-option.tentative.html @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.html new file mode 100644 index 00000000000..4215f71b090 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value-selectedOption.tentative.html @@ -0,0 +1,230 @@ + +HTMLselectElement Test: value and selectedOption + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value.html new file mode 100644 index 00000000000..3fca6b81bae --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-value.html @@ -0,0 +1,56 @@ + + +HTMLSelectElement.value + + + +
+ + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html new file mode 100644 index 00000000000..5d383337fe2 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html @@ -0,0 +1,24 @@ + + +Select element with "readonly" attribute shouldn't be barred from constraint validation + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/selected-index.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/selected-index.html new file mode 100644 index 00000000000..3b3374cd1e8 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/forms/the-select-element/selected-index.html @@ -0,0 +1,143 @@ + + +HTMLSelectElement selectedIndex + + +
+ +
+ + + + + + + + + + + +
+ +