gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10438: Test that a new .connect cal


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10438: Test that a new .connect call should trigger a new POST ! Gnash fails this.
Date: Mon, 15 Dec 2008 13:16:12 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10438
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-12-15 13:16:12 +0100
message:
  Test that a new .connect call should trigger a new POST ! Gnash fails this.
modified:
  testsuite/misc-ming.all/remoting.as
=== modified file 'testsuite/misc-ming.all/remoting.as'
--- a/testsuite/misc-ming.all/remoting.as       2008-12-15 12:01:11 +0000
+++ b/testsuite/misc-ming.all/remoting.as       2008-12-15 12:16:12 +0000
@@ -24,7 +24,7 @@
 endOfTest = function()
 {
        //note("END OF TEST");
-       check_totals(74);
+       check_totals(79);
 };
 
 
@@ -251,6 +251,23 @@
         check_equals(res.message, 'ary_newconnect');
         check_equals(res.arg1_type, 'STRICT_ARRAY');
         check_equals(res.hex, '0a:00:00:00:01:0a:00:00:00:00');
+    };
+
+    note('Connecting again to: '+url);
+    nc.connect(url); // reconnect, should reset call id
+
+    o={onStatus:handleOnStatus};
+    ary13=[]; 
+    nc.call("ary_newconnect2", o, ary13); //
+    o.onResult = function(res) {
+        //note(printInfo(res));
+        // Gnash uses the same connection, even on re-connect !
+        xcheck(res.remote_port != connectionPort);
+        connectionPort = res.remote_port;
+        xcheck_equals(res.request_id, '/1'); // connection is reset
+        check_equals(res.message, 'ary_newconnect2');
+        check_equals(res.arg1_type, 'STRICT_ARRAY');
+        check_equals(res.hex, '0a:00:00:00:01:0a:00:00:00:00');
         onEnterFrame = test15;
     };
 }


reply via email to

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