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> | 4 <script> |
5 description("Tests the capture attribute of <input type='file'>"); | 5 description("Tests the capture attribute of <input type='file'>"); |
6 | 6 |
7 var input = document.createElement("input"); | 7 var input = document.createElement("input"); |
8 | 8 |
9 shouldBeTrue("'capture' in input"); | 9 shouldBeTrue("'capture' in input"); |
10 shouldBe("input.capture", "false"); | 10 shouldBe("input.capture", "false"); |
(...skipping 17 matching lines...) Expand all Loading... |
28 shouldBe("input.hasAttribute('capture')", "true"); | 28 shouldBe("input.hasAttribute('capture')", "true"); |
29 | 29 |
30 input.capture = false; | 30 input.capture = false; |
31 shouldBe("input.capture", "false"); | 31 shouldBe("input.capture", "false"); |
32 shouldBe("input.hasAttribute('capture')", "false"); | 32 shouldBe("input.hasAttribute('capture')", "false"); |
33 | 33 |
34 input.capture = true; | 34 input.capture = true; |
35 shouldBe("input.capture", "true"); | 35 shouldBe("input.capture", "true"); |
36 shouldBe("input.hasAttribute('capture')", "true"); | 36 shouldBe("input.hasAttribute('capture')", "true"); |
37 </script> | 37 </script> |
38 <script src="../../js/resources/js-test-post.js"></script> | |
39 </html> | 38 </html> |
OLD | NEW |