1 description('Tests that invalid values are considered in-range.');
3 var parentDiv = document.createElement('div');
4 document.body.appendChild(parentDiv);
5 parentDiv.innerHTML = '<input id="number1" type="number" min=0 max=10 value="ABC"><input id="range1" type="range" min=0 max=10 value="ABC"><input id="text1" type="text" min=0 max=10 value="ABC"><input id="checkbox1" type="checkbox"> <input id="radio1" type="radio">';
7 shouldBe('document.querySelector("input[type=number]:in-range").id', '"number1"');
8 shouldBe('document.querySelector("input[type=range]:in-range").id', '"range1"');
9 shouldBe('document.querySelectorAll(":in-range").length', '2');