gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Loca...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Loca...
Date: Tue, 20 Mar 2007 14:55:09 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/20 14:55:09

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: LocalConnection.as 

Log message:
                * testsuite/actionscript.all/LocalConnection.as: Fix the test 
to NOT
                  rely on Gnash extensions. Actually check that the extensions 
are
                  *not* there, as we want to be compatible !!

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2641&r2=1.2642
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/LocalConnection.as?cvsroot=gnash&r1=1.9&r2=1.10

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2641
retrieving revision 1.2642
diff -u -b -r1.2641 -r1.2642
--- ChangeLog   20 Mar 2007 12:37:47 -0000      1.2641
+++ ChangeLog   20 Mar 2007 14:55:09 -0000      1.2642
@@ -1,3 +1,9 @@
+2007-03-20 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/LocalConnection.as: Fix the test to NOT
+         rely on Gnash extensions. Actually check that the extensions are
+         *not* there, as we want to be compatible !!
+
 2007-03-20 Ann Barcomb <address@hidden>
 
        * server/asobj/Key.cpp, MovieClipLoader.cpp, xml.cpp, xmlnode.cpp,

Index: testsuite/actionscript.all/LocalConnection.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/LocalConnection.as,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- testsuite/actionscript.all/LocalConnection.as       10 Jan 2007 00:09:56 
-0000      1.9
+++ testsuite/actionscript.all/LocalConnection.as       20 Mar 2007 14:55:09 
-0000      1.10
@@ -1,5 +1,5 @@
 // 
-//   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+//   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: LocalConnection.as,v 1.9 2007/01/10 00:09:56 strk Exp $";
+rcsid="$Id: LocalConnection.as,v 1.10 2007/03/20 14:55:09 strk Exp $";
 
 #include "dejagnu.as"
 
@@ -85,21 +85,24 @@
 tmp.close();
 var ret = tmp.connect("lc_test");
 
+// There's no such 'getname' method of LocalConnection !!!
+xcheck_equals(typeof(tmp.getname), 'undefined');
+xcheck_equals(typeof(tmp.getName), 'undefined');
+
 // NOTE: This test will fail if a shared memory segment of the same
 // name exists. So the first time it'll pass, then it'll fail.
-if ((tmp.getname() == "/lc_test") && (ret == true)) {
+if (ret == true) {
        pass("LocalConnection::connect()");
 } else {       
        fail("LocalConnection::connect()");
 }
 
 // Close the connection, and then check the state
-tmp.close();
-if (tmp.exists() == false) {
-       pass("LocalConnection::close()");
-} else {
-       fail("LocalConnection::close()");
-}
+ret = tmp.close();
+xcheck(ret);
+
+// There's no such 'exists' method of LocalConnection !!!
+xcheck_equals(typeof(tmp.exists), 'undefined');
 
 #endif // OUTPUT_VERSION >= 6
 




reply via email to

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