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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html

Issue 2957733002: Only call TextChanged on existing AXObjects. This avoids triggering the code which calls UpdateDist… (Closed)
Patch Set: Created 3 years, 6 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: third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html b/third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html
index dda6c19c961f51e9463a7394d7e3499ae609ea6d..487f3969b27afbb8fb0240d68113d7341ca33ce7 100644
--- a/third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html
+++ b/third_party/WebKit/LayoutTests/accessibility/contenteditable-notifications.html
@@ -2,6 +2,7 @@
<html>
<head>
<script src="../resources/js-test.js"></script>
+<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
@@ -15,6 +16,9 @@ window.jsTestIsAsync = true;
if (window.testRunner && window.accessibilityController) {
testRunner.dumpAsText();
+ // Ensure entire a11y tree has already been seen.
+ traverseAccessibilityTree(accessibilityController.rootElement);
+
// Focus the contenteditable text box and move the cursor to the end.
var textbox = document.getElementById("textbox");
textbox.focus();
@@ -38,7 +42,7 @@ if (window.testRunner && window.accessibilityController) {
else if (notification == "SelectedTextChanged")
selectedTextChangedCount++;
- if (valueChangedCount == 8 && selectedTextChangedCount == 6) {
+ if (valueChangedCount >= 8 && selectedTextChangedCount >= 4) {
textbox.style.display = "none";
finishJSTest();
}

Powered by Google App Engine
This is Rietveld 408576698