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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/heading-level.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> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <!-- implicit level of tag --> 6 <!-- implicit level of tag -->
7 <h1 class="ex" data-expected="1">X</h1> 7 <h1 class="ex" data-expected="1">X</h1>
8 <h2 class="ex" data-expected="2">X</h2> 8 <h2 class="ex" data-expected="2">X</h2>
9 <h3 class="ex" data-expected="3">X</h3> 9 <h3 class="ex" data-expected="3">X</h3>
10 <h4 class="ex" data-expected="4">X</h4> 10 <h4 class="ex" data-expected="4">X</h4>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 if (axElement.intValue == parseInt(el.getAttribute('data-expected'))) { 55 if (axElement.intValue == parseInt(el.getAttribute('data-expected'))) {
56 result.innerText += "PASS: level is " + axElement.intValue + ".\n"; 56 result.innerText += "PASS: level is " + axElement.intValue + ".\n";
57 } else { 57 } else {
58 result.innerText += "FAIL: level is " + axElement.intValue + " for " + el.outerHTML + ", expected " + parseInt(el.getAttribute('data-expected')) + " .\n"; 58 result.innerText += "FAIL: level is " + axElement.intValue + " for " + el.outerHTML + ", expected " + parseInt(el.getAttribute('data-expected')) + " .\n";
59 } 59 }
60 el.style.display = 'none'; // Hide each example after verification. 60 el.style.display = 'none'; // Hide each example after verification.
61 } 61 }
62 } 62 }
63 </script> 63 </script>
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698