[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: |
Sat, 28 Apr 2007 16:56:54 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/28 16:56:54
Modified files:
. : ChangeLog
testsuite/actionscript.all: with.as
Log message:
* testsuite/actionscript.all/with.as:
Add tests explaining why the tests in previous
commit are failing in SWF5 version.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3030&r2=1.3031
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.10&r2=1.11
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3030
retrieving revision 1.3031
diff -u -b -r1.3030 -r1.3031
--- ChangeLog 28 Apr 2007 08:03:08 -0000 1.3030
+++ ChangeLog 28 Apr 2007 16:56:54 -0000 1.3031
@@ -1,3 +1,9 @@
+2007-04-28 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/with.as:
+ Add tests explaining why the tests in previous
+ commit are failing in SWF5 version.
+
2007-04-28 Zou Lunkai <address@hidden>
* testsuite/actionscript.all/with.as:
Index: testsuite/actionscript.all/with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/actionscript.all/with.as 28 Apr 2007 08:03:08 -0000 1.10
+++ testsuite/actionscript.all/with.as 28 Apr 2007 16:56:54 -0000 1.11
@@ -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.10 2007/04/28 08:03:08 zoulunkai Exp $";
+rcsid="$Id: with.as,v 1.11 2007/04/28 16:56:54 strk Exp $";
#include "check.as"
@@ -125,6 +125,25 @@
with(_root) { ; }
// not aborting is enough to pass this test
+//---------------------------------------------------------
+// Test with(undefined) with(null) with(3) with("string")
+//---------------------------------------------------------
+
+checkpoint = 1;
+
+with(null) { _root.checkpoint = 2; }
+check_equals(checkpoint, 1);
+
+with(undefined) { _root.checkpoint = 3; }
+check_equals(checkpoint, 1);
+
+with(4) { _root.checkpoint = 3; __proto__.checkpoint = 'three'; }
+check_equals(checkpoint, 3);
+check_equals(Number.prototype.checkpoint, 'three');
+
+with('string') { _root.checkpoint = 4; __proto__.checkpoint = 'four'; }
+check_equals(checkpoint, 4);
+check_equals(String.prototype.checkpoint, 'four');
//---------------------------------------------------------
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, Zou Lunkai, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, zou lunkai, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, zou lunkai, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, strk, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, strk, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, strk, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, strk, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, strk, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, zou lunkai, 2007/04/28
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as, zou lunkai, 2007/04/28
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as,
Sandro Santilli <=