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: LayoutTests/accessibility/div-within-anchors-causes-crash.html

Issue 876003003: Extract buildAccessibilityTree() from the individual layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated some tests and added rolesToIgnore param to helper function. Created 5 years, 11 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
Index: LayoutTests/accessibility/div-within-anchors-causes-crash.html
diff --git a/LayoutTests/accessibility/div-within-anchors-causes-crash.html b/LayoutTests/accessibility/div-within-anchors-causes-crash.html
index d21ee22af9a966f4b868aae876ef0b6149d0bb5a..6188a64dad777a733a11d2b13cc6c69bec6135a9 100644
--- a/LayoutTests/accessibility/div-within-anchors-causes-crash.html
+++ b/LayoutTests/accessibility/div-within-anchors-causes-crash.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
-<script>
+<!-- <script>
function buildAccessibilityTree(accessibilityObject, indent) {
var str = "";
@@ -23,8 +23,9 @@
return true;
}
-</script>
-<script src="../resources/js-test.js"></script>
+</script> -->
+<script src="../resources/js-test.js"></script>
+<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
@@ -36,8 +37,6 @@
<div>End of test</div>
-<pre id="tree"></pre>
-
<p id="description"></p>
<div id="console"></div>
@@ -46,7 +45,7 @@
if (window.accessibilityController) {
// First build up full accessibility tree.
- document.getElementById("tree").innerText += "Before:\n";
+ document.getElementById("console").innerText += "Before:\n";
document.body.focus();
buildAccessibilityTree(accessibilityController.focusedElement, 0);
@@ -54,7 +53,7 @@
document.body.removeChild(document.body.children[2])
// Build up full accessibility tree again.
- document.getElementById("tree").innerText += "After:\n";
+ document.getElementById("console").innerText += "After:\n";
document.body.focus();
buildAccessibilityTree(accessibilityController.focusedElement, 0);
}

Powered by Google App Engine
This is Rietveld 408576698