Changeset 241307 in webkit
- Timestamp:
- Feb 12, 2019, 11:51:02 AM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
accessibility/loading-iframe-sends-notification-expected.txt (modified) (1 diff)
-
accessibility/loading-iframe-sends-notification.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r241298 r241307 1 2019-02-12 Chris Fleizach <cfleizach@apple.com> 2 3 AX: Fix flaky accessibility/loading-iframe-sends-notification.html 4 https://bugs.webkit.org/show_bug.cgi?id=194546 5 6 Reviewed by Zalan Bujtas. 7 8 This test was relying on timing between load events being sent and accessibility events being sent. 9 We don't need to do that, we can more directly test this interplay. 10 11 * accessibility/loading-iframe-sends-notification-expected.txt: 12 * accessibility/loading-iframe-sends-notification.html: 13 1 14 2019-02-12 Adrian Perez de Castro <aperez@igalia.com> 2 15 -
trunk/LayoutTests/accessibility/loading-iframe-sends-notification-expected.txt
r102877 r241307 14 14 Got notification on iframe. 15 15 PASS findByAccessibleTitleSubstring(root, 'InnerButton') != null is true 16 PASS gotIframeNotification is true17 16 PASS successfullyParsed is true 18 17 -
trunk/LayoutTests/accessibility/loading-iframe-sends-notification.html
r211573 r241307 43 43 function runTest() 44 44 { 45 window.gotIframeNotification = false;46 47 45 if (window.accessibilityController) { 48 46 window.root = accessibilityController.rootElement; … … 60 58 61 59 debug("Got notification on iframe."); 62 gotIframeNotification = true;63 60 64 61 // Check that the button within the iframe is now reachable from the root. 65 62 shouldBeTrue("findByAccessibleTitleSubstring(root, 'InnerButton') != null"); 63 accessibilityController.removeNotificationListener(); 64 finishJSTest(); 66 65 }); 67 66 } 68 67 69 68 window.iframeElement = document.getElementById("iframe"); 70 iframeElement.addEventListener("load", function() {71 window.setTimeout(function() {72 shouldBeTrue("gotIframeNotification");73 if (window.accessibilityController)74 accessibilityController.removeNotificationListener();75 76 finishJSTest();77 }, 10);78 }, false);79 69 80 70 // Load content into the iframe. This will trigger the event
Note:
See TracChangeset
for help on using the changeset viewer.