diff options
Diffstat (limited to '')
22 files changed, 221 insertions, 0 deletions
diff --git a/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html new file mode 100644 index 0000000000..9046f5c74d --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/button-focus-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementsByTagName('button')[0].focus();"> + <button class='invalid-ref' onfocus="document.documentElement.className='';"></button> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/button-focus.html b/layout/reftests/css-ui-invalid/default-style/button-focus.html new file mode 100644 index 0000000000..e34dad8465 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/button-focus.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.getElementById('e').focus(); + } + </script> + <body onload="onloadHandler();"> + <button id='e' onfocus="document.documentElement.className='';"></button> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/button-ref.html b/layout/reftests/css-ui-invalid/default-style/button-ref.html new file mode 100644 index 0000000000..71dbb9cf80 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/button-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <button class='invalid-ref'></button> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/button.html b/layout/reftests/css-ui-invalid/default-style/button.html new file mode 100644 index 0000000000..3b240b7e41 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/button.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <button id='e'></button> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html b/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html new file mode 100644 index 0000000000..0289183246 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/fieldset-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <fieldset class='barred-ref'></fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/fieldset.html b/layout/reftests/css-ui-invalid/default-style/fieldset.html new file mode 100644 index 0000000000..e2b3b1ac19 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/fieldset.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <fieldset id='e'></fieldset> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html new file mode 100644 index 0000000000..1180844f60 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/input-focus-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementsByTagName('input')[0].focus();"> + <input class='invalid-ref' onfocus="document.documentElement.className='';"> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/input-focus.html b/layout/reftests/css-ui-invalid/default-style/input-focus.html new file mode 100644 index 0000000000..ac9d554a42 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/input-focus.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.getElementById('e').focus(); + } + </script> + <body onload="onloadHandler();"> + <input id='e' onfocus="document.documentElement.className='';"> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/input-ref.html b/layout/reftests/css-ui-invalid/default-style/input-ref.html new file mode 100644 index 0000000000..31f6e35f2c --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/input-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <input class='invalid-ref'> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/input.html b/layout/reftests/css-ui-invalid/default-style/input.html new file mode 100644 index 0000000000..e0d1bf6a3c --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/input.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <input id='e'> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/output-ref.html b/layout/reftests/css-ui-invalid/default-style/output-ref.html new file mode 100644 index 0000000000..f1ab90bc64 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/output-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <output class='invalid-ref'>foo</output> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/output.html b/layout/reftests/css-ui-invalid/default-style/output.html new file mode 100644 index 0000000000..6da555bbf1 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/output.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <output id='e'>foo</output> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/reftest.list b/layout/reftests/css-ui-invalid/default-style/reftest.list new file mode 100644 index 0000000000..62486537a5 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/reftest.list @@ -0,0 +1,10 @@ +== input.html input-ref.html +fuzzy-if(isDebugBuild&>kWidget,0-1,0-1) fuzzy-if(cocoaWidget,0-2,0-32) == button.html button-ref.html +== textarea.html textarea-ref.html +fuzzy(0-112,0-6) == select.html select-ref.html +== fieldset.html fieldset-ref.html +== output.html output-ref.html +random-if(winWidget) needs-focus == input-focus.html input-focus-ref.html # Intermittent failures, bug 660224 +needs-focus fuzzy-if(cocoaWidget,0-1,0-10) == button-focus.html button-focus-ref.html +needs-focus fuzzy(0-32,0-1) == textarea-focus.html textarea-focus-ref.html +random-if(winWidget) fuzzy(0-112,0-6) needs-focus == select-focus.html select-focus-ref.html # windows: Intermittent failures, bug 660224, non-native: shadow blur fuzziness diff --git a/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html new file mode 100644 index 0000000000..42b8da524a --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/select-focus-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementsByTagName('select')[0].focus();"> + <select class='invalid-ref' onfocus="document.documentElement.className='';"></select> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/select-focus.html b/layout/reftests/css-ui-invalid/default-style/select-focus.html new file mode 100644 index 0000000000..946e078152 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/select-focus.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.getElementById('e').focus(); + } + </script> + <body onload="onloadHandler();"> + <select id='e' onfocus="document.documentElement.className='';"></select> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/select-ref.html b/layout/reftests/css-ui-invalid/default-style/select-ref.html new file mode 100644 index 0000000000..3eed47082f --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/select-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <select class='invalid-ref'></select> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/select.html b/layout/reftests/css-ui-invalid/default-style/select.html new file mode 100644 index 0000000000..f05241f9e7 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/select.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <select id='e'></select> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/style.css b/layout/reftests/css-ui-invalid/default-style/style.css new file mode 100644 index 0000000000..3db7d3dd18 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/style.css @@ -0,0 +1,11 @@ +:not(output).invalid-ref { +} + +:not(output):-moz-focusring.invalid-ref { +} + +output.invalid-ref { +} + +.barred-ref { +} diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html b/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html new file mode 100644 index 0000000000..942390f870 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <link rel='stylesheet' type='text/css' href='style.css'> + <body onload="document.getElementsByTagName('textarea')[0].focus();"> + <textarea class='invalid-ref' onfocus="document.documentElement.className='';"></textarea> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-focus.html b/layout/reftests/css-ui-invalid/default-style/textarea-focus.html new file mode 100644 index 0000000000..0f9d790263 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/textarea-focus.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.getElementById('e').focus(); + } + </script> + <body onload="onloadHandler();"> + <textarea id='e' onfocus="document.documentElement.className='';"></textarea> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/textarea-ref.html b/layout/reftests/css-ui-invalid/default-style/textarea-ref.html new file mode 100644 index 0000000000..c7037764f6 --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/textarea-ref.html @@ -0,0 +1,7 @@ +<!DOCTYPE> +<html> + <link rel='stylesheet' type='text/css' href='style.css'> + <body> + <textarea class='invalid-ref'></textarea> + </body> +</html> diff --git a/layout/reftests/css-ui-invalid/default-style/textarea.html b/layout/reftests/css-ui-invalid/default-style/textarea.html new file mode 100644 index 0000000000..73ff14c2ae --- /dev/null +++ b/layout/reftests/css-ui-invalid/default-style/textarea.html @@ -0,0 +1,13 @@ +<!DOCTYPE> +<html class="reftest-wait"> + <script> + function onloadHandler() + { + document.getElementById('e').setCustomValidity('foo'); + document.documentElement.className=''; + } + </script> + <body onload="onloadHandler();"> + <textarea id='e'></textarea> + </body> +</html> |