| OLD | NEW |
| 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="time" value="12:34:00" id="enabled"> | 7 <input type="time" value="12:34:00" id="enabled"> |
| 8 <input type="time" value="12:34:00" id="disabled" disabled> | 8 <input type="time" value="12:34:00" id="disabled" disabled> |
| 9 <input type="time" value="12:34:00" min="11:00:00" step="3600" id="invalid"> | 9 <input type="time" value="12:34:00" min="11:00:00" step="3600" id="invalid"> |
| 10 <input type="time" value="12:34:00" min="12:00:00" max="13:00:00" id="inrange"> | 10 <input type="time" value="12:34:00" min="12:00:00" max="13:00:00" id="inrange"> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Make the id=outofrange element in-range state. | 31 // Make the id=outofrange element in-range state. |
| 32 document.getElementById('outofrange').value = '13:34:00'; | 32 document.getElementById('outofrange').value = '13:34: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 = '13:34:00'; | 36 document.getElementById('inrange').value = '13:34: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> |
| OLD | NEW |