Difference between revisions of "JavaScript test OXP"

From Elite Wiki
Line 1: Line 1:
 
The '''JavaScript test OXP''' is an [[OXP]] which demonstrates [[scripting Oolite with JavaScript]]. It implements every event handler supported by Oolite 1.68. It logs a message for every event, providing pertinent information and illustrating exactly when events occur.
 
The '''JavaScript test OXP''' is an [[OXP]] which demonstrates [[scripting Oolite with JavaScript]]. It implements every event handler supported by Oolite 1.68. It logs a message for every event, providing pertinent information and illustrating exactly when events occur.
  +
  +
Version 2.0.1 addresses several bugs due to late changes in the JavaScript interface, and adds a test suite for the <code>[[Oolite/Development/Scripting/Class/Vector|Vector]]</code> class (disabled in the OXP because current binaries don’t implement <code>Vector</code>).
   
 
The OXP may be downloaded [[Media:JavaScript-test.oxp.zip|here]].
 
The OXP may be downloaded [[Media:JavaScript-test.oxp.zip|here]].

Revision as of 19:20, 8 April 2007

The JavaScript test OXP is an OXP which demonstrates scripting Oolite with JavaScript. It implements every event handler supported by Oolite 1.68. It logs a message for every event, providing pertinent information and illustrating exactly when events occur.

Version 2.0.1 addresses several bugs due to late changes in the JavaScript interface, and adds a test suite for the Vector class (disabled in the OXP because current binaries don’t implement Vector).

The OXP may be downloaded here.