Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / invalid-001.html
blob1fa9170f64a823be2b927d2988831ba64b05e2fd
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 <form method="get">
9 <input name="victim" type="text" required oninvalid="testPassed('Invalid control')"/>
10 <input name="victim" type="text" pattern="Lorem ipsum" value="Loremipsum" oninvalid="testPassed('Invalid control')"/>
11 <textarea name="victim" required oninvalid="testPassed('Invalid control')"></textarea>
12 </form>
13 <div id="console"></div>
14 <script>
15 description("This test checks if checkValidity() correctly fires an invalid event on invalid form control elements.");
17 v = document.getElementsByName("victim");
18 for (i = 0; i < v.length; i++)
19 shouldBe("v[i].checkValidity()", "false");
20 </script>
21 </body>
22 </html>