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

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

Issue 1086753004: Switch LayoutTests to use renamed methods for deprecated text alternatives (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-add linux expectation Created 5 years, 6 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 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.title: [" + usingNone.title + "]"); 37 output("usingNone.deprecatedTitle: [" + usingNone.deprecatedTitle + "]") ;
38 output("usingNone.description: [" + usingNone.description + "]"); 38 output("usingNone.deprecatedDescription: [" + usingNone.deprecatedDescr iption + "]");
39 39
40 var usingLabel = getAccessibilityObject("using-label"); 40 var usingLabel = getAccessibilityObject("using-label");
41 output("usingLabel.title: [" + usingLabel.title + "]"); 41 output("usingLabel.deprecatedTitle: [" + usingLabel.deprecatedTitle + "] ");
42 output("usingLabel.description: [" + usingLabel.description + "]"); 42 output("usingLabel.deprecatedDescription: [" + usingLabel.deprecatedDes cription + "]");
43 43
44 var usingLabelledby = getAccessibilityObject("using-labelledby"); 44 var usingLabelledby = getAccessibilityObject("using-labelledby");
45 output("usingLabelledby.title: [" + usingLabelledby.title + "]"); 45 output("usingLabelledby.deprecatedTitle: [" + usingLabelledby.deprecated Title + "]");
46 output("usingLabelledby.description: [" + usingLabelledby.description + "]"); 46 output("usingLabelledby.deprecatedDescription: [" + usingLabelledby.dep recatedDescription + "]");
47 47
48 var usingLabeledby = getAccessibilityObject("using-labeledby"); 48 var usingLabeledby = getAccessibilityObject("using-labeledby");
49 output("usingLabeledby.title: [" + usingLabeledby.title + "]"); 49 output("usingLabeledby.deprecatedTitle: [" + usingLabeledby.deprecatedTi tle + "]");
50 output("usingLabeledby.description: [" + usingLabeledby.description + " ]"); 50 output("usingLabeledby.deprecatedDescription: [" + usingLabeledby.depre catedDescription + "]");
51 } 51 }
52 52
53 successfullyParsed = true; 53 successfullyParsed = true;
54 </script> 54 </script>
55 55
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698