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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/scroll-div-sends-notification.html

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Single quote Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <style> 5 <style>
6 .container { 6 .container {
7 padding: 100px; 7 padding: 100px;
8 margin: 100px; 8 margin: 100px;
9 border: 1px solid #000; 9 border: 1px solid #000;
10 height: 900px; 10 height: 900px;
(...skipping 19 matching lines...) Expand all
30 30
31 description("This test ensures that scrolling the window sends a notification.") ; 31 description("This test ensures that scrolling the window sends a notification.") ;
32 window.jsTestIsAsync = true; 32 window.jsTestIsAsync = true;
33 33
34 if (window.testRunner && window.accessibilityController) { 34 if (window.testRunner && window.accessibilityController) {
35 testRunner.dumpAsText(); 35 testRunner.dumpAsText();
36 36
37 var container = document.getElementById('container'); 37 var container = document.getElementById('container');
38 38
39 accessibilityController.addNotificationListener(function (target, notificati on) { 39 accessibilityController.addNotificationListener(function (target, notificati on) {
40 if (target.role == 'AXRole: AXDiv') { 40 if (target.role == 'AXRole: AXGenericContainer') {
41 debug('Got notification on container div'); 41 debug('Got notification on container div');
42 shouldBe("container.scrollTop", "500"); 42 shouldBe("container.scrollTop", "500");
43 accessibilityController.removeNotificationListener(); 43 accessibilityController.removeNotificationListener();
44 finishJSTest(); 44 finishJSTest();
45 } 45 }
46 }); 46 });
47 47
48 window.setTimeout(function() { 48 window.setTimeout(function() {
49 container.scrollTop = 500; 49 container.scrollTop = 500;
50 }, 0); 50 }, 0);
51 } 51 }
52 52
53 </script> 53 </script>
54 54
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698