write() missing for IE in crosscheck 1.2.1?

0 views
Skip to first unread message

Siemen Baader

unread,
Dec 4, 2007, 5:27:53 AM12/4/07
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)

Charles Lowell

unread,
Dec 4, 2007, 9:45:50 AM12/4/07
to cross...@googlegroups.com
Siemen,

This looks like a missing feature on IE. Can you file a bug in trac and attach your testcase?

cheers,
Charles Lowell
The Frontside Software


Rob Sanheim

unread,
Dec 4, 2007, 9:51:01 PM12/4/07
to cross...@googlegroups.com
On Dec 4, 2007 9:45 AM, Charles Lowell <cow...@thefrontside.net> wrote:
> Siemen,
>
> This looks like a missing feature on IE. Can you file a bug in trac and
> attach your testcase?
>
> cheers,
>
> Charles Lowell
> cow...@thefrontside.net
> The Frontside Software
> http://thefrontside.net

This also caused breakage in prototype 1.6 (along with some other
things), and I blogged my little tweaks to get things happy again
between prototype 1.6 and crosscheck. These are exactly clean fixes,
just enough to get ie6 tests back to normal:

http://robsanheim.com/2007/11/21/making-crosscheck-work-with-prototype-16/

- Rob

Reply all
Reply to author
Forward
0 new messages