CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai <zoulunkai> 07/10/12 01:59:53
Modified files: . : ChangeLog testsuite/actionscript.all: with.as Log message: * testsuite/actionscript.all/with.as: test that target don't need to be stacked in nesting setTarget context. Inner setTarget just override the current target. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4597&r2=1.4598 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.26&r2=1.27 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4597 retrieving revision 1.4598 diff -u -b -r1.4597 -r1.4598 --- ChangeLog 12 Oct 2007 01:12:03 -0000 1.4597 +++ ChangeLog 12 Oct 2007 01:59:53 -0000 1.4598 @@ -3,6 +3,8 @@ * testsuite/misc-swfc.all/opcode_guard_test2.sc: test that both setTarget and setTargetExpression use the target string instead of pointer for searching the target. + * testsuite/actionscript.all/with.as: test that target don't need to be + stacked in nesting setTarget context. 2007-10-11 Sandro Santilli <[EMAIL PROTECTED]> Index: testsuite/actionscript.all/with.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v retrieving revision 1.26 retrieving revision 1.27 diff -u -b -r1.26 -r1.27 --- testsuite/actionscript.all/with.as 11 Oct 2007 23:10:46 -0000 1.26 +++ testsuite/actionscript.all/with.as 12 Oct 2007 01:59:53 -0000 1.27 @@ -21,7 +21,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.26 2007/10/11 23:10:46 strk Exp $"; +rcsid="$Id: with.as,v 1.27 2007/10/12 01:59:53 zoulunkai Exp $"; #include "check.as" @@ -316,6 +316,28 @@ check_equals(checkpoint, '/clip1/clip2'); setTarget(""); +setTarget("/clip1"); + setTarget("/clip1/clip2"); + asm{ + push 'checkpoint' + push '' + push 11 + getproperty //_target + setvariable + }; + check_equals(checkpoint, '/clip1/clip2'); + setTarget(""); + asm{ + push 'checkpoint' + push '' + push 11 + getproperty //_target + setvariable + }; + // _target don't need to be stacked. + check_equals(checkpoint, '/'); +setTarget(""); + // // TODO: add tests for setTargetExpression // @@ -428,5 +450,5 @@ #if OUTPUT_VERSION < 6 check_totals(41); #else - check_totals(70); + check_totals(72); #endif _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit