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

Unified Diff: LayoutTests/accessibility/first-letter-text-transform-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/first-letter-text-transform-causes-crash.html
diff --git a/LayoutTests/accessibility/first-letter-text-transform-causes-crash.html b/LayoutTests/accessibility/first-letter-text-transform-causes-crash.html
index 88e1bcadcacbce756017138f404f72019ea18fb4..6da4e81416c3adeeef58699a0a7835df06ecaee2 100644
--- a/LayoutTests/accessibility/first-letter-text-transform-causes-crash.html
+++ b/LayoutTests/accessibility/first-letter-text-transform-causes-crash.html
@@ -4,20 +4,13 @@
<style>
dt:first-letter{text-transform:uppercase;}
</style>
-<script>
-
- function buildAccessibilityTree(accessibilityObject) {
- var count = accessibilityObject.childrenCount;
- for (var i = 0; i < count; ++i)
- buildAccessibilityTree(accessibilityObject.childAtIndex(i));
- }
-</script>
<script src="../resources/js-test.js"></script>
+<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
<dt>dt</dt>
-
+<p>End of test</p>
<p id="description"></p>
<div id="console"></div>
@@ -30,7 +23,7 @@
if (window.accessibilityController) {
// Build up full accessibility tree.
document.body.focus();
- buildAccessibilityTree(accessibilityController.focusedElement);
+ buildAccessibilityTree(accessibilityController.focusedElement, 0);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698