layout/reftests/forms/input/range/valueAsNumber-prop-unthemed.html
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 24 Mar 2017 14:24:21 +0100
changeset 349471 4c987b7ed54a630a7de76adcc2eb00dab49d5dfd
parent 349414 e389879425a71bf4c0db797550005cd4438de3b7
child 359892 bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
permissions -rw-r--r--
merge mozilla-inbound to mozilla-central a=merge

<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when changing the 'value' IDL property, the thumb of the range
             should be moved to the appropriate position -->
  <script type="text/javascript">
    function setValue()
    {
      document.getElementById('i').valueAsNumber = 75;
      document.documentElement.className = '';
    }
    document.addEventListener("MozReftestInvalidate", setValue);
    setTimeout(setValue, 2000); // useful when not running under reftest suite
  </script>
  <body>
    <input type=range id='i' value=50 step=25 style='-moz-appearance:none; appearance: none'>
  </body>
</html>