CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/14 20:50:46
Modified files: . : ChangeLog server/asobj : Global.cpp testsuite/actionscript.all: Global.as Log message: stub ASSetNative, ASSetNativeAccessor, ASconstructor. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5394&r2=1.5395 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.85&r2=1.86 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Global.as?cvsroot=gnash&r1=1.38&r2=1.39 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5394 retrieving revision 1.5395 diff -u -b -r1.5394 -r1.5395 --- ChangeLog 14 Jan 2008 20:37:15 -0000 1.5394 +++ ChangeLog 14 Jan 2008 20:50:45 -0000 1.5395 @@ -1,5 +1,12 @@ 2008-01-14 Sandro Santilli <[EMAIL PROTECTED]> + * server/asobj/Global.cpp: stub ASSetNative, ASSetNativeAccessor, + ASconstructor. + * testsuite/actionscript.all/Global.as: test existance of ASnative, + ASSetNative, ASSetNativeAccessor and ASconstructor. + +2008-01-14 Sandro Santilli <[EMAIL PROTECTED]> + * server/sprite_instance.cpp (loadVariables): don't skip the $version property, if it's there, and only add enumeratable properties. Index: server/asobj/Global.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v retrieving revision 1.85 retrieving revision 1.86 diff -u -b -r1.85 -r1.86 --- server/asobj/Global.cpp 13 Dec 2007 09:18:18 -0000 1.85 +++ server/asobj/Global.cpp 14 Jan 2008 20:50:46 -0000 1.86 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: Global.cpp,v 1.85 2007/12/13 09:18:18 strk Exp $ */ +/* $Id: Global.cpp,v 1.86 2008/01/14 20:50:46 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -408,6 +408,33 @@ } +// ASSetNative function +// TODO: find dox +static as_value +as_global_assetnative(const fn_call& /*fn*/) +{ + log_unimpl("ASSetNative"); + return as_value(); +} + +// ASSetNativeAccessor function +// TODO: find dox +static as_value +as_global_assetnativeaccessor(const fn_call& /*fn*/) +{ + log_unimpl("ASSetNativeAccessor"); + return as_value(); +} + +// ASconstructor function +// TODO: find dox +static as_value +as_global_asconstructor(const fn_call& /*fn*/) +{ + log_unimpl("ASconstructor"); + return as_value(); +} + // updateAfterEvent function static as_value as_global_updateAfterEvent(const fn_call& /*fn*/) @@ -442,6 +469,9 @@ // ASSetPropFlags init_member("ASSetPropFlags", new builtin_function(as_global_assetpropflags)); init_member("ASnative", new builtin_function(as_global_asnative)); + init_member("ASSetNative", new builtin_function(as_global_assetnative)); + init_member("ASSetNativeAccessor", new builtin_function(as_global_assetnativeaccessor)); + init_member("ASconstructor", new builtin_function(as_global_asconstructor)); init_member("updateAfterEvent", new builtin_function(as_global_updateAfterEvent)); // Defined in timers.h Index: testsuite/actionscript.all/Global.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Global.as,v retrieving revision 1.38 retrieving revision 1.39 diff -u -b -r1.38 -r1.39 --- testsuite/actionscript.all/Global.as 12 Dec 2007 14:05:25 -0000 1.38 +++ testsuite/actionscript.all/Global.as 14 Jan 2008 20:50:46 -0000 1.39 @@ -21,7 +21,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: Global.as,v 1.38 2007/12/12 14:05:25 strk Exp $"; +rcsid="$Id: Global.as,v 1.39 2008/01/14 20:50:46 strk Exp $"; #include "check.as" @@ -57,6 +57,11 @@ check(!_global.hasOwnProperty('isNaN')); #endif +check_equals(typeof(ASnative), 'function'); +check_equals(typeof(ASconstructor), 'function'); +check_equals(typeof(ASSetNative), 'function'); +check_equals(typeof(ASSetNativeAccessor), 'function'); + // Test parseInt check ( parseInt('45b') == 45 ); check ( parseInt('65') == 65 ); @@ -264,15 +269,15 @@ //------------------------------------------------------------ #if OUTPUT_VERSION == 5 - check_totals(46); // SWF5 + check_totals(50); // SWF5 #else # if OUTPUT_VERSION == 6 - check_totals(80); // SWF6 + check_totals(84); // SWF6 # else # if OUTPUT_VERSION == 7 - check_totals(62); // SWF7 + check_totals(66); // SWF7 # else - check_totals(49); // SWF8+ + check_totals(53); // SWF8+ # endif # endif #endif _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit