Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/inputwillvalidate.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html><head>
3 <title>willValidate property on the input element</title>
4 <meta content="text/html; charset=UTF-8" http-equiv="content-type">
5 <meta content="willValidate property on the input element" name="description ">
6 <link href="https://html.spec.whatwg.org/multipage/#dom-cva-willvalidate" re l="help">
7 </head>
8 <body>
9 <script src="../../../../../../resources/testharness.js"></script>
10 <script src="../../../../../../resources/testharnessreport.js"></script>
11
12 <div id="log"></div>
13
14 <form action="http://www.example.com/" style="display : none">
15 <input required="" type="text">
16 <input disabled="" type="text">
17 </form>
18
19 <script type="text/javascript">
20
21 test(function() {assert_true(document.getElementsByTagName("input")[0].wil lValidate)}, "willValidate property returns true when required attribute exists" );
22 test(function() {assert_false(document.getElementsByTagName("input")[1].wi llValidate)}, "willValidate property returns false when disabled attribute exist s");
23
24 </script>
25
26 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698