mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1213710 part 3 - Remove enableTestPlugin.js files and make the tests reference plugin-utils.js directly. r=bsmedberg
--HG-- extra : source : 985fc6ba41c30914969940c30dd5a07c3f19f157
This commit is contained in:
parent
b93799ba92
commit
ba639e3e07
@ -1,25 +0,0 @@
|
||||
// this automatically sets the test plugin to be enabled (not e.g. click-to-play)
|
||||
// and resets this afterwards
|
||||
|
||||
(function() {
|
||||
function getTestPlugin(aPluginName) {
|
||||
var ph = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPluginHost);
|
||||
var tags = ph.getPluginTags();
|
||||
for (var tag of tags) {
|
||||
if (tag.name == aPluginName) {
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
|
||||
ok(false, "Could not find plugin tag with plugin name '" + name + "'");
|
||||
return null;
|
||||
}
|
||||
|
||||
var plugin = getTestPlugin("Test Plug-in");
|
||||
var oldEnabledState = plugin.enabledState;
|
||||
plugin.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;
|
||||
SimpleTest.registerCleanupFunction(function() {
|
||||
getTestPlugin("Test Plug-in").enabledState = oldEnabledState;
|
||||
});
|
||||
})();
|
@ -16,7 +16,10 @@ Test plugins with DOM full-screen API:
|
||||
<title>Test for Bug 545812</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<script type="application/javascript" src="file_fullscreen-utils.js"></script>
|
||||
<style>
|
||||
body:-moz-full-screen, div:-moz-full-screen {
|
||||
|
@ -36,7 +36,7 @@ support-files =
|
||||
bug499092.html
|
||||
bug499092.xml
|
||||
bug514856_iframe.html
|
||||
enableTestPlugin.js
|
||||
../../plugins/test/mochitest/plugin-utils.js
|
||||
test_non-ascii-cookie.html^headers^
|
||||
file_bug209275_1.html
|
||||
file_bug209275_2.html
|
||||
@ -482,7 +482,7 @@ skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #time out on b2g desktop spec
|
||||
[test_iframe_sandbox_navigation2.html]
|
||||
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #time out on b2g desktop specific
|
||||
[test_iframe_sandbox_plugins.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
[test_iframe_sandbox_popups.html]
|
||||
skip-if = buildapp == 'b2g' # b2g(multiple concurrent window.open()s fail on B2G) b2g-debug(multiple concurrent window.open()s fail on B2G) b2g-desktop(Bug 931116, b2g desktop specific, initial triage)
|
||||
[test_iframe_sandbox_popups_inheritance.html]
|
||||
@ -512,7 +512,7 @@ skip-if = (buildapp == 'b2g' && (toolkit != 'gonk' || debug)) # b2g-debug(Perma-
|
||||
[test_nested_invalid_fieldsets.html]
|
||||
[test_object_attributes_reflection.html]
|
||||
[test_object_plugin_nav.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s #TIMED_OUT # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
[test_ol_attributes_reflection.html]
|
||||
[test_option_defaultSelected.html]
|
||||
[test_option_selected_state.html]
|
||||
|
@ -8,7 +8,10 @@ Implement HTML5 sandbox attribute for IFRAMEs
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 341604 - plugins</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<script type="application/javascript">
|
||||
|
@ -8,7 +8,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=720130
|
||||
<title>Test for Bug 720130</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="application/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,25 +0,0 @@
|
||||
// this automatically sets the test plugin to be enabled (not e.g. click-to-play)
|
||||
// and resets this afterwards
|
||||
|
||||
(function() {
|
||||
function getTestPlugin(aPluginName) {
|
||||
var ph = SpecialPowers.Cc["@mozilla.org/plugin/host;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPluginHost);
|
||||
var tags = ph.getPluginTags();
|
||||
for (var tag of tags) {
|
||||
if (tag.name == aPluginName) {
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
|
||||
ok(false, "Could not find plugin tag with plugin name '" + name + "'");
|
||||
return null;
|
||||
}
|
||||
|
||||
var plugin = getTestPlugin("Test Plug-in");
|
||||
var oldEnabledState = plugin.enabledState;
|
||||
plugin.enabledState = SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED;
|
||||
SimpleTest.registerCleanupFunction(function() {
|
||||
getTestPlugin("Test Plug-in").enabledState = oldEnabledState;
|
||||
});
|
||||
})();
|
@ -10,7 +10,7 @@ support-files =
|
||||
bug369950-subframe.xml
|
||||
file_bug842853.sjs
|
||||
file_bug842853.html
|
||||
enableTestPlugin.js
|
||||
../../../dom/plugins/test/mochitest/plugin-utils.js
|
||||
bug558663.html
|
||||
bug644768.html
|
||||
bug956530-1.html
|
||||
@ -178,7 +178,7 @@ skip-if = (buildapp == 'b2g' && toolkit != 'gonk') # bug 1040987
|
||||
skip-if = e10s # bug 1020135, nested oop iframes not supported
|
||||
support-files = bug921928_event_target_iframe_apps_oop.html
|
||||
[test_mozPaintCount.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(depends on plugins support) b2g-debug(depends on plugins support) b2g-desktop(depends on plugins support)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(depends on plugins support) b2g-debug(depends on plugins support) b2g-desktop(depends on plugins support)
|
||||
[test_scroll_event_ordering.html]
|
||||
[test_scroll_snapping.html]
|
||||
skip-if = buildapp == 'android' # bug 1041833
|
||||
@ -192,7 +192,7 @@ support-files = bug968148_inner.html
|
||||
[test_bug603550.html]
|
||||
skip-if = buildapp == 'b2g' || toolkit == 'android' #TIMED_OUT # b2g(Components.classes[@mozilla.org/widget/dragservice;1] is undefined) b2g-debug(Components.classes[@mozilla.org/widget/dragservice;1] is undefined) b2g-desktop(Components.classes[@mozilla.org/widget/dragservice;1] is undefined)
|
||||
[test_bug629838.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(depends on plugins support) b2g-debug(depends on plugins support) b2g-desktop(depends on plugins support)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(depends on plugins support) b2g-debug(depends on plugins support) b2g-desktop(depends on plugins support)
|
||||
[test_bug646757.html]
|
||||
[test_bug718809.html]
|
||||
[test_bug725426.html]
|
||||
|
@ -3,7 +3,10 @@
|
||||
<head>
|
||||
<title>Tests for MozAfterPaint</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
@ -3,7 +3,10 @@
|
||||
<head>
|
||||
<title>Tests for mozPaintCount</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body onload="doBackgroundFlicker()">
|
||||
|
@ -3,7 +3,7 @@ skip-if = toolkit == 'android' #CRASH_DUMP, RANDOM, ONLY IN CHUNK 10
|
||||
support-files =
|
||||
../../reftests/backgrounds/blue-32x32.png
|
||||
../../reftests/backgrounds/fuchsia-32x32.png
|
||||
../../base/tests/enableTestPlugin.js
|
||||
../../../dom/plugins/test/mochitest/plugin-utils.js
|
||||
plugin_clipping_helper.xhtml
|
||||
plugin_clipping_helper2.xhtml
|
||||
plugin_clipping_helper_transformed.xhtml
|
||||
@ -104,7 +104,7 @@ skip-if = os=='win'
|
||||
[test_image_selection.html]
|
||||
[test_image_selection_2.html]
|
||||
[test_invalidate_during_plugin_paint.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
[test_movement_by_characters.html]
|
||||
[test_movement_by_words.html]
|
||||
# Disable the caret movement by word test on Linux because the shortcut keys
|
||||
@ -124,9 +124,9 @@ skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || e10s #Bug 931116, b2g desk
|
||||
[test_plugin_clipping_table.xhtml]
|
||||
skip-if = (buildapp == 'b2g' && toolkit != 'gonk') || e10s #Bug 931116, b2g desktop specific, initial triage
|
||||
[test_plugin_focus.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || e10s # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
[test_plugin_mouse_coords.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g' || toolkit == 'android' # b2g(plugins not supported) b2g-debug(plugins not supported) b2g-desktop(plugins not supported)
|
||||
[test_plugin_position.xhtml]
|
||||
skip-if = e10s
|
||||
[test_scroll_behavior.html]
|
||||
|
@ -3,7 +3,10 @@
|
||||
<head>
|
||||
<title>Test handling plugins invalidating during paint</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="text/javascript" src="plugin-utils.js"></script>
|
||||
<script type="text/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
<style>
|
||||
embed { width:200px; height:200px; display:block; }
|
||||
|
@ -1,7 +1,10 @@
|
||||
<html title="Test plugin focus control">
|
||||
<head>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
@ -4,7 +4,10 @@
|
||||
<title>Test delivering mouse events to plugins</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="enableTestPlugin.js"></script>
|
||||
<script type="application/javascript" src="plugin-utils.js"></script>
|
||||
<script type="application/javascript">
|
||||
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
<style>
|
||||
embed { width:200px; height:200px; display:block; }
|
||||
|
Loading…
Reference in New Issue
Block a user