Author: yradtsevich
Date: 2010-05-31 12:12:05 -0400 (Mon, 31 May 2010)
New Revision: 22445
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XPCOMTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6393
Create generic queryInterface method
- A mistake in the JUnit has been fixed.
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XPCOMTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XPCOMTest.java 2010-05-31
16:06:07 UTC (rev 22444)
+++
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/src/org/jboss/tools/vpe/xulrunner/test/XPCOMTest.java 2010-05-31
16:12:05 UTC (rev 22445)
@@ -39,7 +39,7 @@
assertTrue(XPCOM.queryInterface(document, nsIDOMNSDocument.class) instanceof
nsIDOMNSDocument);
try {
- document.queryInterface(nsIDOMNSElement.NS_IDOMNSELEMENT_IID);
+ XPCOM.queryInterface(document, nsIDOMNSElement.class);
fail("Expected Exception XPCOMException");
} catch (XPCOMException e) {
// do nothing, it's OK