mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 899080 - Test fixup part 6 - widget. r=roc
This commit is contained in:
parent
e5ad830d3e
commit
44d14ac92e
@ -12,6 +12,17 @@
|
||||
href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<script type="application/javascript">
|
||||
var pluginHost = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPluginHost);
|
||||
var pluginTags = pluginHost.getPluginTags();
|
||||
for (var tag of pluginTags) {
|
||||
if (tag.name == "Test Plug-in") {
|
||||
tag.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<p id="display">
|
||||
<embed id="plugin" type="application/x-test" wmode="opaque">
|
||||
</p>
|
||||
|
@ -7,6 +7,17 @@
|
||||
href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body onload="setTimeout(runTests, 0)">
|
||||
<script type="application/javascript">
|
||||
var pluginHost = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPluginHost);
|
||||
var pluginTags = pluginHost.getPluginTags();
|
||||
for (var tag of pluginTags) {
|
||||
if (tag.name == "Test Plug-in") {
|
||||
tag.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<p id="display">
|
||||
<div style="overflow:hidden; height:100px;" id="scroll">
|
||||
<embed type="application/x-test" wmode="window" width="100" height="800" id="plugin"></object>
|
||||
|
@ -6,6 +6,17 @@
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body onload="initialize()">
|
||||
<script type="application/javascript">
|
||||
var pluginHost = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPluginHost);
|
||||
var pluginTags = pluginHost.getPluginTags();
|
||||
for (var tag of pluginTags) {
|
||||
if (tag.name == "Test Plug-in") {
|
||||
tag.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<p id="display">
|
||||
<iframe id="i" src="plugin_scroll_invalidation.html"
|
||||
width="50" height="50" scrolling="no"></iframe>
|
||||
|
Loading…
Reference in New Issue
Block a user