gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11956: Test references.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11956: Test references.
Date: Wed, 17 Feb 2010 12:27:15 +0100
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 11956 [merge]
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2010-02-17 12:27:15 +0100
message:
  Test references.
modified:
  testsuite/misc-ming.all/LC-Receive.as
  testsuite/misc-ming.all/LC-Send.as
=== modified file 'testsuite/misc-ming.all/LC-Receive.as'
--- a/testsuite/misc-ming.all/LC-Receive.as     2010-02-15 12:47:09 +0000
+++ b/testsuite/misc-ming.all/LC-Receive.as     2010-02-17 10:25:03 +0000
@@ -70,6 +70,33 @@
     check_equals(typeof(c), "object");
 };
 
+/// Object references.
+// 
+/// Our sender sends two object in alternation.
+lc.test8 = function(arg1, arg2, arg3, arg4, arg5) {
+
+    check_equals(typeof(arg1), "object");
+    check_equals(typeof(arg2), "object");
+    check_equals(typeof(arg3), "object");
+    check_equals(typeof(arg4), "object");
+    check_equals(typeof(arg5), "object");
+
+    check_equals(arg1.a, 5);
+    check_equals(arg2.a, 6);
+    check_equals(arg3.a, 5);
+    check_equals(arg4.a, 6);
+    check_equals(arg5.a, 5);
+
+    check_equals(arg1, arg3);
+    check_equals(arg1, arg5);
+    check_equals(arg2, arg4);
+
+    check(arg1 != arg2);
+    check(arg3 != arg4);
+    check(arg4 != arg5);
+
+};
+
 var i = 0;
 
 lc.stress = function(arg1, arg2, arg3) {

=== modified file 'testsuite/misc-ming.all/LC-Send.as'
--- a/testsuite/misc-ming.all/LC-Send.as        2010-02-15 12:47:09 +0000
+++ b/testsuite/misc-ming.all/LC-Send.as        2010-02-17 10:18:16 +0000
@@ -85,6 +85,11 @@
     check_equals(typeof(c), "object");
     lc.send("lc576", "test7", c);
 
+    o = { a:5, b:"string" };
+    e = { a:6, b:false };
+    
+    lc.send("lc576", "test8", o, e, o, e, o);
+
     stressTest();
 };
 


reply via email to

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