Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: LayoutTests/fast/forms/file/file-input-capture.html

Issue 18332015: HTML Media Capture: Update implementation, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@update-media-capture-implementation-part1
Patch Set: Rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/file/file-input-capture-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/file/file-input-capture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698