« Return to Thread: [1.02] ReferenceError: "navigator" running tests in Rhino

[1.02] ReferenceError: "navigator" running tests in Rhino

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View in Thread

I'm trying to run the core dojo tests with java -jar custom_rhino.jar runner.js, but it fails with:
js: uncaught JavaScript runtime exception: ReferenceError: "navigator" is not defined. The same works in browser and with an older version of dojo ( 0.9). runner.html doesn't seem require any other dependencies, but obviously the navigator object is created by the browser. The custom_rhino.jar is from 0.9 (the latest in trunk looks corrupted).  If I create a fake navigator object myself in dojo.js, I get further along. Any ideas how to fix this?


Kalle

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: [1.02] ReferenceError: "navigator" running tests in Rhino