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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/loading-iframe-updates-axtree.html

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix issues in AutomationApiTest.Events Created 5 years, 3 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-updates-axtree.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-updates-axtree.html b/third_party/WebKit/LayoutTests/accessibility/loading-iframe-updates-axtree.html
deleted file mode 100644
index 141d67ef19638bfed97ecd492df2a2204f3801ed..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/accessibility/loading-iframe-updates-axtree.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-
- <script>
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- function runTest()
- {
- description("This tests that if an iframe loads new content after its accessibility object has already been accessed, the iframe accessibility object's descendants are the new scroll area and web area, not the old deleted ones.");
-
- if (window.accessibilityController) {
- window.iframe = accessibilityController.accessibleElementById('iframe');
- window.scrollarea = iframe.childAtIndex(0);
- window.subwebarea = scrollarea.childAtIndex(0);
- }
-
- window.iframeElement = document.getElementById("iframe");
- iframeElement.addEventListener("load", function() {
- if (window.accessibilityController) {
- window.newIframe = accessibilityController.accessibleElementById('iframe');
- window.newScrollarea = newIframe.childAtIndex(0);
- window.newSubwebarea = newScrollarea.childAtIndex(0);
-
- shouldBeTrue("iframe.isEqual(newIframe)");
- shouldBeFalse("scrollarea.isEqual(newScrollarea)");
- shouldBeFalse("subwebarea.isEqual(newSubwebarea)");
- shouldBeTrue("newSubwebarea.childrenCount > 0");
- }
-
- debug('<br /><span class="pass">TEST COMPLETE</span>');
- if (window.testRunner)
- testRunner.notifyDone();
- }, false);
-
- // Load content into the iframe. This will trigger the event
- // handler above, which will check that the accessibility tree
- // was updated with new content.
- window.iframeElement.src = "data:text/html,<body><button>Click me</button></body>";
-
- }
-
- window.addEventListener('load', function() {
- runTest();
- }, false);
-
- </script>
-</head>
-<body>
-
-<p>Before</p>
-
-<iframe id="iframe" role="group"></iframe>
-
-<p>After</p>
-
-<p>End of test</p>
-
-<p id="description"></p>
-<div id="console"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698