gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. 229ef2efc472c26a032e


From: Benjamin Wolsey
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 229ef2efc472c26a032ee0b0e18c1187a6cf2527
Date: Fri, 10 Dec 2010 16:45:21 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  229ef2efc472c26a032ee0b0e18c1187a6cf2527 (commit)
       via  86597ed6c69f32dc32e6197e5c1e15e1a49319a2 (commit)
      from  027f27df8b3dc04e51f5af8d54a9c8fe35c42373 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=229ef2efc472c26a032ee0b0e18c1187a6cf2527


commit 229ef2efc472c26a032ee0b0e18c1187a6cf2527
Merge: 86597ed 027f27d
Author: Benjamin Wolsey <address@hidden>
Date:   Fri Dec 10 17:45:36 2010 +0100

    Merge branch 'master' of git.sv.gnu.org:/srv/git/gnash


http://git.savannah.gnu.org/cgit//commit/?id=86597ed6c69f32dc32e6197e5c1e15e1a49319a2


commit 86597ed6c69f32dc32e6197e5c1e15e1a49319a2
Author: Benjamin Wolsey <address@hidden>
Date:   Fri Dec 10 13:12:53 2010 +0100

    Add test to call as many functions as possible with various arguments.

diff --git a/testsuite/actionscript.all/Makefile.am 
b/testsuite/actionscript.all/Makefile.am
index 4394a24..5619855 100644
--- a/testsuite/actionscript.all/Makefile.am
+++ b/testsuite/actionscript.all/Makefile.am
@@ -132,6 +132,7 @@ ASTESTS =                   \
        ops.as                  \
        toString_valueOf.as     \
        Rectangle.as            \
+       argstest.as             \
        $(NULL)
 
 if HAVE_PERL
diff --git a/testsuite/actionscript.all/argstest.as 
b/testsuite/actionscript.all/argstest.as
new file mode 100644
index 0000000..68e9c49
--- /dev/null
+++ b/testsuite/actionscript.all/argstest.as
@@ -0,0 +1,91 @@
+// 
+//   Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software
+//   Foundation, Inc
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+
+rcsid="$Id: array.as,v 1.63 2008/03/19 16:36:42 strk Exp $";
+#include "check.as"
+
+ callAndRecurse = function(prop, name) {
+ 
+       // Don't recurse infinitely.
+       if (prop == "__proto__") return;
+       if (prop == "constructor") return;
+ 
+       // i is the object, name is its name.
+       name = name + "." + prop;
+       var i = eval(name);
+       
+       trace("testing " + name + "(" + typeof(i) + ")");
+ 
+       if (typeof(i) == "function") {
+ 
+           // First call with various arguments.
+           i();
+           i(1);
+           i(1, 2);
+           i(1, 2, 3);
+           i(1, 2, 3, 4);
+ 
+           trace("Trying to construct " + name);
+           o = new i();
+ 
+           if (o) {
+               trace("Object was constructed");
+               ASSetPropFlags(o, null, 0, 1);
+               ASSetPropFlags(o.__proto__, null, 0, 1);
+               for (p in o) {
+                   trace("Testing " + p + "()");
+                   o[p]();
+                   o[p](1);
+                   o[p](1, 2);
+                   o[p](1, 2, 3);
+                   o[p](1, 2, 3, 4);
+ 
+                   o[p].call();
+                   o[p].call(null);
+                   o[p].call(null, 1);
+                   o[p].call(null, 1, 2);
+                   o[p].call(null, 1, 2, 3);
+                   o[p].call(null, 1, 2, 3, 4);
+ 
+                   // Recurse for own properties only.
+                   if (o.hasOwnProperty(p)) {
+                       callAndRecurse(p, name);
+                   }
+               };
+           };
+       }
+       else if (typeof(i) == "object") {
+           ASSetPropFlags(i, null, 0, 1);
+           for (p in i) {
+               callAndRecurse(p, name);
+           };
+       };
+  };
+ 
+ 
+ start = "_global";
+ obj = eval(start);
+ 
+ ASSetPropFlags(obj, null, 0, 1);
+ for (prop in obj) {
+     callAndRecurse(prop, start);
+ };
+
+pass("Nothing crashed gnash");

-----------------------------------------------------------------------

Summary of changes:
 testsuite/actionscript.all/Makefile.am |    1 +
 testsuite/actionscript.all/argstest.as |   91 ++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+), 0 deletions(-)
 create mode 100644 testsuite/actionscript.all/argstest.as


hooks/post-receive
-- 
Gnash



reply via email to

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