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

Unified Diff: LayoutTests/accessibility/table-with-empty-thead-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/table-with-empty-thead-causes-crash.html
diff --git a/LayoutTests/accessibility/table-with-empty-thead-causes-crash.html b/LayoutTests/accessibility/table-with-empty-thead-causes-crash.html
index 5fde24316734b8c06f1a6bd66e836dafd2dec242..23a83a09207fea5981b27f89174cf6c66295b2c6 100644
--- a/LayoutTests/accessibility/table-with-empty-thead-causes-crash.html
+++ b/LayoutTests/accessibility/table-with-empty-thead-causes-crash.html
@@ -1,17 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
-<script>
-
- function buildAccessibilityTree(accessibilityObject) {
- accessibilityObject.isEnabled
-
- 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>
@@ -21,6 +12,7 @@
<tr><td>1</td><td>2</td></tr>
</table>
+<p>End of test</p>
<p id="description"></p>
<div id="console"></div>
@@ -29,7 +21,7 @@
if (window.accessibilityController) {
document.body.focus();
- buildAccessibilityTree(accessibilityController.focusedElement);
+ buildAccessibilityTree(accessibilityController.focusedElement, 0, 0, ['AXColumn', 'AXTableHeaderContainer']);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698