[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as |
Date: |
Tue, 20 Feb 2007 19:31:30 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/02/20 19:31:30
Modified files:
. : ChangeLog
testsuite/actionscript.all: with.as
Log message:
* testsuite/actionscript.all/with.as: add test for function
call in 'with' context (fails!).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2411&r2=1.2412
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.7&r2=1.8
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2411
retrieving revision 1.2412
diff -u -b -r1.2411 -r1.2412
--- ChangeLog 20 Feb 2007 17:55:59 -0000 1.2411
+++ ChangeLog 20 Feb 2007 19:31:30 -0000 1.2412
@@ -1,5 +1,7 @@
2007-02-20 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/with.as: add test for function
+ call in 'with' context (fails!).
* testsuite/misc-ming.all/eventSoundTest1-Runner.cpp:
Fix input filename; expect the failures (we'll be happy
to see XPASS messages :)
Index: testsuite/actionscript.all/with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- testsuite/actionscript.all/with.as 12 Jan 2007 10:59:48 -0000 1.7
+++ testsuite/actionscript.all/with.as 20 Feb 2007 19:31:30 -0000 1.8
@@ -22,7 +22,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: with.as,v 1.7 2007/01/12 10:59:48 strk Exp $";
+rcsid="$Id: with.as,v 1.8 2007/02/20 19:31:30 strk Exp $";
#include "check.as"
@@ -104,3 +104,16 @@
}}}}}}}}}}}}}}}}}
check_equals(found17, undefined);
#endif
+
+//---------------------------------------------------------
+// Test function calls in 'with' context
+//---------------------------------------------------------
+
+var name = "timeline";
+get_name = function() { return this.name; };
+var obj1 = { name: "obj1", get_name: get_name };
+check_equals(get_name(), "timeline");
+with(obj1)
+{
+ check_equals(get_name(), "obj1");
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as,
Sandro Santilli <=