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

Side by Side Diff: LayoutTests/fast/forms/datetimelocal/datetimelocal-pseudo-classes.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script src="../resources/common-pseudo-classes.js"></script> 4 <script src="../resources/common-pseudo-classes.js"></script>
5 5
6 <div id="container"> 6 <div id="container">
7 <input type="datetime-local" value="1234-12-11T12:34" id="enabled"> 7 <input type="datetime-local" value="1234-12-11T12:34" id="enabled">
8 <input type="datetime-local" value="12340-10-01T12:34" id="disabled" disabled> 8 <input type="datetime-local" value="12340-10-01T12:34" id="disabled" disabled>
9 <input type="datetime-local" value="123456-12-11T12:34" min="123456-12-11T00:00" step="1800" id="invalid"> 9 <input type="datetime-local" value="123456-12-11T12:34" min="123456-12-11T00:00" step="1800" id="invalid">
10 <input type="datetime-local" value="123456-12-11T12:34" min="123456-12-01T00:00" max="123456-12-31T00:00" id="inrange"> 10 <input type="datetime-local" value="123456-12-11T12:34" min="123456-12-01T00:00" max="123456-12-31T00:00" id="inrange">
(...skipping 20 matching lines...) Expand all
31 // Make the id=outofrange element in-range state. 31 // Make the id=outofrange element in-range state.
32 document.getElementById('outofrange').value = '1500-01-01T00:00'; 32 document.getElementById('outofrange').value = '1500-01-01T00:00';
33 shouldBeFalse('matchedNodesContainId(container, ":out-of-range", "outofrange")') ; 33 shouldBeFalse('matchedNodesContainId(container, ":out-of-range", "outofrange")') ;
34 shouldBeTrue('matchedNodesContainId(container, ":in-range", "outofrange")'); 34 shouldBeTrue('matchedNodesContainId(container, ":in-range", "outofrange")');
35 // Make the id=inrange element out-of-range state. 35 // Make the id=inrange element out-of-range state.
36 document.getElementById('inrange').value = '1500-01-01T00:00'; 36 document.getElementById('inrange').value = '1500-01-01T00:00';
37 shouldBeFalse('matchedNodesContainId(container, ":in-range", "inrange")'); 37 shouldBeFalse('matchedNodesContainId(container, ":in-range", "inrange")');
38 shouldBeTrue('matchedNodesContainId(container, ":out-of-range", "inrange")'); 38 shouldBeTrue('matchedNodesContainId(container, ":out-of-range", "inrange")');
39 container.remove(); 39 container.remove();
40 </script> 40 </script>
41 <script src="../../js/resources/js-test-post.js"></script>
42 </body> 41 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698