[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all targetPath.as
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all targetPath.as |
Date: |
Tue, 25 Dec 2007 05:40:30 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/12/25 05:40:30
Modified files:
testsuite/actionscript.all: targetPath.as
Log message:
more tests to inspect setTarget.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/targetPath.as?cvsroot=gnash&r1=1.9&r2=1.10
Patches:
Index: targetPath.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/targetPath.as,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- targetPath.as 22 Nov 2007 14:29:38 -0000 1.9
+++ targetPath.as 25 Dec 2007 05:40:30 -0000 1.10
@@ -20,7 +20,7 @@
* Test targetPath tags (0x45)
*/
-rcsid="$Id: targetPath.as,v 1.9 2007/11/22 14:29:38 strk Exp $";
+rcsid="$Id: targetPath.as,v 1.10 2007/12/25 05:40:30 zoulunkai Exp $";
#include "check.as"
@@ -88,17 +88,57 @@
_global.xpass_check = xpass_check;
setTarget(null);
+// getVaiable(_target) would ascend to other target
check_equals(_target, '/');
+asm{
+ push 'checkpoint'
+ push ''
+ push 11
+ getproperty //_target
+ setvariable
+};
+//check current target is undefined
+xcheck_equals(checkpoint, undefined);
setTarget("");
setTarget('...:mc1');
+// getVaiable(_target) would ascend to other target
check_equals(_target, '/');
+asm{
+ push 'checkpoint'
+ push ''
+ push 11
+ getproperty //_target
+ setvariable
+};
+//check current target is undefined
+xcheck_equals(checkpoint, undefined);
setTarget("");
setTarget('...:mc');
+// getVaiable(_target) would ascend to other target
check_equals(_target, '/');
+asm{
+ push 'checkpoint'
+ push ''
+ push 11
+ getproperty //_target
+ setvariable
+};
+//check current target is undefined
+xcheck_equals(checkpoint, undefined);
setTarget("");
+asm{
+ push 'checkpoint'
+ push ''
+ push 11
+ getproperty //_target
+ setvariable
+};
+//check current target is undefined
+check_equals(checkpoint, '/');
+
setTarget('mc');
check_equals(_target, '/mc');
setTarget("/");
@@ -114,5 +154,5 @@
#if OUTPUT_VERSION < 6
check_totals(6);
#else
- check_totals(13);
+ check_totals(17);
#endif
- [Gnash-commit] gnash/testsuite/actionscript.all targetPath.as,
Zou Lunkai <=