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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html

Issue 2492083002: Implement aria-placeholder (Closed)
Patch Set: Implement code cleanup suggestion Created 4 years, 1 month 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
Index: third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html b/third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html
index c2d0cd2ee3b1b411112ae0dd25a4d82f47d894f0..5298e99ce110a4887835c67a296190cc8b2d0931 100644
--- a/third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html
+++ b/third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html
@@ -154,6 +154,30 @@ test(function(t) {
}, "Text input with multiple label-for");
</script>
+<div class="container">
+ <input id="text12" type="text" title="text12-title" aria-placeholder="text12-aria-placeholder">
+</div>
+
+<script>
+test(function(t) {
+ var axTextInput12 = accessibilityController.accessibleElementById("text12");
+ assert_equals(axTextInput12.name, "text12-aria-placeholder");
+ assert_equals(axTextInput12.nameFrom, "placeholder");
+}, "Text input with title and aria-placeholder");
+</script>
+
+<div class="container">
+ <input id="text13" type="text" title="text13-title" aria-placeholder="text13-aria-placeholder" placeholder="text13-placeholder">
+</div>
+
+<script>
+test(function(t) {
+ var axTextInput13 = accessibilityController.accessibleElementById("text13");
+ assert_equals(axTextInput13.name, "text13-placeholder");
+ assert_equals(axTextInput13.nameFrom, "placeholder");
+}, "Text input with title and aria-placeholder");
+</script>
+
<script>
if (window.testRunner)
document.body.className = "hideAllContainers";

Powered by Google App Engine
This is Rietveld 408576698