[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10452: Add test for how floating nu
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10452: Add test for how floating number index affects length in SWF before and after version 7 |
Date: |
Wed, 17 Dec 2008 20:18:38 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10452
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2008-12-17 20:18:38 +0100
message:
Add test for how floating number index affects length in SWF before and after
version 7
modified:
testsuite/actionscript.all/array.as
=== modified file 'testsuite/actionscript.all/array.as'
--- a/testsuite/actionscript.all/array.as 2008-12-14 13:57:23 +0000
+++ b/testsuite/actionscript.all/array.as 2008-12-17 19:18:38 +0000
@@ -420,6 +420,14 @@
check_equals(c.length, 0);
check_equals(typeof(c['']), 'undefined');
+c = []; c[2.2] = 2;
+#if OUTPUT_VERSION < 7
+ xcheck_equals(c.length, 3);
+#else
+ check_equals(c.length, 0);
+#endif
+check_equals(c[2.2], 2);
+
//-----------------------------------------------------
// Test Array.pop()
//-----------------------------------------------------
@@ -1470,11 +1478,11 @@
#if OUTPUT_VERSION < 6
- check_totals(499);
+ check_totals(501);
#else
# if OUTPUT_VERSION < 7
- check_totals(560);
+ check_totals(562);
# else
- check_totals(570);
+ check_totals(572);
# endif
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10452: Add test for how floating number index affects length in SWF before and after version 7,
Sandro Santilli <=