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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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/loading-iframe-sends-notification.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html b/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html
deleted file mode 100644
index 203b03cde2b1f543f77d9fa60fc7fc838b9cd900..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-sends-notification.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-
-<p>Before</p>
-
-<iframe id="iframe" title="InnerFrame"></iframe>
-
-<p>After</p>
-
-<p>End of test</p>
-
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
- description("This tests that when an iframe finishes loading, it sends a notification.");
-
- if (window.testRunner)
- testRunner.waitUntilDone();
- else
- debug("This test requires window.accessibilityController and must be run in content_shell with --run-layout-test.")
-
- window.jsTestIsAsync = true;
-
- function runTest()
- {
- if (window.accessibilityController) {
- // Initially, the iframe should not be loaded, so we shouldn't be able to find this button.
- shouldBeUndefined("accessibilityController.accessibleElementById('innerbutton')");
-
- window.accessibilityController.addNotificationListener(function (target, notification) {
- if (!target.parentElement())
- return;
-
- // Ignore this notification if it's not within the subtree of the iframe.
- var frameTarget = target.parentElement();
- if (frameTarget.name.indexOf("InnerFrame") == -1)
- return;
-
- // Even still we'll get LayoutComplete notifications sooner than we want.
- if (!accessibilityController.accessibleElementById('innerbutton'))
- return;
-
- // Check that the button within the iframe is now reachable from the root.
- shouldBeDefined("accessibilityController.accessibleElementById('innerbutton')");
- if (window.accessibilityController)
- accessibilityController.removeNotificationListener();
-
- finishJSTest();
- });
- }
-
- // Load content into the iframe. This will trigger the event
- // handler above, which will check that the accessibility tree
- // was updated with new content.
- document.getElementById("iframe").src = "data:text/html,<body><button id='innerbutton'>InnerButton</button></body>";
- }
- window.addEventListener('load', runTest);
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698