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

Side by Side Diff: content/test/data/accessibility/html/iframe-coordinates.html

Issue 1552683002: Enable DumpAccessibilityTree tests to use cross-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline last Android test Created 4 years, 11 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 <!-- 1 <!--
2 @MAC-DENY:AXTitle* 2 @MAC-DENY:AXTitle*
3 @MAC-DENY:AXValue* 3 @MAC-DENY:AXValue*
4 @MAC-ALLOW:position* 4 @MAC-ALLOW:position*
5 @MAC-ALLOW:size* 5 @MAC-ALLOW:size*
6 6
7 @WIN-DENY:title* 7 @WIN-DENY:title*
8 @WIN-ALLOW:location* 8 @WIN-ALLOW:location*
9 @WIN-ALLOW:size=(300, 150) 9 @WIN-ALLOW:size=(300, 150)
10 @WIN-ALLOW:size=(300, 100) 10 @WIN-ALLOW:size=(300, 100)
11 @WIN-ALLOW:size=(250, 50) 11 @WIN-ALLOW:size=(250, 50)
12 @WIN-ALLOW:size=(150, 50) 12 @WIN-ALLOW:size=(150, 50)
13 @WIN-ALLOW:IA2_STATE_EDITABLE 13 @WIN-ALLOW:IA2_STATE_EDITABLE
14
15 @BLINK-ALLOW:location*
16 @BLINK-ALLOW:scroll*
17 @BLINK-ALLOW:size=(300, 150)
18 @BLINK-ALLOW:size=(300, 100)
19 @BLINK-ALLOW:size=(250, 50)
20 @BLINK-ALLOW:size=(150, 50)
21
22 These can be removed when bug 532249 is fixed because
23 then the test framework will just wait until all frames
24 have finished loading. Until then we need these because
25 the test doesn't wait for same-process iframes to finish
26 loading.
27 @WAIT-FOR:Ordinary Button
28 @WAIT-FOR:Scrolled Button
14 --> 29 -->
15 <!DOCTYPE html> 30 <!DOCTYPE html>
16 <html> 31 <html>
17 <head> 32 <head>
18 <style> 33 <style>
19 body { 34 body {
20 overflow: hidden; 35 overflow: hidden;
21 } 36 }
22 iframe { 37 iframe {
23 border: 0; 38 border: 0;
(...skipping 14 matching lines...) Expand all
38 Button 53 Button
39 </button> 54 </button>
40 </div> 55 </div>
41 56
42 <div> 57 <div>
43 <button style="margin: 25px; border: 0; width: 250px; height: 50px"> 58 <button style="margin: 25px; border: 0; width: 250px; height: 50px">
44 Button 59 Button
45 </button> 60 </button>
46 </div> 61 </div>
47 62
48 <div><iframe id="frame1" style="width: 300px; height: 100px;" scrolling="no"></i frame></div> 63 <div>
64 <iframe id="frame1" style="width: 300px; height: 100px;"
65 scrolling="no" src="frame/button.html"></iframe>
66 </div>
49 67
50 <div><iframe id="frame2" style="width: 150px; height: 50px;" scrolling="no"></if rame></div> 68 <div>
69 <iframe id="frame2" style="width: 150px; height: 50px;"
70 scrolling="no" src="frame/button_scrolled.html"></iframe>
71 </div>
51 72
52 <script>
53 var frameCode =
54 '<body style="margin: 0; padding: 0;">\n' +
55 '<div style="width: 300px; height: 100px;">\n' +
56 ' <button style="margin: 25px; border: 0; width: 250px; height: 50px">\n' +
57 ' Button\n' +
58 ' </button>\n' +
59 '</div>\n' +
60 '</body>\n';
61
62 function writeFrameCode(frame) {
63 var doc = frame.contentWindow.document;
64 doc.open();
65 doc.write(frameCode);
66 doc.close();
67 }
68
69 var frame1 = document.getElementById('frame1');
70 writeFrameCode(frame1);
71
72 var frame2 = document.getElementById('frame2');
73 writeFrameCode(frame2);
74 frame2.contentWindow.scrollTo(150, 50);
75 </script>
76
77 </body> 73 </body>
78 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698