gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9889: test for items in the second T


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9889: test for items in the second Typed Object in the array too.
Date: Tue, 23 Dec 2008 12:49:50 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9889
committer: address@hidden
branch nick: rtmp
timestamp: Tue 2008-12-23 12:49:50 -0700
message:
  test for items in the second Typed Object in the array too.
modified:
  testsuite/libnet.all/test_http.cpp
=== modified file 'testsuite/libnet.all/test_http.cpp'
--- a/testsuite/libnet.all/test_http.cpp        2008-12-23 18:50:47 +0000
+++ b/testsuite/libnet.all/test_http.cpp        2008-12-23 19:49:50 +0000
@@ -1367,6 +1367,7 @@
        //      headers43[3]->dump();
        std::vector<boost::shared_ptr<amf::Element> > props43 = 
headers43[3]->getProperties();
        std::vector<boost::shared_ptr<amf::Element> > props43a = 
props43[0]->getProperties();
+       std::vector<boost::shared_ptr<amf::Element> > props43b = 
props43[1]->getProperties();
        //      props43[1]->dump();
         if ((strncmp(headers43[0]->getName(), "echo", 4) == 0)
             && (strncmp(headers43[1]->getName(), "/2", 2) == 0)
@@ -1379,6 +1380,10 @@
             && (props43a[0]->to_number() == 1)
             && (strncmp(props43a[1]->getName(), "attribute1", 10) == 0)
             && (strncmp(props43a[1]->to_string(), "one", 3) == 0)
+            && (strncmp(props43b[0]->getName(), "attribute2", 10) == 0)
+            && (props43b[0]->to_number() == 2)
+            && (strncmp(props43b[1]->getName(), "attribute1", 10) == 0)
+            && (strncmp(props43b[1]->to_string(), "two", 3) == 0)
            ) {
             runtest.pass("HTTP::parseEchoRequest(object RemoteClass Array, 2 
items)");
         } else {        


reply via email to

[Prev in Thread] Current Thread [Next in Thread]