Siemen Baader
unread,Dec 4, 2007, 5:27:53 AM12/4/07Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to crosscheck
Hi list,
I get an error when testing scripts using jquery in the IE environment
using crosscheck. Is this just a feature not yet implemented or a bug
which I should file in the trac?
I boils down to this code:
crosscheck.onSetup(function(){
crosscheck.load("../jquery-1.2.1.js");
$(document).ready(function() {} );
})
crosscheck.addTest({
"test_nothing": function(){
assertTrue (false);
}
})
Output:
$ crosscheck image_details.jst
Running tests in environment: Mozilla 1.7 (Firefox 1.0)
F
FAILURES:
test_nothing: undefined: <false> was not true
at image_details.jst:8
1 tests: 0 Ok, 1 failed, 0 errored.
Running tests in environment: Mozilla 1.8 (Firefox 1.5)
F
FAILURES:
test_nothing: undefined: <false> was not true
at image_details.jst:8
1 tests: 0 Ok, 1 failed, 0 errored.
Running tests in environment: Internet Explorer 6
org.mozilla.javascript.EcmaError: TypeError: Cannot find function
write. (file:/home/siemen/javascript/comments/crosscheck-errs/./../
jquery-1.2.1.js#2004)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3229)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:
3219)
at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:
3235)
at
org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:
3247)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:
3307)
at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:
1991)
at org.mozilla.javascript.gen.c3._c146(file:/home/siemen/
javascript/comments/crosscheck-errs/./../jquery-1.2.1.js:2004)
at org.mozilla.javascript.gen.c3.call(file:/home/siemen/
javascript/comments/crosscheck-errs/./../jquery-1.2.1.js)
at
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:
108)
at org.mozilla.javascript.gen.c3._c139(file:/home/siemen/
javascript/comments/crosscheck-errs/./../jquery-1.2.1.js:1927)
at org.mozilla.javascript.gen.c3.call(file:/home/siemen/
javascript/comments/crosscheck-errs/./../jquery-1.2.1.js)
at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c1._c1(image_details.jst:3)
at org.mozilla.javascript.gen.c1.call(image_details.jst)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:
340)
at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
2758)
at org.mozilla.javascript.gen.c1.call(image_details.jst)
at net.thefrontside.crosscheck.framework.AbstractScopeFactory
$1.run(AbstractScopeFactory.java:108)
at org.mozilla.javascript.Context.call(Context.java:515)
at org.mozilla.javascript.Context.call(Context.java:450)
at
net.thefrontside.crosscheck.framework.AbstractScopeFactory.initTestScope(AbstractScopeFactory.java:
94)
at
net.thefrontside.crosscheck.framework.DefaultScopeFactory.getTestScope(DefaultScopeFactory.java:
68)
at net.thefrontside.crosscheck.framework.TestCase
$1.run(TestCase.java:119)
at org.mozilla.javascript.Context.call(Context.java:528)
at org.mozilla.javascript.Context.call(Context.java:450)
at
net.thefrontside.crosscheck.framework.TestCase.run(TestCase.java:117)
at
net.thefrontside.crosscheck.framework.TestSuite.run(TestSuite.java:95)
at
net.thefrontside.crosscheck.framework.Crosscheck.runAll(Crosscheck.java:
116)
at
net.thefrontside.crosscheck.framework.ConsoleRunner.run(ConsoleRunner.java:
140)
at
net.thefrontside.crosscheck.framework.ConsoleRunner.main(ConsoleRunner.java:
300)
TypeError: Cannot find function write. (file:/home/siemen/javascript/
comments/crosscheck-errs/./../jquery-1.2.1.js#2004)