[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9743: modify test to be compatible
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9743: modify test to be compatible with an older Ming having troubles |
Date: |
Mon, 15 Sep 2008 13:07:42 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9743
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-09-15 13:07:42 +0200
message:
modify test to be compatible with an older Ming having troubles
with enumeration syntax (fixes run on gnashdev).
modified:
testsuite/misc-ming.all/SharedObjectTest.as
=== modified file 'testsuite/misc-ming.all/SharedObjectTest.as'
--- a/testsuite/misc-ming.all/SharedObjectTest.as 2008-09-14 17:11:51
+0000
+++ b/testsuite/misc-ming.all/SharedObjectTest.as 2008-09-15 11:07:42
+0000
@@ -69,7 +69,8 @@
check_equals(typeof(so1.data.ary[4]), 'undefined');
check_equals(so1.data.ary.length, 5);
// test composition
-a=[]; for (i in so1.data.ary) a.push(i);
+tmp = so1.data.ary; // work-around to an old Ming bug [ chokes on 'for (in in
a.b.c)' ]
+a=[]; for (i in tmp) a.push(i);
a.sort();
check_equals(a.toString(), '0,1,2,3,4'); // note: no 'length'
@@ -79,7 +80,8 @@
check_equals(so1.data.aryns.length, 8);
check_equals(so1.data.aryns.custom, 7);
// test composition
-a=[]; for (i in so1.data.aryns) a.push(i);
+tmp = so1.data.aryns; // work-around to an old Ming bug [ chokes on 'for (in
in a.b.c)' ]
+a=[]; for (i in tmp) a.push(i);
a.sort();
check_equals(a.toString(), '0,1,2,custom'); // note: no 'length'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9743: modify test to be compatible with an older Ming having troubles,
Sandro Santilli <=