Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#10948 closed defect (fixed)

dojo.Deferred tests fail in Rhino

Reported by: Adam Peller Owned by: Kris Zyp
Priority: high Milestone: 1.7
Component: General Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

cd util/doh
./runner.sh

------------------------------------------------------------
GROUP "tests._base.Deferred" has 11 tests to run
debug from dojo.Deferred callback
Exception in thread "Thread-381" org.mozilla.javascript.EvaluatorException: Cannot convert NaN to java.lang.Long
	at org.mozilla.javascript.tools.ToolErrorReporter.runtimeError(ToolErrorReporter.java:144)
	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:922)
	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:978)
	at org.mozilla.javascript.Context.reportRuntimeError2(Context.java:948)
	at org.mozilla.javascript.NativeJavaObject.reportConversionError(NativeJavaObject.java:896)
	at org.mozilla.javascript.NativeJavaObject.toInteger(NativeJavaObject.java:875)
	at org.mozilla.javascript.NativeJavaObject.coerceToNumber(NativeJavaObject.java:786)
	at org.mozilla.javascript.NativeJavaObject.coerceTypeImpl(NativeJavaObject.java:553)
	at org.mozilla.javascript.Context.jsToJava(Context.java:1597)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:209)
	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
	at org.mozilla.javascript.gen.c6._c13(Unknown Source)
	at org.mozilla.javascript.gen.c6.call(Unknown Source)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
	at org.mozilla.javascript.gen.c6.call(Unknown Source)
	at org.mozilla.javascript.Context$1.run(Context.java:488)
	at org.mozilla.javascript.Context.call(Context.java:499)
	at org.mozilla.javascript.Context.call(Context.java:486)
	at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:538)
	at adapter1.run(<adapter>)
	at java.lang.Thread.run(Thread.java:613)
Exception in thread "Thread-382" org.mozilla.javascript.EvaluatorException: Can't find method java.lang.Thread.sleep(org.mozilla.javascript.Undefined).
	at org.mozilla.javascript.tools.ToolErrorReporter.runtimeError(ToolErrorReporter.java:144)
	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:922)
	at org.mozilla.javascript.Context.reportRuntimeError(Context.java:978)
	at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:941)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:162)
	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
	at org.mozilla.javascript.gen.c6._c13(Unknown Source)
	at org.mozilla.javascript.gen.c6.call(Unknown Source)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
	at org.mozilla.javascript.gen.c6.call(Unknown Source)
	at org.mozilla.javascript.Context$1.run(Context.java:488)
	at org.mozilla.javascript.Context.call(Context.java:499)
	at org.mozilla.javascript.Context.call(Context.java:486)
	at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:538)
	at adapter1.run(<adapter>)
	at java.lang.Thread.run(Thread.java:613)
Error: test timeout in simpleThen
	ERROR IN:
		 (function simpleThen(t) {var td = new doh.Deferred();delay().then(function () {td.callback(true);});return td;})

Change History (4)

comment:1 Changed 9 years ago by Adam Peller

Milestone: tbd1.5

comment:2 Changed 9 years ago by bill

Milestone: 1.51.6

1.5 is released, moving remaining tickets to 1.6

comment:3 Changed 8 years ago by Kris Zyp

Resolution: fixed
Status: newclosed

(In [24037]) Make Deferred test tolerate absence of setTimeout, fixes #10948

comment:4 Changed 8 years ago by bill

Milestone: 1.61.7
Note: See TracTickets for help on using tickets.