Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / range / range-input-dynamic-oninput.html
blob2b7c04b2402246aa48f309a2c7e995e16437a49c
1 <html>
2 <head>
3 <script>
4 var wasLog = false;
5 function log(msg) {
6 wasLog = true;
7 document.getElementById('log').appendChild(document.createTextNode(msg + '\n'));
10 function test() {
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var input = document.getElementsByTagName('input')[0]
15 input.value = 200;
16 if (!wasLog && input.value === "100")
17 log('PASS');
19 </script>
20 </head>
21 <body onload="test()">
22 <p>
23 This page tests that setting the value of an <tt>&lt;input type=range&gt;</tt>
24 element to an out-of-range value does not fire the <tt>oninput</tt> event.
25 </p>
26 <input type=range oninput="log('FAIL')" min=0 max=100 value=50>
27 <pre id="log"></pre>
28 </body>
29 </html>