gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10432: Add checks for request id


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10432: Add checks for request id
Date: Mon, 15 Dec 2008 00:36:35 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10432
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-12-15 00:36:35 +0100
message:
  Add checks for request id
modified:
  testsuite/misc-ming.all/remoting.as
=== modified file 'testsuite/misc-ming.all/remoting.as'
--- a/testsuite/misc-ming.all/remoting.as       2008-12-14 23:25:37 +0000
+++ b/testsuite/misc-ming.all/remoting.as       2008-12-14 23:36:35 +0000
@@ -21,6 +21,13 @@
 #include "../actionscript.all/check.as"
 #include "../actionscript.all/utils.as"
 
+endOfTest = function()
+{
+       //note("END OF TEST");
+       check_totals(52);
+};
+
+
 if ( ! _root.hasOwnProperty('url') ) {
     // updated daily from bzr !
     // TODO: let ./configure specify another one
@@ -32,6 +39,7 @@
 note('Connecting to: '+url+' (pass "url" param to change)');
 
 printInfo = function(result) {
+       note("request_id: " + result['request_id']);
        note("message: " + result['message']);
        note("type: " + result['type']);
        note("hex: " + result['hex']);
@@ -42,12 +50,6 @@
        fail("server reported error. " + result);
 };
 
-endOfTest = function()
-{
-       //note("END OF TEST");
-       check_totals(39);
-};
-
 nc = new NetConnection;
 nc.onStatus = function()
 {
@@ -60,6 +62,7 @@
 nc.call("ary_123", o, ary1); // 31
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/1');
        check_equals(res.message, 'ary_123');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:03:00:3f:f0:00:00:00:00:00:00:00:40:00:00:00:00:00:00:00:00:40:08:00:00:00:00:00:00');
@@ -70,6 +73,7 @@
 nc.call("ary_123custom", o, ary2); // 32
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/2');
        check_equals(res.message, 'ary_123custom');
        check_equals(res.type, 'ECMA_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:08:00:00:00:03:00:01:30:00:3f:f0:00:00:00:00:00:00:00:01:31:00:40:00:00:00:00:00:00:00:00:01:32:00:40:08:00:00:00:00:00:00:00:06:63:75:73:74:6f:6d:02:00:06:63:75:73:74:6f:6d:00:00:09');
@@ -80,6 +84,7 @@
 nc.call("ary_123length255", o, ary3); // 33
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/3');
        check_equals(res.message, 'ary_123length255');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:ff:00:3f:f0:00:00:00:00:00:00:00:40:00:00:00:00:00:00:00:00:40:08:00:00:00:00:00:00:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06');
@@ -90,6 +95,7 @@
 nc.call("ary__3", o, ary4); // 34
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/4');
        check_equals(res.message, 'ary__3');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:04:06:06:06:00:40:08:00:00:00:00:00:00');
@@ -100,6 +106,7 @@
 nc.call("ary_s3", o, ary5); // 35
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/5');
        check_equals(res.message, 'ary_s3');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:04:06:06:06:00:40:08:00:00:00:00:00:00');
@@ -111,6 +118,7 @@
 nc.call("ary_000_assetpropflags", o, ary6); // 36
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/6');
        check_equals(res.message, 'ary_000_assetpropflags');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:03:02:00:01:30:02:00:01:30:02:00:01:30');
@@ -121,6 +129,7 @@
 nc.call("ary_float", o, ary7); // 37
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/7');
        check_equals(res.message, 'ary_float');
        check_equals(res.type, 'ECMA_ARRAY');
     // The bug here is that gnash encodes 3 as the length of the array due
@@ -133,6 +142,7 @@
 nc.call("ary_s256", o, ary8); // 38
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/8');
        check_equals(res.message, 'ary_s256');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:01:01:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:06:00:3f:f0:00:00:00:00:00:00');
@@ -143,6 +153,7 @@
 nc.call("ary_sminus1", o, ary9); // 39
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/9');
        check_equals(res.message, 'ary_sminus1');
        check_equals(res.type, 'ECMA_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:08:00:00:00:00:00:02:2d:31:00:3f:f0:00:00:00:00:00:00:00:00:09');
@@ -153,6 +164,7 @@
 nc.call("ary_minus1", o, ary10);
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/10');
        check_equals(res.message, 'ary_minus1');
        check_equals(res.type, 'ECMA_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:08:00:00:00:00:00:02:2d:31:00:3f:f0:00:00:00:00:00:00:00:00:09');
@@ -163,6 +175,7 @@
 nc.call("ary_abc", o, ary11); // 
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/11');
        check_equals(res.message, 'ary_abc');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:03:02:00:01:61:02:00:01:62:02:00:01:63');
@@ -173,6 +186,7 @@
 nc.call("ary_emptypropname", o, ary12); //
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/12');
        check_equals(res.message, 'ary_emptypropname');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, '0a:00:00:00:01:0a:00:00:00:00');
@@ -183,6 +197,7 @@
 nc.call("ary_nested", o, ary13); //
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.request_id, '/13');
        check_equals(res.message, 'ary_nested');
        check_equals(res.type, 'STRICT_ARRAY');
        check_equals(res.hex, 
'0a:00:00:00:01:0a:00:00:00:02:06:0a:00:00:00:03:02:00:01:61:02:00:01:62:02:00:01:63');


reply via email to

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