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/Bo...


From: strk
Subject: [Gnash-commit] gnash ./ChangeLog testsuite/actionscript.all/Bo...
Date: Wed, 15 Feb 2006 10:34:24 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/02/15 10:34:23

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Boolean.as Camera.as Color.as 
                                    ContextMenu.as CustomActions.as 
                                    Error.as LoadVars.as Makefile.am 
                                    Microphone.as Mouse.as NetStream.as 
                                    Selection.as SharedObject.as 
                                    Stage.as System.as TextSnapshot.as 
                                    Video.as gen-test.sh 

Log message:
        * testsuite/actionscript.all/gen-test.as: changed to use the check
        macro.
        * testsuite/actionscript.all: Boolean.as, Camera.as, Color.as,          
        ContextMenu.as, CustomActions.as, Error.as, LoadVars.as,
        Microphone.as, Mouse.as, NetStream.as, Selection.as,
        SharedObject.as, Stage.as, System.as, TextSnapshot.as, Video.as:
        regenerated.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.142&tr2=1.143&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Boolean.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Camera.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Color.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/ContextMenu.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/CustomActions.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Error.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/LoadVars.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Makefile.am.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Microphone.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Mouse.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/NetStream.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Selection.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/SharedObject.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Stage.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/System.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/TextSnapshot.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Video.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/gen-test.sh.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.142 gnash/ChangeLog:1.143
--- gnash/ChangeLog:1.142       Wed Feb 15 09:40:49 2006
+++ gnash/ChangeLog     Wed Feb 15 10:34:23 2006
@@ -7,6 +7,14 @@
        the online-tests rule.
        * testsuite/actionscript.all/check.as: support for ONLINE define,
        using XTRACE and only printing failures when that's defined.
+       * testsuite/actionscript.all/gen-test.as: changed to use the check
+       macro.
+       * testsuite/actionscript.all: Boolean.as, Camera.as, Color.as,
+       ContextMenu.as, CustomActions.as, Error.as, LoadVars.as,
+       Microphone.as, Mouse.as, NetStream.as, Selection.as,
+       SharedObject.as, Stage.as, System.as, TextSnapshot.as, Video.as:
+       regenerated.
+
 
 2006-02-15 Michael Carlson <address@hidden>
 
Index: gnash/testsuite/actionscript.all/Boolean.as
diff -u gnash/testsuite/actionscript.all/Boolean.as:1.1 
gnash/testsuite/actionscript.all/Boolean.as:1.2
--- gnash/testsuite/actionscript.all/Boolean.as:1.1     Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Boolean.as Wed Feb 15 10:34:23 2006
@@ -21,24 +21,15 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Boolean;
+#include "check.as"
+
+var boolObj = new Boolean;
 
 // test the Boolean constuctor
-if (tmp) {
-       trace("PASSED: Boolean::Boolean() constructor");
-} else {
-       trace("FAILED: Boolean::Boolean()");            
-}
+check (boolObj);
 
 // test the Boolean::tostring method
-if (tmp.tostring) {
-       trace("PASSED: Boolean::tostring() exists");
-} else {
-       trace("FAILED: Boolean::tostring() doesn't exist");
-}
+check (boolObj.tostring != undefined);
+
 // test the Boolean::valueof method
-if (tmp.valueof) {
-       trace("PASSED: Boolean::valueof() exists");
-} else {
-       trace("FAILED: Boolean::valueof() doesn't exist");
-}
+check (boolObj.valueof != undefined);
Index: gnash/testsuite/actionscript.all/Camera.as
diff -u gnash/testsuite/actionscript.all/Camera.as:1.1 
gnash/testsuite/actionscript.all/Camera.as:1.2
--- gnash/testsuite/actionscript.all/Camera.as:1.1      Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Camera.as  Wed Feb 15 10:34:23 2006
@@ -21,36 +21,18 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Camera;
+#include "check.as"
+
+var cameraObj = new Camera;
 
 // test the Camera constuctor
-if (tmp) {
-       trace("PASSED: Camera::Camera() constructor");
-} else {
-       trace("FAILED: Camera::Camera()");              
-}
+check (cameraObj != undefined);
 
 // test the Camera::get method
-if (tmp.get) {
-       trace("PASSED: Camera::get() exists");
-} else {
-       trace("FAILED: Camera::get() doesn't exist");
-}
+check (cameraObj.get != undefined);
 // test the Camera::setmode method
-if (tmp.setmode) {
-       trace("PASSED: Camera::setmode() exists");
-} else {
-       trace("FAILED: Camera::setmode() doesn't exist");
-}
+check (cameraObj.setmode != undefined);
 // test the Camera::setmotionlevel method
-if (tmp.setmotionlevel) {
-       trace("PASSED: Camera::setmotionlevel() exists");
-} else {
-       trace("FAILED: Camera::setmotionlevel() doesn't exist");
-}
+check (cameraObj.setmotionlevel != undefined);
 // test the Camera::setquality method
-if (tmp.setquality) {
-       trace("PASSED: Camera::setquality() exists");
-} else {
-       trace("FAILED: Camera::setquality() doesn't exist");
-}
+check (cameraObj.setquality != undefined);
Index: gnash/testsuite/actionscript.all/Color.as
diff -u gnash/testsuite/actionscript.all/Color.as:1.1 
gnash/testsuite/actionscript.all/Color.as:1.2
--- gnash/testsuite/actionscript.all/Color.as:1.1       Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Color.as   Wed Feb 15 10:34:23 2006
@@ -1,7 +1,7 @@
 // 
 //   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 //
-// This program is free software; you can redistribute it and/or modify
+// This program is free software; you can redistribute it and/or modchecky
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation; either version 2 of the License, or
 // (at your option) any later version.
@@ -13,44 +13,29 @@
 
 // You should have received a copy of the GNU General Public License
 
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+// along with this program; check not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA  02110-1301  
USA
 //
 
 // Test case for Color ActionScript class
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Color;
+#include "check.as"
+
+var colorObj = new Color;
 
 // test the Color constuctor
-if (tmp) {
-       trace("PASSED: Color::Color() constructor");
-} else {
-       trace("FAILED: Color::Color()");                
-}
+check (colorObj != undefined);
 
 // test the Color::getrgb method
-if (tmp.getrgb) {
-       trace("PASSED: Color::getrgb() exists");
-} else {
-       trace("FAILED: Color::getrgb() doesn't exist");
-}
+check (colorObj.getrgb != undefined);
+
 // test the Color::gettransform method
-if (tmp.gettransform) {
-       trace("PASSED: Color::gettransform() exists");
-} else {
-       trace("FAILED: Color::gettransform() doesn't exist");
-}
+check (colorObj.gettransform != undefined);
+
 // test the Color::setrgb method
-if (tmp.setrgb) {
-       trace("PASSED: Color::setrgb() exists");
-} else {
-       trace("FAILED: Color::setrgb() doesn't exist");
-}
+check (colorObj.setrgb != undefined);
+
 // test the Color::settransform method
-if (tmp.settransform) {
-       trace("PASSED: Color::settransform() exists");
-} else {
-       trace("FAILED: Color::settransform() doesn't exist");
-}
+check (colorObj.settransform != undefined);
Index: gnash/testsuite/actionscript.all/ContextMenu.as
diff -u gnash/testsuite/actionscript.all/ContextMenu.as:1.1 
gnash/testsuite/actionscript.all/ContextMenu.as:1.2
--- gnash/testsuite/actionscript.all/ContextMenu.as:1.1 Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/ContextMenu.as     Wed Feb 15 10:34:23 2006
@@ -21,24 +21,14 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new ContextMenu;
+#include "check.as"
+
+var contextmenuObj = new ContextMenu;
 
 // test the ContextMenu constuctor
-if (tmp) {
-       trace("PASSED: ContextMenu::ContextMenu() constructor");
-} else {
-       trace("FAILED: ContextMenu::ContextMenu()");            
-}
+check (contextmenuObj != undefined);
 
 // test the ContextMenu::copy method
-if (tmp.copy) {
-       trace("PASSED: ContextMenu::copy() exists");
-} else {
-       trace("FAILED: ContextMenu::copy() doesn't exist");
-}
+check (contextmenuObj.copy != undefined);
 // test the ContextMenu::hidebuiltinitems method
-if (tmp.hidebuiltinitems) {
-       trace("PASSED: ContextMenu::hidebuiltinitems() exists");
-} else {
-       trace("FAILED: ContextMenu::hidebuiltinitems() doesn't exist");
-}
+check (contextmenuObj.hidebuiltinitems != undefined);
Index: gnash/testsuite/actionscript.all/CustomActions.as
diff -u gnash/testsuite/actionscript.all/CustomActions.as:1.1 
gnash/testsuite/actionscript.all/CustomActions.as:1.2
--- gnash/testsuite/actionscript.all/CustomActions.as:1.1       Thu Feb  2 
00:03:02 2006
+++ gnash/testsuite/actionscript.all/CustomActions.as   Wed Feb 15 10:34:23 2006
@@ -21,36 +21,18 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new CustomActions;
+#include "check.as"
+
+var customactionsObj = new CustomActions;
 
 // test the CustomActions constuctor
-if (tmp) {
-       trace("PASSED: CustomActions::CustomActions() constructor");
-} else {
-       trace("FAILED: CustomActions::CustomActions()");                
-}
+check (customactionsObj != undefined);
 
 // test the CustomActions::get method
-if (tmp.get) {
-       trace("PASSED: CustomActions::get() exists");
-} else {
-       trace("FAILED: CustomActions::get() doesn't exist");
-}
+check (customactionsObj.get != undefined);
 // test the CustomActions::install method
-if (tmp.install) {
-       trace("PASSED: CustomActions::install() exists");
-} else {
-       trace("FAILED: CustomActions::install() doesn't exist");
-}
+check (customactionsObj.install != undefined);
 // test the CustomActions::list method
-if (tmp.list) {
-       trace("PASSED: CustomActions::list() exists");
-} else {
-       trace("FAILED: CustomActions::list() doesn't exist");
-}
+check (customactionsObj.list != undefined);
 // test the CustomActions::uninstall method
-if (tmp.uninstall) {
-       trace("PASSED: CustomActions::uninstall() exists");
-} else {
-       trace("FAILED: CustomActions::uninstall() doesn't exist");
-}
+check (customactionsObj.uninstall != undefined);
Index: gnash/testsuite/actionscript.all/Error.as
diff -u gnash/testsuite/actionscript.all/Error.as:1.1 
gnash/testsuite/actionscript.all/Error.as:1.2
--- gnash/testsuite/actionscript.all/Error.as:1.1       Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Error.as   Wed Feb 15 10:34:23 2006
@@ -21,18 +21,12 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Error;
+#include "check.as"
+
+var errorObj = new Error;
 
 // test the Error constuctor
-if (tmp) {
-       trace("PASSED: Error::Error() constructor");
-} else {
-       trace("FAILED: Error::Error()");                
-}
+check (errorObj != undefined);
 
 // test the Error::tostring method
-if (tmp.tostring) {
-       trace("PASSED: Error::tostring() exists");
-} else {
-       trace("FAILED: Error::tostring() doesn't exist");
-}
+check (errorObj.tostring != undefined);
Index: gnash/testsuite/actionscript.all/LoadVars.as
diff -u gnash/testsuite/actionscript.all/LoadVars.as:1.1 
gnash/testsuite/actionscript.all/LoadVars.as:1.2
--- gnash/testsuite/actionscript.all/LoadVars.as:1.1    Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/LoadVars.as        Wed Feb 15 10:34:23 2006
@@ -21,60 +21,26 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new LoadVars;
+#include "check.as"
+
+var loadvarsObj = new LoadVars;
 
 // test the LoadVars constuctor
-if (tmp) {
-       trace("PASSED: LoadVars::LoadVars() constructor");
-} else {
-       trace("FAILED: LoadVars::LoadVars()");          
-}
+check (loadvarsObj != undefined);
 
 // test the LoadVars::addrequestheader method
-if (tmp.addrequestheader) {
-       trace("PASSED: LoadVars::addrequestheader() exists");
-} else {
-       trace("FAILED: LoadVars::addrequestheader() doesn't exist");
-}
+check (loadvarsObj.addrequestheader != undefined);
 // test the LoadVars::decode method
-if (tmp.decode) {
-       trace("PASSED: LoadVars::decode() exists");
-} else {
-       trace("FAILED: LoadVars::decode() doesn't exist");
-}
+check (loadvarsObj.decode != undefined);
 // test the LoadVars::getbytesloaded method
-if (tmp.getbytesloaded) {
-       trace("PASSED: LoadVars::getbytesloaded() exists");
-} else {
-       trace("FAILED: LoadVars::getbytesloaded() doesn't exist");
-}
+check (loadvarsObj.getbytesloaded != undefined);
 // test the LoadVars::getbytestotal method
-if (tmp.getbytestotal) {
-       trace("PASSED: LoadVars::getbytestotal() exists");
-} else {
-       trace("FAILED: LoadVars::getbytestotal() doesn't exist");
-}
+check (loadvarsObj.getbytestotal != undefined);
 // test the LoadVars::load method
-if (tmp.load) {
-       trace("PASSED: LoadVars::load() exists");
-} else {
-       trace("FAILED: LoadVars::load() doesn't exist");
-}
+check (loadvarsObj.load != undefined);
 // test the LoadVars::send method
-if (tmp.send) {
-       trace("PASSED: LoadVars::send() exists");
-} else {
-       trace("FAILED: LoadVars::send() doesn't exist");
-}
+check (loadvarsObj.send != undefined);
 // test the LoadVars::sendandload method
-if (tmp.sendandload) {
-       trace("PASSED: LoadVars::sendandload() exists");
-} else {
-       trace("FAILED: LoadVars::sendandload() doesn't exist");
-}
+check (loadvarsObj.sendandload != undefined);
 // test the LoadVars::tostring method
-if (tmp.tostring) {
-       trace("PASSED: LoadVars::tostring() exists");
-} else {
-       trace("FAILED: LoadVars::tostring() doesn't exist");
-}
+check (loadvarsObj.tostring != undefined);
Index: gnash/testsuite/actionscript.all/Makefile.am
diff -u gnash/testsuite/actionscript.all/Makefile.am:1.15 
gnash/testsuite/actionscript.all/Makefile.am:1.16
--- gnash/testsuite/actionscript.all/Makefile.am:1.15   Wed Feb 15 09:40:49 2006
+++ gnash/testsuite/actionscript.all/Makefile.am        Wed Feb 15 10:34:23 2006
@@ -141,5 +141,6 @@
 
 clean:
        rm -f $(GENERATED) *.as.pp *.as.swf *.vswf
+       rm -Rf v5 v6 v7 v8
 
 
Index: gnash/testsuite/actionscript.all/Microphone.as
diff -u gnash/testsuite/actionscript.all/Microphone.as:1.1 
gnash/testsuite/actionscript.all/Microphone.as:1.2
--- gnash/testsuite/actionscript.all/Microphone.as:1.1  Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Microphone.as      Wed Feb 15 10:34:23 2006
@@ -21,42 +21,20 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Microphone;
+#include "check.as"
+
+var microphoneObj = new Microphone;
 
 // test the Microphone constuctor
-if (tmp) {
-       trace("PASSED: Microphone::Microphone() constructor");
-} else {
-       trace("FAILED: Microphone::Microphone()");              
-}
+check (microphoneObj != undefined);
 
 // test the Microphone::get method
-if (tmp.get) {
-       trace("PASSED: Microphone::get() exists");
-} else {
-       trace("FAILED: Microphone::get() doesn't exist");
-}
+check (microphoneObj.get != undefined);
 // test the Microphone::setgain method
-if (tmp.setgain) {
-       trace("PASSED: Microphone::setgain() exists");
-} else {
-       trace("FAILED: Microphone::setgain() doesn't exist");
-}
+check (microphoneObj.setgain != undefined);
 // test the Microphone::setrate method
-if (tmp.setrate) {
-       trace("PASSED: Microphone::setrate() exists");
-} else {
-       trace("FAILED: Microphone::setrate() doesn't exist");
-}
+check (microphoneObj.setrate != undefined);
 // test the Microphone::setsilencelevel method
-if (tmp.setsilencelevel) {
-       trace("PASSED: Microphone::setsilencelevel() exists");
-} else {
-       trace("FAILED: Microphone::setsilencelevel() doesn't exist");
-}
+check (microphoneObj.setsilencelevel != undefined);
 // test the Microphone::setuseechosuppression method
-if (tmp.setuseechosuppression) {
-       trace("PASSED: Microphone::setuseechosuppression() exists");
-} else {
-       trace("FAILED: Microphone::setuseechosuppression() doesn't exist");
-}
+check (microphoneObj.setuseechosuppression != undefined);
Index: gnash/testsuite/actionscript.all/Mouse.as
diff -u gnash/testsuite/actionscript.all/Mouse.as:1.1 
gnash/testsuite/actionscript.all/Mouse.as:1.2
--- gnash/testsuite/actionscript.all/Mouse.as:1.1       Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Mouse.as   Wed Feb 15 10:34:23 2006
@@ -21,36 +21,18 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Mouse;
+#include "check.as"
+
+var mouseObj = new Mouse;
 
 // test the Mouse constuctor
-if (tmp) {
-       trace("PASSED: Mouse::Mouse() constructor");
-} else {
-       trace("FAILED: Mouse::Mouse()");                
-}
+check (mouseObj != undefined);
 
 // test the Mouse::addlistener method
-if (tmp.addlistener) {
-       trace("PASSED: Mouse::addlistener() exists");
-} else {
-       trace("FAILED: Mouse::addlistener() doesn't exist");
-}
+check (mouseObj.addlistener != undefined);
 // test the Mouse::hide method
-if (tmp.hide) {
-       trace("PASSED: Mouse::hide() exists");
-} else {
-       trace("FAILED: Mouse::hide() doesn't exist");
-}
+check (mouseObj.hide != undefined);
 // test the Mouse::removelistener method
-if (tmp.removelistener) {
-       trace("PASSED: Mouse::removelistener() exists");
-} else {
-       trace("FAILED: Mouse::removelistener() doesn't exist");
-}
+check (mouseObj.removelistener != undefined);
 // test the Mouse::show method
-if (tmp.show) {
-       trace("PASSED: Mouse::show() exists");
-} else {
-       trace("FAILED: Mouse::show() doesn't exist");
-}
+check (mouseObj.show != undefined);
Index: gnash/testsuite/actionscript.all/NetStream.as
diff -u gnash/testsuite/actionscript.all/NetStream.as:1.1 
gnash/testsuite/actionscript.all/NetStream.as:1.2
--- gnash/testsuite/actionscript.all/NetStream.as:1.1   Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/NetStream.as       Wed Feb 15 10:34:23 2006
@@ -21,42 +21,20 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new NetStream;
+#include "check.as"
+
+var netstreamObj = new NetStream;
 
 // test the NetStream constuctor
-if (tmp) {
-       trace("PASSED: NetStream::NetStream() constructor");
-} else {
-       trace("FAILED: NetStream::NetStream()");                
-}
+check (netstreamObj != undefined);
 
 // test the NetStream::close method
-if (tmp.close) {
-       trace("PASSED: NetStream::close() exists");
-} else {
-       trace("FAILED: NetStream::close() doesn't exist");
-}
+check (netstreamObj.close != undefined);
 // test the NetStream::pause method
-if (tmp.pause) {
-       trace("PASSED: NetStream::pause() exists");
-} else {
-       trace("FAILED: NetStream::pause() doesn't exist");
-}
+check (netstreamObj.pause != undefined);
 // test the NetStream::play method
-if (tmp.play) {
-       trace("PASSED: NetStream::play() exists");
-} else {
-       trace("FAILED: NetStream::play() doesn't exist");
-}
+check (netstreamObj.play != undefined);
 // test the NetStream::seek method
-if (tmp.seek) {
-       trace("PASSED: NetStream::seek() exists");
-} else {
-       trace("FAILED: NetStream::seek() doesn't exist");
-}
+check (netstreamObj.seek != undefined);
 // test the NetStream::setbuffertime method
-if (tmp.setbuffertime) {
-       trace("PASSED: NetStream::setbuffertime() exists");
-} else {
-       trace("FAILED: NetStream::setbuffertime() doesn't exist");
-}
+check (netstreamObj.setbuffertime != undefined);
Index: gnash/testsuite/actionscript.all/Selection.as
diff -u gnash/testsuite/actionscript.all/Selection.as:1.1 
gnash/testsuite/actionscript.all/Selection.as:1.2
--- gnash/testsuite/actionscript.all/Selection.as:1.1   Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Selection.as       Wed Feb 15 10:34:23 2006
@@ -21,60 +21,26 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Selection;
+#include "check.as"
+
+var selectionObj = new Selection;
 
 // test the Selection constuctor
-if (tmp) {
-       trace("PASSED: Selection::Selection() constructor");
-} else {
-       trace("FAILED: Selection::Selection()");                
-}
+check (selectionObj != undefined);
 
 // test the Selection::addlistener method
-if (tmp.addlistener) {
-       trace("PASSED: Selection::addlistener() exists");
-} else {
-       trace("FAILED: Selection::addlistener() doesn't exist");
-}
+check (selectionObj.addlistener != undefined);
 // test the Selection::getbeginindex method
-if (tmp.getbeginindex) {
-       trace("PASSED: Selection::getbeginindex() exists");
-} else {
-       trace("FAILED: Selection::getbeginindex() doesn't exist");
-}
+check (selectionObj.getbeginindex != undefined);
 // test the Selection::getcaretindex method
-if (tmp.getcaretindex) {
-       trace("PASSED: Selection::getcaretindex() exists");
-} else {
-       trace("FAILED: Selection::getcaretindex() doesn't exist");
-}
+check (selectionObj.getcaretindex != undefined);
 // test the Selection::getendindex method
-if (tmp.getendindex) {
-       trace("PASSED: Selection::getendindex() exists");
-} else {
-       trace("FAILED: Selection::getendindex() doesn't exist");
-}
+check (selectionObj.getendindex != undefined);
 // test the Selection::getfocus method
-if (tmp.getfocus) {
-       trace("PASSED: Selection::getfocus() exists");
-} else {
-       trace("FAILED: Selection::getfocus() doesn't exist");
-}
+check (selectionObj.getfocus != undefined);
 // test the Selection::removelistener method
-if (tmp.removelistener) {
-       trace("PASSED: Selection::removelistener() exists");
-} else {
-       trace("FAILED: Selection::removelistener() doesn't exist");
-}
+check (selectionObj.removelistener != undefined);
 // test the Selection::setfocus method
-if (tmp.setfocus) {
-       trace("PASSED: Selection::setfocus() exists");
-} else {
-       trace("FAILED: Selection::setfocus() doesn't exist");
-}
+check (selectionObj.setfocus != undefined);
 // test the Selection::set method
-if (tmp.set) {
-       trace("PASSED: Selection::set() exists");
-} else {
-       trace("FAILED: Selection::set() doesn't exist");
-}
+check (selectionObj.set != undefined);
Index: gnash/testsuite/actionscript.all/SharedObject.as
diff -u gnash/testsuite/actionscript.all/SharedObject.as:1.1 
gnash/testsuite/actionscript.all/SharedObject.as:1.2
--- gnash/testsuite/actionscript.all/SharedObject.as:1.1        Thu Feb  2 
00:03:02 2006
+++ gnash/testsuite/actionscript.all/SharedObject.as    Wed Feb 15 10:34:23 2006
@@ -21,36 +21,18 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new SharedObject;
+#include "check.as"
+
+var sharedobjectObj = new SharedObject;
 
 // test the SharedObject constuctor
-if (tmp) {
-       trace("PASSED: SharedObject::SharedObject() constructor");
-} else {
-       trace("FAILED: SharedObject::SharedObject()");          
-}
+check (sharedobjectObj != undefined);
 
 // test the SharedObject::clear method
-if (tmp.clear) {
-       trace("PASSED: SharedObject::clear() exists");
-} else {
-       trace("FAILED: SharedObject::clear() doesn't exist");
-}
+check (sharedobjectObj.clear != undefined);
 // test the SharedObject::flush method
-if (tmp.flush) {
-       trace("PASSED: SharedObject::flush() exists");
-} else {
-       trace("FAILED: SharedObject::flush() doesn't exist");
-}
+check (sharedobjectObj.flush != undefined);
 // test the SharedObject::getlocal method
-if (tmp.getlocal) {
-       trace("PASSED: SharedObject::getlocal() exists");
-} else {
-       trace("FAILED: SharedObject::getlocal() doesn't exist");
-}
+check (sharedobjectObj.getlocal != undefined);
 // test the SharedObject::getsize method
-if (tmp.getsize) {
-       trace("PASSED: SharedObject::getsize() exists");
-} else {
-       trace("FAILED: SharedObject::getsize() doesn't exist");
-}
+check (sharedobjectObj.getsize != undefined);
Index: gnash/testsuite/actionscript.all/Stage.as
diff -u gnash/testsuite/actionscript.all/Stage.as:1.1 
gnash/testsuite/actionscript.all/Stage.as:1.2
--- gnash/testsuite/actionscript.all/Stage.as:1.1       Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Stage.as   Wed Feb 15 10:34:23 2006
@@ -21,24 +21,14 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Stage;
+#include "check.as"
+
+var stageObj = new Stage;
 
 // test the Stage constuctor
-if (tmp) {
-       trace("PASSED: Stage::Stage() constructor");
-} else {
-       trace("FAILED: Stage::Stage()");                
-}
+check (stageObj != undefined);
 
 // test the Stage::addlistener method
-if (tmp.addlistener) {
-       trace("PASSED: Stage::addlistener() exists");
-} else {
-       trace("FAILED: Stage::addlistener() doesn't exist");
-}
+check (stageObj.addlistener != undefined);
 // test the Stage::removelistener method
-if (tmp.removelistener) {
-       trace("PASSED: Stage::removelistener() exists");
-} else {
-       trace("FAILED: Stage::removelistener() doesn't exist");
-}
+check (stageObj.removelistener != undefined);
Index: gnash/testsuite/actionscript.all/System.as
diff -u gnash/testsuite/actionscript.all/System.as:1.1 
gnash/testsuite/actionscript.all/System.as:1.2
--- gnash/testsuite/actionscript.all/System.as:1.1      Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/System.as  Wed Feb 15 10:34:23 2006
@@ -21,42 +21,20 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new System;
+#include "check.as"
+
+var systemObj = new System;
 
 // test the System constuctor
-if (tmp) {
-       trace("PASSED: System::System() constructor");
-} else {
-       trace("FAILED: System::System()");              
-}
+check (systemObj != undefined);
 
 // test the System::security.allowdomain method
-if (tmp.security.allowdomain) {
-       trace("PASSED: System::security.allowdomain() exists");
-} else {
-       trace("FAILED: System::security.allowdomain() doesn't exist");
-}
+check (systemObj.security.allowdomain != undefined);
 // test the System::security.allowinsecuredomain method
-if (tmp.security.allowinsecuredomain) {
-       trace("PASSED: System::security.allowinsecuredomain() exists");
-} else {
-       trace("FAILED: System::security.allowinsecuredomain() doesn't exist");
-}
+check (systemObj.security.allowinsecuredomain != undefined);
 // test the System::security.loadpolicyfile method
-if (tmp.security.loadpolicyfile) {
-       trace("PASSED: System::security.loadpolicyfile() exists");
-} else {
-       trace("FAILED: System::security.loadpolicyfile() doesn't exist");
-}
+check (systemObj.security.loadpolicyfile != undefined);
 // test the System::setclipboard method
-if (tmp.setclipboard) {
-       trace("PASSED: System::setclipboard() exists");
-} else {
-       trace("FAILED: System::setclipboard() doesn't exist");
-}
+check (systemObj.setclipboard != undefined);
 // test the System::showsettings method
-if (tmp.showsettings) {
-       trace("PASSED: System::showsettings() exists");
-} else {
-       trace("FAILED: System::showsettings() doesn't exist");
-}
+check (systemObj.showsettings != undefined);
Index: gnash/testsuite/actionscript.all/TextSnapshot.as
diff -u gnash/testsuite/actionscript.all/TextSnapshot.as:1.1 
gnash/testsuite/actionscript.all/TextSnapshot.as:1.2
--- gnash/testsuite/actionscript.all/TextSnapshot.as:1.1        Thu Feb  2 
00:03:02 2006
+++ gnash/testsuite/actionscript.all/TextSnapshot.as    Wed Feb 15 10:34:23 2006
@@ -21,60 +21,26 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new TextSnapshot;
+#include "check.as"
+
+var textsnapshotObj = new TextSnapshot;
 
 // test the TextSnapshot constuctor
-if (tmp) {
-       trace("PASSED: TextSnapshot::TextSnapshot() constructor");
-} else {
-       trace("FAILED: TextSnapshot::TextSnapshot()");          
-}
+check (textsnapshotObj != undefined);
 
 // test the TextSnapshot::findtext method
-if (tmp.findtext) {
-       trace("PASSED: TextSnapshot::findtext() exists");
-} else {
-       trace("FAILED: TextSnapshot::findtext() doesn't exist");
-}
+check (textsnapshotObj.findtext != undefined);
 // test the TextSnapshot::getcount method
-if (tmp.getcount) {
-       trace("PASSED: TextSnapshot::getcount() exists");
-} else {
-       trace("FAILED: TextSnapshot::getcount() doesn't exist");
-}
+check (textsnapshotObj.getcount != undefined);
 // test the TextSnapshot::getselected method
-if (tmp.getselected) {
-       trace("PASSED: TextSnapshot::getselected() exists");
-} else {
-       trace("FAILED: TextSnapshot::getselected() doesn't exist");
-}
+check (textsnapshotObj.getselected != undefined);
 // test the TextSnapshot::getselectedtext method
-if (tmp.getselectedtext) {
-       trace("PASSED: TextSnapshot::getselectedtext() exists");
-} else {
-       trace("FAILED: TextSnapshot::getselectedtext() doesn't exist");
-}
+check (textsnapshotObj.getselectedtext != undefined);
 // test the TextSnapshot::gettext method
-if (tmp.gettext) {
-       trace("PASSED: TextSnapshot::gettext() exists");
-} else {
-       trace("FAILED: TextSnapshot::gettext() doesn't exist");
-}
+check (textsnapshotObj.gettext != undefined);
 // test the TextSnapshot::hittesttextnearpos method
-if (tmp.hittesttextnearpos) {
-       trace("PASSED: TextSnapshot::hittesttextnearpos() exists");
-} else {
-       trace("FAILED: TextSnapshot::hittesttextnearpos() doesn't exist");
-}
+check (textsnapshotObj.hittesttextnearpos != undefined);
 // test the TextSnapshot::setselectcolor method
-if (tmp.setselectcolor) {
-       trace("PASSED: TextSnapshot::setselectcolor() exists");
-} else {
-       trace("FAILED: TextSnapshot::setselectcolor() doesn't exist");
-}
+check (textsnapshotObj.setselectcolor != undefined);
 // test the TextSnapshot::setselected method
-if (tmp.setselected) {
-       trace("PASSED: TextSnapshot::setselected() exists");
-} else {
-       trace("FAILED: TextSnapshot::setselected() doesn't exist");
-}
+check (textsnapshotObj.setselected != undefined);
Index: gnash/testsuite/actionscript.all/Video.as
diff -u gnash/testsuite/actionscript.all/Video.as:1.1 
gnash/testsuite/actionscript.all/Video.as:1.2
--- gnash/testsuite/actionscript.all/Video.as:1.1       Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/Video.as   Wed Feb 15 10:34:23 2006
@@ -21,24 +21,14 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new Video;
+#include "check.as"
+
+var videoObj = new Video;
 
 // test the Video constuctor
-if (tmp) {
-       trace("PASSED: Video::Video() constructor");
-} else {
-       trace("FAILED: Video::Video()");                
-}
+check (videoObj != undefined);
 
 // test the Video::attach method
-if (tmp.attach) {
-       trace("PASSED: Video::attach() exists");
-} else {
-       trace("FAILED: Video::attach() doesn't exist");
-}
+check (videoObj.attach != undefined);
 // test the Video::clear method
-if (tmp.clear) {
-       trace("PASSED: Video::clear() exists");
-} else {
-       trace("FAILED: Video::clear() doesn't exist");
-}
+check (videoObj.clear != undefined);
Index: gnash/testsuite/actionscript.all/gen-test.sh
diff -u gnash/testsuite/actionscript.all/gen-test.sh:1.1 
gnash/testsuite/actionscript.all/gen-test.sh:1.2
--- gnash/testsuite/actionscript.all/gen-test.sh:1.1    Thu Feb  2 00:03:02 2006
+++ gnash/testsuite/actionscript.all/gen-test.sh        Wed Feb 15 10:34:23 2006
@@ -41,6 +41,7 @@
 lowname=`echo ${asname} | tr '[A-Z]' '[a-z]'`
 upname=`echo ${asname}  | tr '[a-z]' '[A-Z]'` 
 outname=${asname}.as
+asobjname="${lowname}Obj";
 
 if test -f ${outname}; then
     echo ${outname} exists!
@@ -86,14 +87,12 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-var tmp = new ${asname};
+#include "check.as"
+
+var ${asobjname} = new ${asname};
 
 // test the ${asname} constuctor
-if (tmp) {
-       trace("PASSED: ${asname}::${asname}() constructor");
-} else {
-       trace("FAILED: ${asname}::${asname}()");                
-}
+check (${asobjname} != undefined);
 
 EOF
 
@@ -101,10 +100,6 @@
 newi=`echo $i | sed -e 's/)//g' | sed -e 's/(//g' -e 's/)//g' | tr '[A-Z]' 
'[a-z]'`
 cat <<EOF>>${outname}
 // test the ${asname}::${newi} method
-if (tmp.$newi) {
-       trace("PASSED: ${asname}::${newi}() exists");
-} else {
-       trace("FAILED: ${asname}::${newi}() doesn't exist");
-}
+check (${asobjname}.$newi != undefined);
 EOF
 done




reply via email to

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