You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mike Leonardo <mi...@ifactory.com> on 2007/01/11 21:23:46 UTC

HtmlUnit testing with Contrib Palette 2

Sorry, I actually hit send too soon... 

Here's the error. Thanks!

Cheers, 
Mike Leonardo

======= EXCEPTION START ========
EcmaError: lineNumber=[145] column=[0] lineSource=[null]
name=[TypeError]
sourceName=[http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%2FPaletteFunctions.js&service=asset] message=[TypeError: Method "remove" called on incompatible object. (http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%2FPaletteFunctions.js&service=asset#145)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Method
"remove" called on incompatible object.
(http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=
%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%
2FPaletteFunctions.js&service=asset#145)
	at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:253)
	at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:693)
	at
com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:105)
	at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120)
	at
com.ifactory.cms.testsupport.HtmlTestClient.clickLink(HtmlTestClient.java:167)
	at
com.ifactory.columbia.gaz.admin.AddEditPlaceTest.selectPaletteOption(AddEditPlaceTest.java:74)
	at
com.ifactory.columbia.gaz.admin.AddEditPlaceTest.testAddPlace(AddEditPlaceTest.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at
com.ifactory.columbia.gaz.util.HtmlTestCase.runTest(HtmlTestCase.java:52)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Method "remove"
called on incompatible object.
(http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=
%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%
2FPaletteFunctions.js&service=asset#145)
	at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226)
	at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216)
	at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3232)
	at
org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3244)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:434)
	at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3084)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250)
	at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)
	at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
	at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
	at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160)
	at org.mozilla.javascript.Context.evaluateString(Context.java:1132)
	at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:249)
	... 25 more
Enclosed exception: 
org.mozilla.javascript.EcmaError: TypeError: Method "remove" called on
incompatible object.
(http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=
%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%
2FPaletteFunctions.js&service=asset#145)
	at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226)
	at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216)
	at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3232)
	at
org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3244)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:434)
	at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3084)
	at
script.palette_transfer_selections(http://localhost:9001/app?digest=db3d317f3d6334ce6ec25039e12b6d52&path=%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Fpalette%2FPaletteFunctions.js&service=asset:145)
	at script.select_types(Embedded script in
http://localhost:9001/app;jsessionid=1nccfae3wznje?component=%
24AdminBorder.%24DirectLink&page=admin%
2FSearch&service=direct&session=T:58)
	at script.GargoyleWrapper0(Wrapper definition for javascript url:1)
	at script(javascript url:1)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250)
	at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)
	at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
	at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
	at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160)
	at org.mozilla.javascript.Context.evaluateString(Context.java:1132)
	at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:249)
	at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:693)
	at
com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:105)
	at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120)
	at
com.ifactory.cms.testsupport.HtmlTestClient.clickLink(HtmlTestClient.java:167)
	at
com.ifactory.columbia.gaz.admin.AddEditPlaceTest.selectPaletteOption(AddEditPlaceTest.java:74)
	at
com.ifactory.columbia.gaz.admin.AddEditPlaceTest.testAddPlace(AddEditPlaceTest.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at
com.ifactory.columbia.gaz.util.HtmlTestCase.runTest(HtmlTestCase.java:52)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
== CALLING JAVASCRIPT ==
GargoyleWrapper0()
======= EXCEPTION END ========




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org