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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-labelledby-overrides-aria-label.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <body id="body"> 5 <body id="body">
6 <p id="description">This tests that if aria-labelledby is used, then aria-label attributes are not used.</p> 6 <p id="description">This tests that if aria-labelledby is used, then aria-label attributes are not used.</p>
7 7
8 <button id="using-none">Alpha</button> 8 <button id="using-none">Alpha</button>
9 <button id="using-label" aria-label="Gamma">Beta</button> 9 <button id="using-label" aria-label="Gamma">Beta</button>
10 <button id="using-labelledby" aria-labelledby="epsilon" aria-label="Zeta">Delta< /button> 10 <button id="using-labelledby" aria-labelledby="epsilon" aria-label="Zeta">Delta< /button>
(...skipping 16 matching lines...) Expand all
27 var li = document.createElement("li"); 27 var li = document.createElement("li");
28 li.appendChild(document.createTextNode(str)); 28 li.appendChild(document.createTextNode(str));
29 results.appendChild(li); 29 results.appendChild(li);
30 } 30 }
31 31
32 if (window.testRunner) 32 if (window.testRunner)
33 testRunner.dumpAsText(); 33 testRunner.dumpAsText();
34 34
35 if (window.accessibilityController) { 35 if (window.accessibilityController) {
36 var usingNone = getAccessibilityObject("using-none"); 36 var usingNone = getAccessibilityObject("using-none");
37 output("usingNone.deprecatedTitle: [" + usingNone.deprecatedTitle + "]") ; 37 output("usingNone.name: [" + usingNone.name + "]");
38 output("usingNone.deprecatedDescription: [" + usingNone.deprecatedDescr iption + "]");
39 38
40 var usingLabel = getAccessibilityObject("using-label"); 39 var usingLabel = getAccessibilityObject("using-label");
41 output("usingLabel.deprecatedTitle: [" + usingLabel.deprecatedTitle + "] "); 40 output("usingLabel.name: [" + usingLabel.name + "]");
42 output("usingLabel.deprecatedDescription: [" + usingLabel.deprecatedDes cription + "]");
43 41
44 var usingLabelledby = getAccessibilityObject("using-labelledby"); 42 var usingLabelledby = getAccessibilityObject("using-labelledby");
45 output("usingLabelledby.deprecatedTitle: [" + usingLabelledby.deprecated Title + "]"); 43 output("usingLabelledby.name: [" + usingLabelledby.name + "]");
46 output("usingLabelledby.deprecatedDescription: [" + usingLabelledby.dep recatedDescription + "]");
47 44
48 var usingLabeledby = getAccessibilityObject("using-labeledby"); 45 var usingLabeledby = getAccessibilityObject("using-labeledby");
49 output("usingLabeledby.deprecatedTitle: [" + usingLabeledby.deprecatedTi tle + "]"); 46 output("usingLabeledby.name: [" + usingLabeledby.name + "]");
50 output("usingLabeledby.deprecatedDescription: [" + usingLabeledby.depre catedDescription + "]");
51 } 47 }
52 48
53 successfullyParsed = true; 49 successfullyParsed = true;
54 </script> 50 </script>
55 51
56 </body> 52 </body>
57 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698