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

Unified Diff: LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.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
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-tables.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.html
diff --git a/LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.html b/LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.html
index 72b884b5d0f68d49b14849101893c513113c3d91..659fdcaca0773edb487cb0ef98fe53c7fc0a9d20 100644
--- a/LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.html
+++ b/LayoutTests/accessibility/adjacent-continuations-cause-assertion-failure.html
@@ -1,30 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
-<script>
-
- function buildAccessibilityTree(accessibilityObject, indent) {
- var str = "";
- for (var i = 0; i < indent; i++)
- str += " ";
- str += accessibilityObject.role;
- str += " " + accessibilityObject.stringValue;
- str += "\n";
- document.getElementById("tree").innerText += str;
-
- if (accessibilityObject.stringValue.indexOf('End of test') >= 0)
- return false;
-
- var count = accessibilityObject.childrenCount;
- for (var i = 0; i < count; ++i) {
- if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1))
- return false;
- }
-
- return true;
- }
-</script>
<script src="../resources/js-test.js"></script>
+<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
@@ -33,7 +11,6 @@
<div>End of test</div>
<p id="description"></p>
-<pre id="tree"></pre>
<div id="console"></div>
<script>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-tables.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698