[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9557: Enable toString() counting te
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9557: Enable toString() counting tests. |
Date: |
Mon, 04 Aug 2008 14:02:51 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9557
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Mon 2008-08-04 14:02:51 +0200
message:
Enable toString() counting tests.
modified:
testsuite/actionscript.all/ASnative.as
=== modified file 'testsuite/actionscript.all/ASnative.as'
--- a/testsuite/actionscript.all/ASnative.as 2008-07-31 08:13:09 +0000
+++ b/testsuite/actionscript.all/ASnative.as 2008-08-04 12:02:51 +0000
@@ -15,6 +15,10 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+// This counts calls to toString() and valueOf() regularly to check that native
+// methods are correctly applied. So it saves much effort if new tests are
added
+// after the end of the present ones.
+
rcsid="$Id: ASnative.as,v 1.8 2008/04/29 10:23:50 bwy Exp $";
#include "check.as"
@@ -206,8 +210,7 @@
check_equals(func.a(), "gnash must work! öüä䀀");
// Check calls to toString.
-// This is called twice as often as it should be.
-//xcheck_equals (countTS, 2);
+check_equals (countTS, 2);
#endif
func.a = ASnative(102, 0); // SWF5 to upper
@@ -218,9 +221,9 @@
// Check calls to toString.
#if OUTPUT_VERSION > 5
-//check_equals (countTS, 4);
+check_equals (countTS, 4);
#else
-//xcheck_equals (countTS, 2);
+check_equals (countTS, 2);
#endif
// Stage
@@ -252,15 +255,15 @@
st = ASnative(666, 9);
#if OUTPUT_VERSION > 5
-//check_equals (countTS, 4);
+check_equals (countTS, 4);
#else
-//xcheck_equals (countTS, 2);
+check_equals (countTS, 2);
#endif
xcheck_equals (countVO, 25);
#if OUTPUT_VERSION > 5
+check_totals(79);
+#else
check_totals(76);
-#else
-check_totals(74);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9557: Enable toString() counting tests.,
Benjamin Wolsey <=