CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/11/20 07:40:19
Modified files:
testsuite/misc-swfc.all: swf4opcode.sc
Log message:
more tests about swf4 ActionEqual
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/swf4opcode.sc?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: swf4opcode.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/swf4opcode.sc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- swf4opcode.sc 20 Nov 2007 06:43:13 -0000 1.1
+++ swf4opcode.sc 20 Nov 2007 07:40:19 -0000 1.2
@@ -55,7 +55,18 @@
testvar = ('' == '');
xcheck_equals(testvar, 1);
testvar = ('xyz' == 'abc');
+ //Ref: http://swishtutor.com
+ // both hands are converted to zero
xcheck_equals(testvar, 1);
+ xcheck_equals('xyz', 0);
+ xcheck_equals('abc', 0);
+
+ // test 'undefined' in swf4
+ check_equals(uninitialized2, uninitialized3);
+ check_equals(uninitialized2, 0);
+ check_equals(undefined, 0);
+ check_equals(0, undefined);
+ check_equals(undefined, undefined);
.end
.frame 3
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit