gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10430: add checks for hex encoding


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10430: add checks for hex encoding and remote method name
Date: Mon, 15 Dec 2008 00:25:37 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10430
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-12-15 00:25:37 +0100
message:
  add checks for hex encoding and remote method name
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 21:44:31 +0000
+++ b/testsuite/misc-ming.all/remoting.as       2008-12-14 23:25:37 +0000
@@ -45,7 +45,7 @@
 endOfTest = function()
 {
        //note("END OF TEST");
-       check_totals(11);
+       check_totals(39);
 };
 
 nc = new NetConnection;
@@ -60,8 +60,9 @@
 nc.call("ary_123", o, ary1); // 31
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_123');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -69,8 +70,9 @@
 nc.call("ary_123custom", o, ary2); // 32
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_123custom');
        check_equals(res.type, 'ECMA_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -78,8 +80,9 @@
 nc.call("ary_123length255", o, ary3); // 33
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_123length255');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -87,8 +90,9 @@
 nc.call("ary__3", o, ary4); // 34
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary__3');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -96,8 +100,9 @@
 nc.call("ary_s3", o, ary5); // 35
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_s3');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -106,8 +111,9 @@
 nc.call("ary_000_assetpropflags", o, ary6); // 36
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_000_assetpropflags');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -115,8 +121,11 @@
 nc.call("ary_float", o, ary7); // 37
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_float');
        check_equals(res.type, 'ECMA_ARRAY');
-       //check_equals(res.hex, 'xxx');
+    // The bug here is that gnash encodes 3 as the length of the array due
+    // to assignment of the '2.5' member.
+       xcheck_equals(res.hex, 
'0a:00:00:00:01:08:00:00:00:03:00:03:32:2e:35:00:3f:f0:00:00:00:00:00:00:00:00:09');
 };
 
 o={onStatus:handleOnStatus};
@@ -124,8 +133,9 @@
 nc.call("ary_s256", o, ary8); // 38
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_s256');
        check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -133,17 +143,19 @@
 nc.call("ary_sminus1", o, ary9); // 39
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_sminus1');
        check_equals(res.type, 'ECMA_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
 ary10=[]; ary10[-1]=1; // ECMA
-nc.call("ayy_minus1", o, ary10);
+nc.call("ary_minus1", o, ary10);
 o.onResult = function(res) {
        //note(printInfo(res));
+       check_equals(res.message, 'ary_minus1');
        check_equals(res.type, 'ECMA_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
 };
 
 o={onStatus:handleOnStatus};
@@ -151,8 +163,29 @@
 nc.call("ary_abc", o, ary11); // 
 o.onResult = function(res) {
        //note(printInfo(res));
-       check_equals(res.type, 'STRICT_ARRAY');
-       //check_equals(res.hex, 'xxx');
+       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');
+};
+
+o={onStatus:handleOnStatus};
+ary12=[]; ary12['']=1; 
+nc.call("ary_emptypropname", o, ary12); //
+o.onResult = function(res) {
+       //note(printInfo(res));
+       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');
+};
+
+o={onStatus:handleOnStatus};
+ary13=[]; ary13[1] = ary11;
+nc.call("ary_nested", o, ary13); //
+o.onResult = function(res) {
+       //note(printInfo(res));
+       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');
        endOfTest();
 };
 


reply via email to

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