Bug 926830 - Test cleanup for plugin enabledState usage, dom/plugins. r=bsmedberg
☠☠ backed out by 0eb667c32670 ☠ ☠
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Mon, 17 Feb 2014 15:57:37 +0100
changeset 170187 9112c3abc3eaf65a6e6770ad3063dd081a535fab
parent 170186 f2cade11e3c086de118a03b99fb8445d41b9c201
child 170188 4efc93b3c34534562723166e76f733826c4c0df2
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersbsmedberg
bugs926830
milestone30.0a1
Bug 926830 - Test cleanup for plugin enabledState usage, dom/plugins. r=bsmedberg
dom/plugins/test/mochitest/test_idle_hang.xul
--- a/dom/plugins/test/mochitest/test_idle_hang.xul
+++ b/dom/plugins/test/mochitest/test_idle_hang.xul
@@ -7,17 +7,17 @@
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   <title>Plugin Idle Hang Test</title>
   <script type="application/javascript"
           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
   <script type="application/javascript"
           src="http://mochi.test:8888/chrome/dom/plugins/test/mochitest/hang_test.js" />
   <script type="application/javascript" src="utils.js"></script>
   <script type="application/javascript">
-    getTestPlugin().enabledState = Ci.nsIPluginTag.STATE_ENABLED;
+    setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED);
   </script>
 <body xmlns="http://www.w3.org/1999/xhtml" onload="runTests()">
 <embed id="plugin1" type="application/x-test" width="200" height="200"></embed>
 </body>
 <script class="testbody" type="application/javascript">
 <![CDATA[
 SimpleTest.waitForExplicitFinish();