gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog server/asobj/Global.cpp testsui...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/asobj/Global.cpp testsui...
Date: Wed, 12 Dec 2007 14:05:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/12 14:05:25

Modified files:
        .              : ChangeLog 
        server/asobj   : Global.cpp 
        testsuite/actionscript.all: Global.as 

Log message:
        stub updateAfterEvent().

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5143&r2=1.5144
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.81&r2=1.82
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Global.as?cvsroot=gnash&r1=1.37&r2=1.38

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5143
retrieving revision 1.5144
diff -u -b -r1.5143 -r1.5144
--- ChangeLog   12 Dec 2007 12:09:01 -0000      1.5143
+++ ChangeLog   12 Dec 2007 14:05:24 -0000      1.5144
@@ -1,5 +1,11 @@
 2007-12-12 Sandro Santilli <address@hidden>
 
+       * server/asobj/Global.cpp: stub updateAfterEvent().
+       * testsuite/actionscript.all/Global.as: one more test for
+         updateAfterEvent().
+
+2007-12-12 Sandro Santilli <address@hidden>
+
        * configure.ac: define DEFAULT_FLASH_PLATFORM_ID and
          DEFAULT_FLASH_SYSTEM_OS based on $host (should likely
          be based on $target or something similar, to check

Index: server/asobj/Global.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -b -r1.81 -r1.82
--- server/asobj/Global.cpp     11 Dec 2007 19:23:50 -0000      1.81
+++ server/asobj/Global.cpp     12 Dec 2007 14:05:25 -0000      1.82
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: Global.cpp,v 1.81 2007/12/11 19:23:50 strk Exp $ */
+/* $Id: Global.cpp,v 1.82 2007/12/12 14:05:25 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -406,6 +406,18 @@
                
 }
 
+// updateAfterEvent function
+static as_value
+as_global_updateAfterEvent(const fn_call& fn)
+{
+       static bool warned=false;
+       if ( ! warned )
+       {
+               log_unimpl("updateAfterEvent()");
+               warned=true;
+       }
+}
+
 Global::Global(VM& vm, ClassHierarchy *ch)
        :
        as_object()
@@ -427,6 +439,7 @@
        // ASSetPropFlags
        init_member("ASSetPropFlags", new 
builtin_function(as_global_assetpropflags));
        init_member("ASnative", new builtin_function(as_global_asnative));
+       init_member("updateAfterEvent", new 
builtin_function(as_global_updateAfterEvent));
 
        // Defined in timers.h
        init_member("setInterval", new builtin_function(timer_setinterval));

Index: testsuite/actionscript.all/Global.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Global.as,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- testsuite/actionscript.all/Global.as        11 Dec 2007 00:14:23 -0000      
1.37
+++ testsuite/actionscript.all/Global.as        12 Dec 2007 14:05:25 -0000      
1.38
@@ -21,13 +21,14 @@
 // 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.37 2007/12/11 00:14:23 strk Exp $";
+rcsid="$Id: Global.as,v 1.38 2007/12/12 14:05:25 strk Exp $";
 
 #include "check.as"
 
 #if OUTPUT_VERSION > 5
-xcheck_equals(typeof(_global.updateAfterEvent), 'function');
+check_equals(typeof(_global.updateAfterEvent), 'function');
 check( ! _global.hasOwnProperty('updateAfterEvent') );
+check( ! _global.__proto__.hasOwnProperty('updateAfterEvent') );
 
 // Check that _global.parseInt is in effect what parseInt resolves to
 check ( parseInt == _global.parseInt );
@@ -46,7 +47,7 @@
 
 #else
 
-xcheck_equals(typeof(updateAfterEvent), 'function');
+check_equals(typeof(updateAfterEvent), 'function');
 check_equals ( typeof(_global.parseInt), 'undefined' );
 
 #endif
@@ -266,12 +267,12 @@
        check_totals(46); // SWF5
 #else
 # if OUTPUT_VERSION == 6
-       check_totals(79); // SWF6
+       check_totals(80); // SWF6
 # else
 #  if OUTPUT_VERSION == 7
-       check_totals(61); // SWF7
+       check_totals(62); // SWF7
 #  else
-       check_totals(48); // SWF8+
+       check_totals(49); // SWF8+
 #  endif
 # endif
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]