gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/actionscript.all Function.as


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Function.as
Date: Mon, 19 Mar 2007 19:59:50 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/19 19:59:50

Modified files:
        testsuite/actionscript.all: Function.as 

Log message:
        Fixed bogus expected output for SWF5

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.28&r2=1.29

Patches:
Index: Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- Function.as 19 Mar 2007 17:37:09 -0000      1.28
+++ Function.as 19 Mar 2007 19:59:50 -0000      1.29
@@ -20,7 +20,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: Function.as,v 1.28 2007/03/19 17:37:09 strk Exp $";
+rcsid="$Id: Function.as,v 1.29 2007/03/19 19:59:50 strk Exp $";
 
 #include "check.as"
 
@@ -524,6 +524,7 @@
 // Email is a Function instance, and it's "constructor" property
 // tells us so
 check_equals(typeof(Email.constructor), 'function');
+check_equals(typeof(Email.constructor.constructor), 'function');
 check_equals(Email.constructor, Function);
 #if OUTPUT_VERSION > 5
 xcheck(Email.hasOwnProperty('constructor'));
@@ -563,5 +564,10 @@
 
 myMail = new Email('greetings', "you", "hello");
 check_equals(myMail.subject, 'greetings');
+#if OUTPUT_VERSION > 5
 xcheck_equals(myMail.to, 'everyone');
 xcheck_equals(myMail.message, 'enlarge yourself');
+#else
+xcheck_equals(myMail.to, undefined);
+xcheck_equals(myMail.message, undefined);
+#endif




reply via email to

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