Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-capture.html
blob4c32ba60d78a77c68ebaa54447b9f878e1938616
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 description("Tests the capture attribute of &lt;input type='file'&gt;");
7 var input = document.createElement("input");
9 shouldBeTrue("'capture' in input");
10 shouldBe("input.capture", "false");
11 shouldBe("input.hasAttribute('capture')", "false");
13 input.setAttribute("type", "file");
15 shouldBe("input.capture", "false");
16 shouldBe("input.hasAttribute('capture')", "false");
18 input.setAttribute("capture", true);
19 shouldBe("input.capture", "true");
20 shouldBe("input.hasAttribute('capture')", "true");
22 input.removeAttribute("capture");
23 shouldBe("input.capture", "false");
24 shouldBe("input.hasAttribute('capture')", "false");
26 input.setAttribute("capture", "'x'");
27 shouldBe("input.capture", "true");
28 shouldBe("input.hasAttribute('capture')", "true");
30 input.capture = false;
31 shouldBe("input.capture", "false");
32 shouldBe("input.hasAttribute('capture')", "false");
34 input.capture = true;
35 shouldBe("input.capture", "true");
36 shouldBe("input.hasAttribute('capture')", "true");
37 </script>
38 </html>