| Index: LayoutTests/fast/forms/file/file-input-capture.html
|
| diff --git a/LayoutTests/fast/forms/file/file-input-capture.html b/LayoutTests/fast/forms/file/file-input-capture.html
|
| index 0ce9955bac321066184172942f8377aa9f6f21fc..5cc4dbb204609f25d327460a989a5115df7f3a4a 100644
|
| --- a/LayoutTests/fast/forms/file/file-input-capture.html
|
| +++ b/LayoutTests/fast/forms/file/file-input-capture.html
|
| @@ -7,28 +7,33 @@ description("Tests the capture attribute of <input type='file'>");
|
| var input = document.createElement("input");
|
|
|
| shouldBeTrue("'capture' in input");
|
| -shouldBe("input.capture", "''");
|
| +shouldBe("input.capture", "false");
|
| +shouldBe("input.hasAttribute('capture')", "false");
|
|
|
| input.setAttribute("type", "file");
|
|
|
| -shouldBe("input.capture", "'filesystem'");
|
| +shouldBe("input.capture", "false");
|
| +shouldBe("input.hasAttribute('capture')", "false");
|
|
|
| -input.setAttribute("capture", "CaMerA");
|
| -shouldBe("input.capture", "'camera'");
|
| +input.setAttribute("capture", true);
|
| +shouldBe("input.capture", "true");
|
| +shouldBe("input.hasAttribute('capture')", "true");
|
|
|
| -input.setAttribute("capture", "camcorder");
|
| -shouldBe("input.capture", "'camcorder'");
|
| +input.removeAttribute("capture");
|
| +shouldBe("input.capture", "false");
|
| +shouldBe("input.hasAttribute('capture')", "false");
|
|
|
| -input.setAttribute("capture", "MiCroPhonE");
|
| -shouldBe("input.capture", "'microphone'");
|
| +input.setAttribute("capture", "'x'");
|
| +shouldBe("input.capture", "true");
|
| +shouldBe("input.hasAttribute('capture')", "true");
|
|
|
| -input.setAttribute("capture", "xyzzy");
|
| -shouldBe("input.capture", "'filesystem'");
|
| -
|
| -input.capture = "CamCorder";
|
| -shouldBe("input.capture", "'camcorder'");
|
| -shouldBe("input.getAttribute('capture')", "'CamCorder'");
|
| +input.capture = false;
|
| +shouldBe("input.capture", "false");
|
| +shouldBe("input.hasAttribute('capture')", "false");
|
|
|
| +input.capture = true;
|
| +shouldBe("input.capture", "true");
|
| +shouldBe("input.hasAttribute('capture')", "true");
|
| </script>
|
| <script src="../../js/resources/js-test-post.js"></script>
|
| </html>
|
|
|