CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/03/16 10:52:26
Modified files:
testsuite/actionscript.all: Number.as
Log message:
more tests for number conversion in other contexts
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.13&r2=1.14
Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Number.as 16 Mar 2007 10:12:58 -0000 1.13
+++ Number.as 16 Mar 2007 10:52:26 -0000 1.14
@@ -26,7 +26,7 @@
// TODO: test with SWF target != 6 (the only one tested so far)
//
-rcsid="$Id: Number.as,v 1.13 2007/03/16 10:12:58 strk Exp $";
+rcsid="$Id: Number.as,v 1.14 2007/03/16 10:52:26 strk Exp $";
#include "check.as"
@@ -174,3 +174,33 @@
#else
xcheck(isNaN(2+Number));
#endif
+
+#if OUTPUT_VERSION >= 7
+check(isNaN(2/undefined));
+check(isNaN(undefined/2));
+check(!isFinite(undefined/2));
+check(2/undefined != Infinity);
+#else
+check(!isNaN(2/undefined));
+check(!isNaN(undefined/2));
+check(isFinite(undefined/2));
+check_equals(2/undefined, Infinity);
+#endif
+
+check(!isFinite(Infinity));
+check(!isFinite(2/undefined));
+
+
+note(undef);
+note(undef+undef);
+note(undef+'text');
+note('text'+undef);
+note(undef+2);
+note(2+undef);
+note(undef*2);
+note(2*undef);
+note(undef-2);
+note(2-undef);
+note(undef/2);
+note(2/undef);
+note(2/undefined);
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit