Explorar o código

Fixed Testcases

Issue #28
Daniel %!s(int64=10) %!d(string=hai) anos
pai
achega
e9c3fd038f

+ 2 - 2
test/unit/editor/TestCmdSetScriptName.js

@@ -1,6 +1,6 @@
 module("CmdSetScriptName");
 
-test( "Test CmdSetScriptName", function() {
+test( "Test CmdSetScriptValue for names", function() {
 
 	var editor = new Editor();
 
@@ -18,7 +18,7 @@ test( "Test CmdSetScriptName", function() {
 
 	names.map( function( name ) {
 
-		cmd = new CmdSetScriptName( box, xMove, name );
+		cmd = new CmdSetScriptValue( box, xMove, 'name', name );
 		cmd.updatable = false;
 		editor.execute( cmd );
 

+ 2 - 2
test/unit/editor/TestCmdSetScriptSource.js

@@ -1,6 +1,6 @@
 module( "CmdSetScriptSource" );
 
-test( "Test CmdSetScriptSource (Undo and Redo)", function() {
+test( "Test CmdSetScriptValue for source (Undo and Redo)", function() {
 
 	var editor = new Editor();
 
@@ -15,7 +15,7 @@ test( "Test CmdSetScriptSource (Undo and Redo)", function() {
  	cmd.updatable = false;
  	editor.execute( cmd );
 
- 	cmd = new CmdSetScriptSource( box, xMove, yMove['source'], xMove['source'], 0 );
+ 	cmd = new CmdSetScriptValue( box, xMove, 'source', yMove['source'], 0 );
  	cmd.updatable = false;
  	editor.execute( cmd );
 	ok( editor.scripts[ box.uuid ][0][ 'source' ] == yMove[ 'source' ], "OK, script source has been set successfully");