mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 339548. Part 15: test overlaying an opaque-background table over a plugin.
This commit is contained in:
parent
edefa6fb61
commit
efcac1ea7f
@ -54,6 +54,7 @@ _TEST_FILES = \
|
||||
plugin_clipping_helper.xhtml \
|
||||
plugin_clipping_helper2.xhtml \
|
||||
plugin_clipping_helper_transformed.xhtml \
|
||||
plugin_clipping_helper_table.xhtml \
|
||||
plugin_clipping_lib.js \
|
||||
test_backspace_delete.xul \
|
||||
test_bug263683.html \
|
||||
@ -88,6 +89,7 @@ _TEST_FILES = \
|
||||
test_plugin_clipping.xhtml \
|
||||
test_plugin_clipping2.xhtml \
|
||||
test_plugin_clipping_transformed.xhtml \
|
||||
test_plugin_clipping_table.xhtml \
|
||||
test_plugin_position.xhtml \
|
||||
test_selection_underline.html \
|
||||
$(NULL)
|
||||
|
43
layout/generic/test/plugin_clipping_helper_table.xhtml
Normal file
43
layout/generic/test/plugin_clipping_helper_table.xhtml
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
|
||||
<head>
|
||||
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<style>
|
||||
embed { width:300px; height:200px; display:block; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Use a XUL element here so we can get its boxObject.screenX/Y -->
|
||||
<hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox style="width:100px;"></hbox><hbox id="h2"/>
|
||||
</hbox>
|
||||
|
||||
<embed id="p1" type="application/x-test" wmode="window"
|
||||
style="position:absolute; top:0; left:0;"></embed>
|
||||
<table style="width:300px; height:100px; position:absolute; top:100px; left:0; background:white;">
|
||||
</table>
|
||||
<embed id="p2" type="application/x-test" wmode="window"
|
||||
style="position:absolute; top:200px; left:0;"></embed>
|
||||
<table style="width:300px; height:300px; position:absolute; top:300px; left:0; background:white; border-collapse:collapse;">
|
||||
</table>
|
||||
|
||||
<script src="plugin_clipping_lib.js"></script>
|
||||
<script class="testbody" type="application/javascript">
|
||||
<![CDATA[
|
||||
|
||||
function runTests() {
|
||||
// p1 is partially covered by a table with an opaque background
|
||||
checkClipRegion("p1", [[0, 0, 300, 100]]);
|
||||
// p2 is partially covered by a table with an opaque background
|
||||
checkClipRegion("p2", [[0, 0, 300, 100]]);
|
||||
}
|
||||
|
||||
]]>
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
46
layout/generic/test/plugin_clipping_helper_table.xhtml.rej
Normal file
46
layout/generic/test/plugin_clipping_helper_table.xhtml.rej
Normal file
@ -0,0 +1,46 @@
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,43 ----
|
||||
+ <?xml version="1.0"?>
|
||||
+ <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
|
||||
+ <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
|
||||
+ <head>
|
||||
+ <script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||||
+ <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
+ <style>
|
||||
+ embed { width:300px; height:200px; display:block; }
|
||||
+ </style>
|
||||
+ </head>
|
||||
+ <body>
|
||||
+
|
||||
+ <!-- Use a XUL element here so we can get its boxObject.screenX/Y -->
|
||||
+ <hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1"
|
||||
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
+ <hbox style="width:100px;"></hbox><hbox id="h2"/>
|
||||
+ </hbox>
|
||||
+
|
||||
+ <embed id="p1" type="application/x-test" wmode="window"
|
||||
+ style="position:absolute; top:0; left:0;"></embed>
|
||||
+ <table style="width:300px; height:100px; position:absolute; top:100px; left:0; background:white;">
|
||||
+ </table>
|
||||
+ <embed id="p2" type="application/x-test" wmode="window"
|
||||
+ style="position:absolute; top:200px; left:0;"></embed>
|
||||
+ <table style="width:300px; height:300px; position:absolute; top:300px; left:0; background:white; border-collapse:collapse;">
|
||||
+ </table>
|
||||
+
|
||||
+ <script src="plugin_clipping_lib.js"></script>
|
||||
+ <script class="testbody" type="application/javascript">
|
||||
+ <![CDATA[
|
||||
+
|
||||
+ function runTests() {
|
||||
+ // p1 is partially covered by a table with an opaque background
|
||||
+ checkClipRegion("p1", [[0, 0, 300, 100]]);
|
||||
+ // p2 is partially covered by a table with an opaque background
|
||||
+ checkClipRegion("p2", [[0, 0, 300, 100]]);
|
||||
+ }
|
||||
+
|
||||
+ ]]>
|
||||
+ </script>
|
||||
+
|
||||
+ </body>
|
||||
+ </html>
|
18
layout/generic/test/test_plugin_clipping_table.xhtml
Normal file
18
layout/generic/test/test_plugin_clipping_table.xhtml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
|
||||
<head>
|
||||
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script class="testbody" type="application/javascript">
|
||||
<![CDATA[
|
||||
window.open("plugin_clipping_helper_table.xhtml", "", "width=620,height=320");
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
]]>
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
21
layout/generic/test/test_plugin_clipping_table.xhtml.rej
Normal file
21
layout/generic/test/test_plugin_clipping_table.xhtml.rej
Normal file
@ -0,0 +1,21 @@
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,18 ----
|
||||
+ <?xml version="1.0"?>
|
||||
+ <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
|
||||
+ <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
|
||||
+ <head>
|
||||
+ <script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||||
+ <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
+ </head>
|
||||
+ <body>
|
||||
+
|
||||
+ <script class="testbody" type="application/javascript">
|
||||
+ <![CDATA[
|
||||
+ window.open("plugin_clipping_helper_table.xhtml", "", "width=620,height=320");
|
||||
+ SimpleTest.waitForExplicitFinish();
|
||||
+ ]]>
|
||||
+ </script>
|
||||
+
|
||||
+ </body>
|
||||
+ </html>
|
Loading…
Reference in New Issue
Block a user