gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/actionscript.all SharedObject.as


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/actionscript.all SharedObject.as
Date: Tue, 25 Dec 2007 05:57:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/12/25 05:57:27

Modified files:
        testsuite/actionscript.all: SharedObject.as 

Log message:
        fix some bogus checks.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/SharedObject.as?cvsroot=gnash&r1=1.15&r2=1.16

Patches:
Index: SharedObject.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/SharedObject.as,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- SharedObject.as     20 Dec 2007 21:50:09 -0000      1.15
+++ SharedObject.as     25 Dec 2007 05:57:26 -0000      1.16
@@ -20,7 +20,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: SharedObject.as,v 1.15 2007/12/20 21:50:09 rsavoye Exp $";
+rcsid="$Id: SharedObject.as,v 1.16 2007/12/25 05:57:26 zoulunkai Exp $";
 
 #include "check.as"
 
@@ -81,7 +81,7 @@
 newso = SharedObject.getLocal("settings");
 check_equals (typeof(newso), 'object');
 trace(newso.getSize());
-check_equals (newso.getSize(), 11);
+xcheck_equals (newso.getSize(), 283);
 
 if (typeof(newso.data) != 'undefined') {
     trace("New Shared Object, checking data...");
@@ -92,7 +92,7 @@
     check_equals (typeof(newso.data.defaultmicrophone), 'string');
     check_equals (newso.data.defaultmicrophone, so.data.defaultmicrophone);
     check_equals (typeof(newso.data.defaultcamera), 'string');
-    check_equals (newso.data.defaultcamera,  'undefined');
+    check_equals (newso.data.defaultcamera,  '');
     check_equals (typeof(newso.data.defaultklimit), 'number');
     check_equals (newso.data.defaultklimit, so.data.defaultklimit);
     check_equals (typeof(newso.data.defaultalways), 'boolean');
@@ -107,7 +107,7 @@
     check_equals (typeof(newso.data.allowThirdPartyLSOAccess), 'boolean');
     check_equals (newso.data.allowThirdPartyLSOAccess, true);
     check_equals (typeof(newso.data.localSecPath), 'string');
-    check_equals (newso.data.localSecPath, 'undefined');
+    check_equals (newso.data.localSecPath, '');
     check_equals (typeof(newso.data.localSecPathTime), 'number');
     check_equals (newso.data.localSecPathTime, 1.19751160683e+12);
 } else {




reply via email to

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