|
@@ -5,12 +5,11 @@ test( "Test Serialization (simple)", function() {
|
|
|
// setup
|
|
|
var editor = new Editor();
|
|
|
|
|
|
- var box = aBox( 'The Box' );
|
|
|
- var light = aPointlight( 'The PointLight' );
|
|
|
- var camera = aPerspectiveCamera( 'The Camera' );
|
|
|
-
|
|
|
var addObject = function () {
|
|
|
|
|
|
+ // setup
|
|
|
+ var box = aBox( 'The Box' );
|
|
|
+
|
|
|
// Test Add
|
|
|
var cmd = new CmdAddObject( box );
|
|
|
cmd.updatable = false;
|
|
@@ -21,6 +20,9 @@ test( "Test Serialization (simple)", function() {
|
|
|
|
|
|
var addScript = function () {
|
|
|
|
|
|
+ // setup
|
|
|
+ var box = aBox( 'The Box' );
|
|
|
+
|
|
|
// Test Add
|
|
|
|
|
|
var cmd = new CmdAddObject( box );
|
|
@@ -59,6 +61,9 @@ test( "Test Serialization (simple)", function() {
|
|
|
|
|
|
// Check for correct serialization
|
|
|
|
|
|
+ editor.history.goToState( 0 );
|
|
|
+ editor.history.goToState( 1000 );
|
|
|
+
|
|
|
var history = JSON.stringify( editor.history.toJSON() );
|
|
|
|
|
|
editor.history.clear();
|