| 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();
|
| }
|
|
|