| 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="../../../resources/js-test.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="week" value="1982-W25" id="enabled"> | 7 <input type="week" value="1982-W25" id="enabled"> |
| 8 <input type="week" value="1982-W25" id="disabled" disabled> | 8 <input type="week" value="1982-W25" id="disabled" disabled> |
| 9 <input type="week" value="1982-W25" min="1982-W10" step="2" id="invalid"> | 9 <input type="week" value="1982-W25" min="1982-W10" step="2" id="invalid"> |
| 10 <input type="week" value="1982-W25" min="1982-W01" max="1982-W30" id="inrange"> | 10 <input type="week" value="1982-W25" min="1982-W01" max="1982-W30" id="inrange"> |
| 11 <input type="week" value="ABC" min="1982-W01" max="1982-W30" id="badvalue"> | 11 <input type="week" value="ABC" min="1982-W01" max="1982-W30" id="badvalue"> |
| 12 <input type="week" value="1982-W25" min="1981-W01" max="1981-W12" id="outofrange
"> | 12 <input type="week" value="1982-W25" min="1981-W01" max="1981-W12" id="outofrange
"> |
| 13 <input type="week" value="1982-W25" readonly id="readonly"> | 13 <input type="week" value="1982-W25" readonly id="readonly"> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 32 document.getElementById('outofrange').value = '1981-W10'; | 32 document.getElementById('outofrange').value = '1981-W10'; |
| 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 = '1981-W10'; | 36 document.getElementById('inrange').value = '1981-W10'; |
| 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 </body> | 41 </body> |
| OLD | NEW |