[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all Number.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all Number.as |
Date: |
Tue, 19 Sep 2006 10:21:21 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/09/19 10:21:21
Modified files:
testsuite/actionscript.all: Number.as
Log message:
Don't use strict-equality operator (===) when target SWF version is < 6
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Number.as 19 Sep 2006 10:03:09 -0000 1.1
+++ Number.as 19 Sep 2006 10:21:21 -0000 1.2
@@ -47,16 +47,18 @@
// TODO: test with SWF target != 6 (the only one tested so far)
//
-rcsid="$Id: Number.as,v 1.1 2006/09/19 10:03:09 strk Exp $";
+rcsid="$Id: Number.as,v 1.2 2006/09/19 10:21:21 strk Exp $";
#include "check.as"
var n1=new Number(268);
+// strict-equality operator was introduced in SWF6
+#if SWFVERSION > 5
check ( ! (n1 === 268) );
-
// They are not the same object !
check ( ! (n1 === Number(268)) );
+#endif
check ( n1 == 268 );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/actionscript.all Number.as,
Sandro Santilli <=