Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?> |
michael@0 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables"> |
michael@0 | 4 | <head> |
michael@0 | 5 | <style> |
michael@0 | 6 | embed { width:300px; height:200px; display:block; } |
michael@0 | 7 | </style> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | |
michael@0 | 11 | <!-- Use a XUL element here so we can get its boxObject.screenX/Y --> |
michael@0 | 12 | <hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1" |
michael@0 | 13 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 14 | <hbox style="width:100px;"></hbox><hbox id="h2"/> |
michael@0 | 15 | </hbox> |
michael@0 | 16 | |
michael@0 | 17 | <embed id="p1" type="application/x-test" wmode="window" |
michael@0 | 18 | style="position:absolute; top:0; left:0;"></embed> |
michael@0 | 19 | <table style="width:300px; height:100px; position:absolute; top:100px; left:0; background:white;"> |
michael@0 | 20 | </table> |
michael@0 | 21 | <embed id="p2" type="application/x-test" wmode="window" |
michael@0 | 22 | style="position:absolute; top:200px; left:0;"></embed> |
michael@0 | 23 | <table style="width:300px; height:300px; position:absolute; top:300px; left:0; background:white; border-collapse:collapse;"> |
michael@0 | 24 | </table> |
michael@0 | 25 | |
michael@0 | 26 | <script src="plugin_clipping_lib.js"></script> |
michael@0 | 27 | <script class="testbody" type="application/javascript"> |
michael@0 | 28 | <![CDATA[ |
michael@0 | 29 | |
michael@0 | 30 | function runTests() { |
michael@0 | 31 | // p1 is partially covered by a table with an opaque background |
michael@0 | 32 | checkClipRegion("p1", [[0, 0, 300, 100]]); |
michael@0 | 33 | // p2 is partially covered by a table with an opaque background |
michael@0 | 34 | checkClipRegion("p2", [[0, 0, 300, 100]]); |
michael@0 | 35 | |
michael@0 | 36 | window.opener.SimpleTest.finish(); |
michael@0 | 37 | window.close(); |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | ]]> |
michael@0 | 41 | </script> |
michael@0 | 42 | |
michael@0 | 43 | </body> |
michael@0 | 44 | </html> |