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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html

Issue 2269043002: Reland of Remove EventSender from HTMLStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove t.step() Created 4 years, 1 month 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/inline-text-changes.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html b/third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html
index 054bb7095187ce4ab417c8e5b1484ef350470839..69b98748efb55d4e85b8e55e9c53b965f3859f0b 100644
--- a/third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html
+++ b/third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html
@@ -17,6 +17,8 @@
description("Tests that accessible inline text boxes update when a static text node changes.");
+ var notificationCalled = false;
+
if (window.accessibilityController) {
testRunner.waitUntilDone();
window.jsTestIsAsync = true;
@@ -35,6 +37,12 @@
// Wait for a notification on the element before checking the new state.
axStaticText.addNotificationListener(function(notification) {
+ // The notification might be called before or after the document
+ // load event. This test allows either cases and ignore subsequent
+ // notifications after the first notification.
+ if (notificationCalled) {
+ return;
+ }
// Make sure the inline text boxes changed.
shouldBe("axStaticText.childrenCount", "3");
window.axInlineAfter0 = axStaticText.childAtIndex(0);
@@ -46,6 +54,8 @@
// Make sure the old object pointing to the second text box is no longer valid.
shouldBe("axInlineBefore1.name", "''");
+
+ notificationCalled = true;
finishJSTest();
});
}

Powered by Google App Engine
This is Rietveld 408576698