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-submit-invalid/button-submit | |
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-submit-invalid/button-submit')
26 files changed, 419 insertions, 0 deletions
diff --git a/layout/reftests/css-submit-invalid/button-submit/add-invalid-element.html b/layout/reftests/css-submit-invalid/button-submit/add-invalid-element.html new file mode 100644 index 000000000..90a1429b6 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/add-invalid-element.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.forms[0].appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='email' value='foo'> + <form> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/add-submit-control.html b/layout/reftests/css-submit-invalid/button-submit/add-submit-control.html new file mode 100644 index 000000000..a9d5c2c1c --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/add-submit-control.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.forms[0].appendChild(document.getElementById('b')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <button id='b' type='submit'></button> + <form> + <input required> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/change-type-not-submit-control.html b/layout/reftests/css-submit-invalid/button-submit/change-type-not-submit-control.html new file mode 100644 index 000000000..9667e3a26 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/change-type-not-submit-control.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('b').type = 'button'; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input required> + <button id='b' type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/change-type-submit-control.html b/layout/reftests/css-submit-invalid/button-submit/change-type-submit-control.html new file mode 100644 index 000000000..cc71e850b --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/change-type-submit-control.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('b').type = 'submit'; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input required> + <button id='b'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred-2.html b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred-2.html new file mode 100644 index 000000000..6b8bd26c6 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred-2.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').value = ''; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' value='foo' required readonly> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred.html b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred.html new file mode 100644 index 000000000..cbe816212 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-barred.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').readOnly = 'ro'; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' required> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-not-barred.html b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-not-barred.html new file mode 100644 index 000000000..c396d6735 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid-not-barred.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').removeAttribute('readonly'); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' required readonly> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html new file mode 100644 index 000000000..4301467e3 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-invalid.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + :-moz-ui-invalid { box-shadow: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').value = ''; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' value='foo' required> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/dynamic-valid.html b/layout/reftests/css-submit-invalid/button-submit/dynamic-valid.html new file mode 100644 index 000000000..59d2948ac --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/dynamic-valid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').value = 'foo'; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' required> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/invalid-barred-ref.html b/layout/reftests/css-submit-invalid/button-submit/invalid-barred-ref.html new file mode 100644 index 000000000..7c319e41b --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/invalid-barred-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input required readonly> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/invalid-ref-2.html b/layout/reftests/css-submit-invalid/button-submit/invalid-ref-2.html new file mode 100644 index 000000000..dd03dc812 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/invalid-ref-2.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input type='email' value='foo'> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/invalid-ref-3.html b/layout/reftests/css-submit-invalid/button-submit/invalid-ref-3.html new file mode 100644 index 000000000..67305cc7b --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/invalid-ref-3.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <table id='t'> + <tr><td><input required></td></tr> + <tr><td><button type='submit'></button></td></tr> + </table> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/invalid-ref.html b/layout/reftests/css-submit-invalid/button-submit/invalid-ref.html new file mode 100644 index 000000000..76d80f6fa --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/invalid-ref.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input required> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/reftest-stylo.list b/layout/reftests/css-submit-invalid/button-submit/reftest-stylo.list new file mode 100644 index 000000000..f7dbf6283 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/reftest-stylo.list @@ -0,0 +1,17 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== static-valid.html static-valid.html +== dynamic-valid.html dynamic-valid.html +== static-invalid.html static-invalid.html +== dynamic-invalid.html dynamic-invalid.html +== dynamic-invalid-barred.html dynamic-invalid-barred.html +== dynamic-invalid-barred-2.html dynamic-invalid-barred-2.html +== dynamic-invalid-not-barred.html dynamic-invalid-not-barred.html +== static-invalid-barred.html static-invalid-barred.html +== remove-invalid-element.html remove-invalid-element.html +== add-invalid-element.html add-invalid-element.html +== add-submit-control.html add-submit-control.html +== remove-submit-control.html remove-submit-control.html +== change-type-submit-control.html change-type-submit-control.html +== change-type-not-submit-control.html change-type-not-submit-control.html +== self-invalid.html self-invalid.html +== remove-form.html remove-form.html diff --git a/layout/reftests/css-submit-invalid/button-submit/reftest.list b/layout/reftests/css-submit-invalid/button-submit/reftest.list new file mode 100644 index 000000000..cfb8df94e --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/reftest.list @@ -0,0 +1,16 @@ +== static-valid.html valid-ref.html +== dynamic-valid.html valid-ref.html +== static-invalid.html invalid-ref.html +== dynamic-invalid.html invalid-ref.html +== dynamic-invalid-barred.html invalid-barred-ref.html +== dynamic-invalid-barred-2.html invalid-barred-ref.html +== dynamic-invalid-not-barred.html invalid-ref.html +== static-invalid-barred.html invalid-barred-ref.html +== remove-invalid-element.html valid-ref-2.html +== add-invalid-element.html invalid-ref-2.html +== add-submit-control.html invalid-ref.html +== remove-submit-control.html valid-ref-3.html +== change-type-submit-control.html invalid-ref.html +== change-type-not-submit-control.html valid-ref-4.html +== self-invalid.html about:blank +== remove-form.html invalid-ref-3.html diff --git a/layout/reftests/css-submit-invalid/button-submit/remove-form.html b/layout/reftests/css-submit-invalid/button-submit/remove-form.html new file mode 100644 index 000000000..a54329714 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/remove-form.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('t').removeChild(document.forms[0]); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <table id='t'> + <form> + <tr><td><input required></td></tr> + <tr><td><button type='submit'></button></td></tr> + </form> + </table> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/remove-invalid-element.html b/layout/reftests/css-submit-invalid/button-submit/remove-invalid-element.html new file mode 100644 index 000000000..c92d134c4 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/remove-invalid-element.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.forms[0].removeChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input id='i' type='email' value='foo'> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/remove-submit-control.html b/layout/reftests/css-submit-invalid/button-submit/remove-submit-control.html new file mode 100644 index 000000000..3acd342df --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/remove-submit-control.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.body.appendChild(document.getElementById('b')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <input required> + <button id='b' type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/self-invalid.html b/layout/reftests/css-submit-invalid/button-submit/self-invalid.html new file mode 100644 index 000000000..d52f598d0 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/self-invalid.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + :invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('b').setCustomValidity('foo'); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <form> + <button id='b' type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/static-invalid-barred.html b/layout/reftests/css-submit-invalid/button-submit/static-invalid-barred.html new file mode 100644 index 000000000..57b06a04a --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/static-invalid-barred.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <body> + <form> + <input required readonly> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/static-invalid.html b/layout/reftests/css-submit-invalid/button-submit/static-invalid.html new file mode 100644 index 000000000..708c96728 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/static-invalid.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <body> + <form> + <input required> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/static-valid.html b/layout/reftests/css-submit-invalid/button-submit/static-valid.html new file mode 100644 index 000000000..953c55a18 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/static-valid.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <style> + :-moz-submit-invalid { display: none; } + </style> + </head> + <body> + <form> + <input value='foo' required> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/valid-ref-2.html b/layout/reftests/css-submit-invalid/button-submit/valid-ref-2.html new file mode 100644 index 000000000..d9f1786a7 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/valid-ref-2.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <button type='submit'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/valid-ref-3.html b/layout/reftests/css-submit-invalid/button-submit/valid-ref-3.html new file mode 100644 index 000000000..cd0ba4c93 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/valid-ref-3.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input required> + </form> + <button type='submit'></button> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/valid-ref-4.html b/layout/reftests/css-submit-invalid/button-submit/valid-ref-4.html new file mode 100644 index 000000000..7ff5aead1 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/valid-ref-4.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input required> + <button type='button'></button> + </form> + </body> +</html> diff --git a/layout/reftests/css-submit-invalid/button-submit/valid-ref.html b/layout/reftests/css-submit-invalid/button-submit/valid-ref.html new file mode 100644 index 000000000..12d113480 --- /dev/null +++ b/layout/reftests/css-submit-invalid/button-submit/valid-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <body> + <form> + <input value='foo' required> + <button type='submit'></button> + </form> + </body> +</html> |