Author: yradtsevich
Date: 2011-06-07 07:28:47 -0400 (Tue, 07 Jun 2011)
New Revision: 31875
Added:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/NullpluginTest_JBIDE8792.java
Removed:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/Nullplugin_JBIDE8792.java
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XulRunnerAllTests.java
Log:
https://issues.jboss.org/browse/JBIDE-8792 : Install flash plugin message appears in VPE
if on page used flash references
- minor fix, class renamed: NullpluginTest_JBIDE8792->Nullplugin_JBIDE8792
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/NullpluginTest_JBIDE8792.java
(from rev 31826,
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/Nullplugin_JBIDE8792.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/NullpluginTest_JBIDE8792.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/NullpluginTest_JBIDE8792.java 2011-06-07
11:28:47 UTC (rev 31875)
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.xulrunner.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser;
+import org.osgi.framework.Bundle;
+
+/**
+ * Check that there is no nullplugin in the XULRunner bundle.
+ * <p>
+ * The nullplugin is the default plug-in for Adobe Flash. The
+ * presence of it is undesirable for VPE, because it shows annoying
+ * message suggesting to download Adobe Flash plugin.
+ *
+ * @see <a
href="https://issues.jboss.org/browse/JBIDE-8792">JBIDE-8792...
+ * @author Yahor Radtsevich
+ */
+public class NullpluginTest_JBIDE8792 extends TestCase {
+ public void testNullplugin() {
+ Bundle xulRunnerBundle = Platform.getBundle(XulRunnerBrowser.getXulRunnerBundle());
+ assertTrue("Nullplugin is found, but it should not be there.",
+ xulRunnerBundle.getResource("xulrunner/plugins/libnullplugin.so") == null
&&
+ xulRunnerBundle.getResource("xulrunner/plugins/npnul32.dll") == null);
+ }
+}
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/Nullplugin_JBIDE8792.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/Nullplugin_JBIDE8792.java 2011-06-07
09:09:02 UTC (rev 31874)
+++
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/Nullplugin_JBIDE8792.java 2011-06-07
11:28:47 UTC (rev 31875)
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007-2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.vpe.xulrunner.test;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Platform;
-import org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser;
-import org.osgi.framework.Bundle;
-
-/**
- * Check that there is no nullplugin in the XULRunner bundle.
- * <p>
- * The nullplugin is the default plug-in for Adobe Flash. The
- * presence of it is undesirable for VPE, because it shows annoying
- * message suggesting to download Adobe Flash plugin.
- *
- * @see <a
href="https://issues.jboss.org/browse/JBIDE-8792">JBIDE-8792...
- * @author Yahor Radtsevich
- */
-public class Nullplugin_JBIDE8792 extends TestCase {
- public void testNullplugin() {
- Bundle xulRunnerBundle = Platform.getBundle(XulRunnerBrowser.getXulRunnerBundle());
- assertTrue("Nullplugin is found, but it should not be there.",
- xulRunnerBundle.getResource("xulrunner/plugins/libnullplugin.so") == null
&&
- xulRunnerBundle.getResource("xulrunner/plugins/npnul32.dll") == null);
- }
-}
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XulRunnerAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XulRunnerAllTests.java 2011-06-07
09:09:02 UTC (rev 31874)
+++
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XulRunnerAllTests.java 2011-06-07
11:28:47 UTC (rev 31875)
@@ -19,7 +19,7 @@
suite.addTestSuite(XulRunnerBrowserTest.class);
suite.addTestSuite(DOMCreatingTest.class);
suite.addTestSuite(XPCOMTest.class);
- suite.addTestSuite(Nullplugin_JBIDE8792.class);
+ suite.addTestSuite(NullpluginTest_JBIDE8792.class);
return suite;
}
}