Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / ValidityState-rangeUnderflow.html
blob1a128ec8a96addfd79f16434a825466d4a0ab692
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('This test aims to check for rangeUnderflow flag with input fields');
12 var input = document.createElement('input');
14 function checkNotUnderflow(value, min, disabled)
16 input.value = value;
17 input.min = min;
18 input.disabled = !!disabled;
19 var underflow = input.validity.rangeUnderflow;
20 var resultText = 'The value "' + input.value + '" ' +
21 (underflow ? 'underflows' : 'doesn\'t underflow') +
22 ' the minimum value "' + input.min + '"' + (disabled ? ' when disabled.' : '.');
23 if (underflow)
24 testFailed(resultText);
25 else
26 testPassed(resultText);
29 // ----------------------------------------------------------------
30 debug('Type=text');
31 input.type = 'text'; // No underflow for type=text.
32 checkNotUnderflow('99', '100');
33 </script>
34 </body>
35 </html>