layout/reftests/css-ui-invalid/input/input-radio-dyn-valid-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-ui-invalid/input/input-radio-dyn-valid-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <!-- Test: when there are no radio suffering from being missing in the radio
     1.7 +             group, all radio should not suffer from being missing. -->
     1.8 +  <link rel='stylesheet' type='text/css' href='style.css'>
     1.9 +  <body onload="document.getElementById('i1').checked = true;
    1.10 +                document.getElementById('i1').required = false;
    1.11 +                if (document.getElementById('i1').mozMatchesSelector(':-moz-ui-invalid') ||
    1.12 +                    document.getElementById('i2').mozMatchesSelector(':-moz-ui-invalid')) {
    1.13 +                  document.body.textContent='FAIL';
    1.14 +                } else {
    1.15 +                  document.body.textContent='SUCCESS';
    1.16 +                }
    1.17 +                document.documentElement.className='';">
    1.18 +    <input id='i1' name='foo' type='radio' required>
    1.19 +    <input id='i2' name='foo' type='radio'>
    1.20 +  </body>
    1.21 +</html>

mercurial