gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r9712: test effects of calling Share


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9712: test effects of calling SharedObject.getLocal with no arg
Date: Wed, 10 Sep 2008 12:36:27 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9712
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2008-09-10 12:36:27 +0200
message:
  test effects of calling SharedObject.getLocal with no arg
modified:
  testsuite/actionscript.all/SharedObject.as
    ------------------------------------------------------------
    revno: 9709.1.4
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Wed 2008-09-10 11:49:38 +0200
    message:
      Test effects of calling SharedObject.getLocal with no arguments
    modified:
      testsuite/actionscript.all/SharedObject.as
=== modified file 'testsuite/actionscript.all/SharedObject.as'
--- a/testsuite/actionscript.all/SharedObject.as        2008-09-09 22:20:51 
+0000
+++ b/testsuite/actionscript.all/SharedObject.as        2008-09-10 10:36:27 
+0000
@@ -171,9 +171,24 @@
 check_equals(typeof(so.data), 'object');
 
 //------------------------------------------
+// Test calling getLocal with no args
+//------------------------------------------
+
+so7 = SharedObject.getLocal();
+#if OUTPUT_VERSION > 6
+ // produces 'undefined.sol'
+ check(so7 instanceof SharedObject);
+#else
+ // returns undefined
+ xcheck_equals(typeof(so7), 'null');
+#endif
+so7.data.a = 1;
+so7.flush();
+
+//------------------------------------------
 // END OF TESTS
 //------------------------------------------
 
-check_totals(45);
+check_totals(46);
 
 #endif // OUTPUT_VERSION >= 6


reply via email to

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