OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf8> | 2 <meta charset=utf8> |
3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../fast/js/resources/js-test-pre.js"></script> |
4 | 4 |
5 <p id="description"></p> | 5 <p id="description"></p> |
6 <div id="console"> | 6 <div id="console"> |
7 Tests that hidden in markup works: | 7 Tests that hidden in markup works: |
8 <div hidden><span class=fail>FAIL</span> - this line should not appear</div><div
hidden=hidden><span class=fail>FAIL</span> - this line should not appear</div><
div hidden=false><span class=fail>FAIL</span> - this line should not appear</div
><p hidden><span class=fail>FAIL</span> - this line should not appear</p><span h
idden><span class=fail>FAIL</span> - this line should not appear</span><img widt
h=400px alt="FAIL - this should not appear" src="resources/xxx-missing.jpeg" hid
den> | 8 <div hidden><span class=fail>FAIL</span> - this line should not appear</div><div
hidden=hidden><span class=fail>FAIL</span> - this line should not appear</div><
div hidden=false><span class=fail>FAIL</span> - this line should not appear</div
><p hidden><span class=fail>FAIL</span> - this line should not appear</p><span h
idden><span class=fail>FAIL</span> - this line should not appear</span><img widt
h=400px alt="FAIL - this should not appear" src="resources/xxx-missing.jpeg" hid
den> |
9 | 9 |
10 Tests that dynamically adding/removing hidden works: | 10 Tests that dynamically adding/removing hidden works: |
(...skipping 17 matching lines...) Expand all Loading... |
28 test3.removeAttribute("hidden"); | 28 test3.removeAttribute("hidden"); |
29 debug('test3.removeAttribute("hidden")'); | 29 debug('test3.removeAttribute("hidden")'); |
30 shouldBe('getComputedStyle(test3, false).display', '"block"'); | 30 shouldBe('getComputedStyle(test3, false).display', '"block"'); |
31 | 31 |
32 shouldBe('getComputedStyle(test4, false).display', '"block"'); | 32 shouldBe('getComputedStyle(test4, false).display', '"block"'); |
33 test4.setAttribute("hidden", ""); | 33 test4.setAttribute("hidden", ""); |
34 debug('test4.setAttribute("hidden", "")'); | 34 debug('test4.setAttribute("hidden", "")'); |
35 shouldBe('getComputedStyle(test4, false).display', '"none"'); | 35 shouldBe('getComputedStyle(test4, false).display', '"none"'); |
36 | 36 |
37 </script> | 37 </script> |
38 <script src="../../fast/js/resources/js-test-post.js"></script> | |
39 </body> | 38 </body> |
40 </html> | 39 </html> |
OLD | NEW |