diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/css-ui-valid/select | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/css-ui-valid/select')
27 files changed, 337 insertions, 0 deletions
diff --git a/layout/reftests/css-ui-valid/select/reftest-stylo.list b/layout/reftests/css-ui-valid/select/reftest-stylo.list new file mode 100644 index 000000000..efd559ede --- /dev/null +++ b/layout/reftests/css-ui-valid/select/reftest-stylo.list @@ -0,0 +1,21 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +needs-focus == select-valid.html select-valid.html +fails fuzzy-if(skiaContent,2,5) needs-focus == select-valid-reset.html select-valid-reset.html +fails fuzzy-if(skiaContent,1,3) needs-focus == select-invalid.html select-invalid.html +fuzzy-if(skiaContent,2,4) needs-focus == select-disabled.html select-disabled.html +fuzzy-if(skiaContent,2,4) needs-focus == select-dyn-disabled.html select-dyn-disabled.html +fails fuzzy-if(skiaContent,1,3) needs-focus == select-dyn-not-disabled.html select-dyn-not-disabled.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-invalid.html select-required-invalid.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-1.html select-required-valid-1.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-2.html select-required-valid-2.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-changed-1.html select-required-valid-changed-1.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-changed-2.html select-required-valid-changed-2.html +needs-focus == select-required-multiple-invalid.html select-required-multiple-invalid.html +needs-focus == select-required-multiple-valid.html select-required-multiple-valid.html +fails fuzzy-if(asyncPan&&layersGPUAccelerated,84,77) fuzzy-if(skiaContent,1,1000) needs-focus == select-required-multiple-valid-changed.html select-required-multiple-valid-changed.html +fails-if(Android||B2G||Mulet) needs-focus == select-disabled-fieldset-1.html select-disabled-fieldset-1.html +# Initial mulet triage: parity with B2G/B2G Desktop +fails-if(Android||B2G||Mulet) fuzzy-if(skiaContent,2,10) needs-focus == select-disabled-fieldset-2.html select-disabled-fieldset-2.html +# Initial mulet triage: parity with B2G/B2G Desktop +fuzzy-if(skiaContent,2,10) needs-focus == select-fieldset-legend.html select-fieldset-legend.html +fails fuzzy-if(skiaContent,2,5) needs-focus == select-novalidate.html select-novalidate.html diff --git a/layout/reftests/css-ui-valid/select/reftest.list b/layout/reftests/css-ui-valid/select/reftest.list new file mode 100644 index 000000000..082a6fc0c --- /dev/null +++ b/layout/reftests/css-ui-valid/select/reftest.list @@ -0,0 +1,18 @@ +needs-focus == select-valid.html select-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-valid-reset.html select-required-ref.html +fuzzy-if(skiaContent,1,3) needs-focus == select-invalid.html select-ref.html +fuzzy-if(skiaContent,2,4) needs-focus == select-disabled.html select-disabled-ref.html +fuzzy-if(skiaContent,2,4) needs-focus == select-dyn-disabled.html select-disabled-ref.html +fuzzy-if(skiaContent,1,3) needs-focus == select-dyn-not-disabled.html select-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-invalid.html select-required-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-1.html select-required-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-2.html select-required-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-changed-1.html select-required-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-required-valid-changed-2.html select-required-ref.html +needs-focus == select-required-multiple-invalid.html select-required-multiple-ref.html +needs-focus == select-required-multiple-valid.html select-required-multiple-ref.html +fuzzy(64,4) fuzzy-if(asyncPan&&layersGPUAccelerated,84,77) fuzzy-if(skiaContent,1,1000) needs-focus == select-required-multiple-valid-changed.html select-required-multiple-ref.html +fails-if(Android) needs-focus == select-disabled-fieldset-1.html select-fieldset-ref.html +fails-if(Android) fuzzy-if(skiaContent&&!Android,2,10) needs-focus == select-disabled-fieldset-2.html select-fieldset-ref.html +fuzzy-if(skiaContent,2,10) needs-focus == select-fieldset-legend.html select-fieldset-legend-ref.html +fuzzy-if(skiaContent,2,5) needs-focus == select-novalidate.html select-required-ref.html diff --git a/layout/reftests/css-ui-valid/select/select-disabled-fieldset-1.html b/layout/reftests/css-ui-valid/select/select-disabled-fieldset-1.html new file mode 100644 index 000000000..43a6941f4 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-disabled-fieldset-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select has a disabled fieldset ancestor, it is barred from + constraint validation and should not be affected by :-moz-ui-valid + pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <fieldset disabled> + <fieldset> + <select class='notvalid'></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-disabled-fieldset-2.html b/layout/reftests/css-ui-valid/select/select-disabled-fieldset-2.html new file mode 100644 index 000000000..22b2fe780 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-disabled-fieldset-2.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <!-- Test: if select has a disabled fieldset ancestor, it is barred from + constraint validation and should not be affected by :-moz-ui-valid + pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <script> + function onloadHandler() + { + var fieldsets = document.getElementsByTagName("fieldset"); + fieldsets[1].disabled = true; + fieldsets[0].disabled = false; + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <fieldset disabled> + <fieldset> + <select class='notvalid'></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-disabled-ref.html b/layout/reftests/css-ui-valid/select/select-disabled-ref.html new file mode 100644 index 000000000..e3a228a89 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-disabled-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<html> + <body> + <select disabled style="background-color: green;"></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-disabled.html b/layout/reftests/css-ui-valid/select/select-disabled.html new file mode 100644 index 000000000..0a3395320 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-disabled.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is disabled, it is barred from constraint validation + and should not be affected by :-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' disabled></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-dyn-disabled.html b/layout/reftests/css-ui-valid/select/select-dyn-disabled.html new file mode 100644 index 000000000..43054fd56 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-dyn-disabled.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <!-- Test: if select is disabled, it is barred from constraint validation + and should not be affected by :-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').disabled='true'; document.documentElement.className='';"> + <select class='notvalid' id='s'></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-dyn-not-disabled.html b/layout/reftests/css-ui-valid/select/select-dyn-not-disabled.html new file mode 100644 index 000000000..fbf34b020 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-dyn-not-disabled.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <!-- Test: if select is not disabled but it's value hasn't changed, + it should not be affected:-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').removeAttribute('disabled'); + document.documentElement.className='';"> + <select class='notvalid' id='s' disabled></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-fieldset-legend-ref.html b/layout/reftests/css-ui-valid/select/select-fieldset-legend-ref.html new file mode 100644 index 000000000..5083cea90 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-fieldset-legend-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <body> + <fieldset> + <legend> + <select style="background-color: green;"></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-fieldset-legend.html b/layout/reftests/css-ui-valid/select/select-fieldset-legend.html new file mode 100644 index 000000000..9711f39c2 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-fieldset-legend.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select has a disabled fieldset ancestor, but is in the first + legend, it is not barred from constraint validation and should be + affected by :-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <fieldset disabled> + <legend> + <select class='notvalid'></select> + </legend> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-fieldset-ref.html b/layout/reftests/css-ui-valid/select/select-fieldset-ref.html new file mode 100644 index 000000000..ca82a8022 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-fieldset-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <body> + <fieldset> + <fieldset> + <select disabled style="background-color: green;"></select> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-invalid.html b/layout/reftests/css-ui-valid/select/select-invalid.html new file mode 100644 index 000000000..83a3b79f2 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-invalid.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <!-- Test: if select has a custom error, it should not be affected by :-moz-ui-valid + pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').setCustomValidity('foo'); document.documentElement.className='';"> + <select class='notvalid' id='s'></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-novalidate.html b/layout/reftests/css-ui-valid/select/select-novalidate.html new file mode 100644 index 000000000..54c951d70 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-novalidate.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').selectedIndex = 0; + document.documentElement.className = '';"> + <form novalidate> + <select id='s' class='notvalid'> + <option>foo</option> + </select> + </form> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-ref.html b/layout/reftests/css-ui-valid/select/select-ref.html new file mode 100644 index 000000000..a28668557 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<html> + <body> + <select style="background-color: green;"></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-invalid.html b/layout/reftests/css-ui-valid/select/select-required-invalid.html new file mode 100644 index 000000000..e4569fb0f --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-invalid.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is required and has a select option which has an empty + string value, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' required> + <option selected value="">foo</option> + </select> + </body> +</html></html> diff --git a/layout/reftests/css-ui-valid/select/select-required-multiple-invalid.html b/layout/reftests/css-ui-valid/select/select-required-multiple-invalid.html new file mode 100644 index 000000000..4a862dbca --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-multiple-invalid.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is required and has all selected option value set to the + string string, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' required multiple> + <option selected></option> + <option selected value="">foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-multiple-ref.html b/layout/reftests/css-ui-valid/select/select-required-multiple-ref.html new file mode 100644 index 000000000..a9477333f --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-multiple-ref.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select multiple style="background-color: green;"> + <option selected></option> + <option selected value="">foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-multiple-valid-changed.html b/layout/reftests/css-ui-valid/select/select-required-multiple-valid-changed.html new file mode 100644 index 000000000..704a6e80a --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-multiple-valid-changed.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <script> + function doTest() { + document.getElementById('s').options[0].selected = false; + document.getElementById('s').options[1].selected = false; + document.getElementById('s').options[0].selected = true; + document.getElementById('s').options[1].selected = true; + document.documentElement.className=''; + } + document.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <!-- Test: if select is required and has at least one option selected and the + selection did changed, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select id='s' class='valid' required multiple> + <option selected></option> + <option selected>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-multiple-valid.html b/layout/reftests/css-ui-valid/select/select-required-multiple-valid.html new file mode 100644 index 000000000..572d6477f --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-multiple-valid.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is required and has at least one option selected but the + selection didn't changed, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' required multiple> + <option selected></option> + <option selected>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-ref.html b/layout/reftests/css-ui-valid/select/select-required-ref.html new file mode 100644 index 000000000..3c2bde80a --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select style="background-color: green;"> + <option selected value="">foo</option> + </selecT> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-valid-1.html b/layout/reftests/css-ui-valid/select/select-required-valid-1.html new file mode 100644 index 000000000..a092e3fcb --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-valid-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is required and has a selected option but the selection + didn't changed, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' required> + <option>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-valid-2.html b/layout/reftests/css-ui-valid/select/select-required-valid-2.html new file mode 100644 index 000000000..c4cf9aec5 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-valid-2.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select is required and has a selected option but the selection + didn't changed, :-moz-ui-valid should not apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid' required> + <option selected>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-valid-changed-1.html b/layout/reftests/css-ui-valid/select/select-required-valid-changed-1.html new file mode 100644 index 000000000..89095e7b9 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-valid-changed-1.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <!-- Test: if select is required and has a selected option and the selection + did changed, :-moz-ui-valid should apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').selectedIndex = 0; + document.documentElement.className = '';"> + <select id='s' class='valid' required> + <option>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-required-valid-changed-2.html b/layout/reftests/css-ui-valid/select/select-required-valid-changed-2.html new file mode 100644 index 000000000..421fee51e --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-required-valid-changed-2.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <!-- Test: if select is required and has a selected option and the selection + did changed, :-moz-ui-valid should apply. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').selectedIndex = 0; + document.documentElement.className = '';"> + <select id='s' class='valid' required> + <option selected>foo</option> + </select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-valid-reset.html b/layout/reftests/css-ui-valid/select/select-valid-reset.html new file mode 100644 index 000000000..a2b22a176 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-valid-reset.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <!-- Test: if select has no custom error and is not barred from constraint + validation, it should be affected by :-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementById('s').selectedIndex = 0; + document.forms[0].reset(); + document.documentElement.className ='';"> + <form> + <select id='s' class='notvalid' required> + <option>foo</option> + </select> + </form> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/select-valid.html b/layout/reftests/css-ui-valid/select/select-valid.html new file mode 100644 index 000000000..e3adb623d --- /dev/null +++ b/layout/reftests/css-ui-valid/select/select-valid.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <!-- Test: if select has no custom error and is not barred from constraint + validation, it should be affected by :-moz-ui-valid pseudo-class. --> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='notvalid'></select> + </body> +</html> diff --git a/layout/reftests/css-ui-valid/select/style.css b/layout/reftests/css-ui-valid/select/style.css new file mode 100644 index 000000000..ea29b7ad0 --- /dev/null +++ b/layout/reftests/css-ui-valid/select/style.css @@ -0,0 +1,18 @@ +/* Override default style */ +select:invalid { + box-shadow: none; +} + +select.notvalid { + background-color: green; +} +select.notvalid:-moz-ui-valid { + background-color: red; +} + +select.valid { + background-color: red; +} +select.valid:-moz-ui-valid { + background-color: green; +} |