[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9639: add more tests for creating ar
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9639: add more tests for creating arrays |
Date: |
Wed, 17 Sep 2008 21:51:20 -0600 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9639
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-09-17 21:51:20 -0600
message:
add more tests for creating arrays
modified:
testsuite/libamf.all/test_el.cpp
=== modified file 'testsuite/libamf.all/test_el.cpp'
--- a/testsuite/libamf.all/test_el.cpp 2008-09-18 03:43:06 +0000
+++ b/testsuite/libamf.all/test_el.cpp 2008-09-18 03:51:20 +0000
@@ -151,6 +151,30 @@
}
data1.clear();
+ top.makeECMAArray(data1);
+ if ((top.propertySize() == 4)
+ && (top.getType() == Element::ECMA_ARRAY_AMF0)
+ && (strcmp(top[0]->to_string(), str1) == 0)
+ && (top[1]->to_string() == str2)
+ && (strcmp(top[2]->to_string(), "property three") == 0)
+ && (top[3]->to_number() == num)) {
+ runtest.pass("Made ECMA array");
+ } else {
+ runtest.fail("Made ECMA array");
+ }
+
+ data1.clear();
+ top.makeStrictArray(data1);
+ if ((top.propertySize() == 4)
+ && (top.getType() == Element::STRICT_ARRAY_AMF0)
+ && (strcmp(top[0]->to_string(), str1) == 0)
+ && (top[1]->to_string() == str2)
+ && (strcmp(top[2]->to_string(), "property three") == 0)
+ && (top[3]->to_number() == num)) {
+ runtest.pass("Made strict array");
+ } else {
+ runtest.fail("Made strict array");
+ }
// top.dump();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9639: add more tests for creating arrays,
rob <=