[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10900: add more tests from branch.
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10900: add more tests from branch. |
Date: |
Wed, 20 May 2009 16:58:46 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 10900
committer: address@hidden
branch nick: trunk
timestamp: Wed 2009-05-20 16:58:46 -0600
message:
add more tests from branch.
added:
testsuite/as3/classes.all/system/ApplicationDomain_as.hx
testsuite/as3/classes.all/system/Capabilities_as.hx
testsuite/as3/classes.all/system/IMEConversionMode_as.hx
testsuite/as3/classes.all/system/IME_as.hx
testsuite/as3/classes.all/system/LoaderContext_as.hx
testsuite/as3/classes.all/system/SecurityDomain_as.hx
testsuite/as3/classes.all/system/SecurityPanel_as.hx
testsuite/as3/classes.all/system/Security_as.hx
testsuite/as3/classes.all/system/System_as.hx
testsuite/as3/classes.all/ui/ContextMenuBuiltInItems_as.hx
testsuite/as3/classes.all/ui/ContextMenuItem_as.hx
testsuite/as3/classes.all/ui/ContextMenu_as.hx
modified:
testsuite/as3/classes.all/Makefile.am
testsuite/as3/classes.all/system/system.am
------------------------------------------------------------
revno: 10896.1.6
committer: address@hidden
branch nick: as3
timestamp: Wed 2009-05-20 16:54:52 -0600
message:
only build the two test cases that work, Capabilities and System.
modified:
testsuite/as3/classes.all/Makefile.am
testsuite/as3/classes.all/system/system.am
------------------------------------------------------------
revno: 10896.1.7
committer: address@hidden
branch nick: as3
timestamp: Wed 2009-05-20 16:56:37 -0600
message:
add more converted test cases.
added:
testsuite/as3/classes.all/system/ApplicationDomain_as.hx
testsuite/as3/classes.all/system/Capabilities_as.hx
testsuite/as3/classes.all/system/IMEConversionMode_as.hx
testsuite/as3/classes.all/system/IME_as.hx
testsuite/as3/classes.all/system/LoaderContext_as.hx
testsuite/as3/classes.all/system/SecurityDomain_as.hx
testsuite/as3/classes.all/system/SecurityPanel_as.hx
testsuite/as3/classes.all/system/Security_as.hx
testsuite/as3/classes.all/system/System_as.hx
testsuite/as3/classes.all/ui/ContextMenuBuiltInItems_as.hx
testsuite/as3/classes.all/ui/ContextMenuItem_as.hx
testsuite/as3/classes.all/ui/ContextMenu_as.hx
=== modified file 'testsuite/as3/classes.all/Makefile.am'
--- a/testsuite/as3/classes.all/Makefile.am 2009-05-20 21:12:55 +0000
+++ b/testsuite/as3/classes.all/Makefile.am 2009-05-20 22:54:52 +0000
@@ -59,7 +59,7 @@
# # include $(srcdir)/sampler/sampler.am
# # HAXE doesn't appear to support the Security classes
# # include $(srcdir)/security/security.am
-# include $(srcdir)/system/system.am
+include $(srcdir)/system/system.am
# # include $(srcdir)/text/text.am
include $(srcdir)/ui/ui.am
# # include $(srcdir)/utils/utils.am
@@ -69,13 +69,13 @@
SUFFIXES = hx swf
.hx.swf:
- -newname=`echo $(@F) | sed -e 's:_as:_asv9:'`; \
+ address@hidden $(@F) | sed -e 's:_as:_asv9:'`; \
$(HAXE) -swf-version 9 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
- -newname=`echo $(@F) | sed -e 's:_as:_asv8:'`; \
+ address@hidden $(@F) | sed -e 's:_as:_asv8:'`; \
$(HAXE) -swf-version 8 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
- -newname=`echo $(@F) | sed -e 's:_as:_asv7:'`; \
+ address@hidden $(@F) | sed -e 's:_as:_asv7:'`; \
$(HAXE) -swf-version 7 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
- -newname=`echo $(@F) | sed -e 's:_as:_asv6:'`; \
+ address@hidden $(@F) | sed -e 's:_as:_asv6:'`; \
$(HAXE) -swf-version 6 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
CLEANFILES = \
=== added file 'testsuite/as3/classes.all/system/ApplicationDomain_as.hx'
--- a/testsuite/as3/classes.all/system/ApplicationDomain_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/ApplicationDomain_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,97 @@
+// ApplicationDomain_as3.hx: ActionScript 3 "ApplicationDomain" class, for
Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.ApplicationDomain;
+import flash.display.MovieClip;
+#else
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class ApplicationDomain_as {
+ static function main() {
+ var x1:ApplicationDomain = new ApplicationDomain();
+
+ // Make sure we actually get a valid class
+ if (x1 != null) {
+ DejaGnu.pass("ApplicationDomain class exists");
+ } else {
+ DejaGnu.fail("ApplicationDomain class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+// if (x1.currentDomain == currentDomain) {
+// DejaGnu.pass("ApplicationDomain.currentDomain property exists");
+// } else {
+// DejaGnu.fail("ApplicationDomain.currentDomain property doesn't
exist");
+// }
+// if (x1.domainMemory == ByteArray) {
+// DejaGnu.pass("ApplicationDomain.domainMemory property exists");
+// } else {
+// DejaGnu.fail("ApplicationDomain.domainMemory property doesn't
exist");
+// }
+// if (x1.MIN == DOMAIN) {
+// DejaGnu.pass("ApplicationDomain.MIN property exists");
+// } else {
+// DejaGnu.fail("ApplicationDomain.MIN property doesn't exist");
+// }
+// if (x1.parentDomain == parentDomain) {
+// DejaGnu.pass("ApplicationDomain.parentDomain property exists");
+// } else {
+// DejaGnu.fail("ApplicationDomain.parentDomain property doesn't
exist");
+// }
+
+// Tests to see if all the methods exist. All these do is test for
+// existance of a method, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+
+// if (x1.getDefinition == Object) {
+// DejaGnu.pass("ApplicationDomain::getDefinition() method exists");
+// } else {
+// DejaGnu.fail("ApplicationDomain::getDefinition() method doesn't
exist");
+// }
+ if (x1.hasDefinition != null) {
+ DejaGnu.pass("ApplicationDomain::hasDefinition() method exists");
+ } else {
+ DejaGnu.fail("ApplicationDomain::hasDefinition() method doesn't
exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/Capabilities_as.hx'
--- a/testsuite/as3/classes.all/system/Capabilities_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/Capabilities_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,212 @@
+// Capabilities_as3.hx: ActionScript 3 "Capabilities" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.Capabilities;
+import flash.display.MovieClip;
+#else
+import flash.Capabilities;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class Capabilities_as {
+ static function main() {
+ // Make sure we actually get a valid class
+ if (Capabilities != null) {
+ DejaGnu.pass("Capabilities class exists");
+ } else {
+ DejaGnu.fail("Capabilities class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (Capabilities.avHardwareDisable == false) {
+ DejaGnu.pass("Capabilities.avHardwareDisable property exists");
+ } else {
+ DejaGnu.fail("Capabilities.avHardwareDisable property doesn't
exist");
+ }
+ if (Capabilities.hasAccessibility == false) {
+ DejaGnu.pass("Capabilities.hasAccessibility property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasAccessibility property doesn't
exist");
+ }
+ if (Capabilities.hasAudio == false) {
+ DejaGnu.pass("Capabilities.hasAudio property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasAudio property doesn't exist");
+ }
+ if (Capabilities.hasAudioEncoder == false) {
+ DejaGnu.pass("Capabilities.hasAudioEncoder property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasAudioEncoder property doesn't exist");
+ }
+ if (Capabilities.hasEmbeddedVideo == false) {
+ DejaGnu.pass("Capabilities.hasEmbeddedVideo property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasEmbeddedVideo property doesn't
exist");
+ }
+ if (Capabilities.hasIME == false) {
+ DejaGnu.pass("Capabilities.hasIME property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasIME property doesn't exist");
+ }
+ if (Capabilities.hasMP3 == false) {
+ DejaGnu.pass("Capabilities.hasMP3 property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasMP3 property doesn't exist");
+ }
+ if (Capabilities.hasPrinting == false) {
+ DejaGnu.pass("Capabilities.hasPrinting property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasPrinting property doesn't exist");
+ }
+ if (Capabilities.hasScreenBroadcast == false) {
+ DejaGnu.pass("Capabilities.hasScreenBroadcast property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasScreenBroadcast property doesn't
exist");
+ }
+ if (Capabilities.hasScreenPlayback == false) {
+ DejaGnu.pass("Capabilities.hasScreenPlayback property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasScreenPlayback property doesn't
exist");
+ }
+ if (Capabilities.hasStreamingAudio == false) {
+ DejaGnu.pass("Capabilities.hasStreamingAudio property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasStreamingAudio property doesn't
exist");
+ }
+ if (Capabilities.hasStreamingVideo == false) {
+ DejaGnu.pass("Capabilities.hasStreamingVideo property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasStreamingVideo property doesn't
exist");
+ }
+ if (Capabilities.hasTLS == false) {
+ DejaGnu.pass("Capabilities.hasTLS property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasTLS property doesn't exist");
+ }
+ if (Capabilities.hasVideoEncoder == false) {
+ DejaGnu.pass("Capabilities.hasVideoEncoder property exists");
+ } else {
+ DejaGnu.fail("Capabilities.hasVideoEncoder property doesn't exist");
+ }
+ if (Capabilities.isDebugger == false) {
+ DejaGnu.pass("Capabilities.isDebugger property exists");
+ } else {
+ DejaGnu.fail("Capabilities.isDebugger property doesn't exist");
+ }
+// if (Capabilities.isEmbeddedInAcrobat == false) {
+// DejaGnu.pass("Capabilities.isEmbeddedInAcrobat property exists");
+// } else {
+// DejaGnu.fail("Capabilities.isEmbeddedInAcrobat property doesn't
exist");
+// }
+ if (Capabilities.language == null) {
+ DejaGnu.pass("Capabilities.language property exists");
+ } else {
+ DejaGnu.fail("Capabilities.language property doesn't exist");
+ }
+// AIR only
+// if (Capabilities.languages == 0) {
+// DejaGnu.pass("Capabilities.languages property exists");
+// } else {
+// DejaGnu.fail("Capabilities.languages property doesn't exist");
+// }
+ if (Capabilities.localFileReadDisable == false) {
+ DejaGnu.pass("Capabilities.localFileReadDisable property exists");
+ } else {
+ DejaGnu.fail("Capabilities.localFileReadDisable property doesn't
exist");
+ }
+ if (Capabilities.manufacturer == null) {
+ DejaGnu.pass("Capabilities.manufacturer property exists");
+ } else {
+ DejaGnu.fail("Capabilities.manufacturer property doesn't exist");
+ }
+ if (Capabilities.os == null) {
+ DejaGnu.pass("Capabilities.os property exists");
+ } else {
+ DejaGnu.fail("Capabilities.os property doesn't exist");
+ }
+ if (Capabilities.pixelAspectRatio == 0) {
+ DejaGnu.pass("Capabilities.pixelAspectRatio property exists");
+ } else {
+ DejaGnu.fail("Capabilities.pixelAspectRatio property doesn't
exist");
+ }
+ if (Capabilities.playerType == null) {
+ DejaGnu.pass("Capabilities.playerType property exists");
+ } else {
+ DejaGnu.fail("Capabilities.playerType property doesn't exist");
+ }
+ if (Capabilities.screenColor == null) {
+ DejaGnu.pass("Capabilities.screenColor property exists");
+ } else {
+ DejaGnu.fail("Capabilities.screenColor property doesn't exist");
+ }
+ if (Capabilities.screenDPI == 0) {
+ DejaGnu.pass("Capabilities.screenDPI property exists");
+ } else {
+ DejaGnu.fail("Capabilities.screenDPI property doesn't exist");
+ }
+ if (Capabilities.screenResolutionX == 0) {
+ DejaGnu.pass("Capabilities.screenResolutionX property exists");
+ } else {
+ DejaGnu.fail("Capabilities.screenResolutionX property doesn't
exist");
+ }
+ if (Capabilities.screenResolutionY == 0) {
+ DejaGnu.pass("Capabilities.screenResolutionY property exists");
+ } else {
+ DejaGnu.fail("Capabilities.screenResolutionY property doesn't
exist");
+ }
+ if (Capabilities.serverString == null) {
+ DejaGnu.pass("Capabilities.serverString property exists");
+ } else {
+ DejaGnu.fail("Capabilities.serverString property doesn't exist");
+ }
+ if (Capabilities.version == null) {
+ DejaGnu.pass("Capabilities.version property exists");
+ } else {
+ DejaGnu.fail("Capabilities.version property doesn't exist");
+ }
+
+ if (Capabilities.avHardwareDisable == false) {
+ DejaGnu.pass("Capabilities.avHardwareDisable property exists");
+ } else {
+ DejaGnu.fail("Capabilities.avHardwareDisable property doesn't
exist");
+ }
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/IMEConversionMode_as.hx'
--- a/testsuite/as3/classes.all/system/IMEConversionMode_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/IMEConversionMode_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,100 @@
+// IMEConversionMode_as3.hx: ActionScript 3 "IMEConversionMode" class, for
Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.IMEConversionMode;
+import flash.display.MovieClip;
+#else
+import flash.IMEConversionMode;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class IMEConversionMode_as {
+ static function main() {
+ // Make sure we actually get a valid class
+ if (IMEConversionMode.ALPHANUMERIC_FULL != null) {
+ DejaGnu.pass("IMEConversionMode.ALPHANUMERIC_FULL constant
exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.ALPHANUMERIC_FULL constant doesn't
exist");
+ }
+
+ if (IMEConversionMode.ALPHANUMERIC_HALF != null) {
+ DejaGnu.pass("IMEConversionMode.ALPHANUMERIC_HALF constant
exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.ALPHANUMERIC_HALF constant doesn't
exist");
+ }
+
+ if (IMEConversionMode.CHINESE != null) {
+ DejaGnu.pass("IMEConversionMode.CHINESE constant exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.CHINESE constant doesn't exist");
+ }
+
+ if (IMEConversionMode.JAPANESE_HIRAGANA != null) {
+ DejaGnu.pass("IMEConversionMode.JAPANESE_HIRAGANA constant
exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.JAPANESE_HIRAGANA constant doesn't
exist");
+ }
+
+ if (IMEConversionMode.JAPANESE_KATAKANA_FULL != null) {
+ DejaGnu.pass("IMEConversionMode.JAPANESE_KATAKANA_FULL constant
exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.JAPANESE_KATAKANA_FULL constant
doesn't exist");
+ }
+
+ if (IMEConversionMode.JAPANESE_KATAKANA_HALF != null) {
+ DejaGnu.pass("IMEConversionMode.JAPANESE_KATAKANA_HALF constant
exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.JAPANESE_KATAKANA_HALF constant
doesn't exist");
+ }
+
+ if (IMEConversionMode.KOREAN != null) {
+ DejaGnu.pass("IMEConversionMode.KOREAN constant exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.KOREAN constant doesn't exist");
+ }
+
+ if (IMEConversionMode.UNKNOWN != null) {
+ DejaGnu.pass("IMEConversionModeUNKNOWN. constant exists");
+ } else {
+ DejaGnu.fail("IMEConversionMode.UNKNOWN constant doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/IME_as.hx'
--- a/testsuite/as3/classes.all/system/IME_as.hx 1970-01-01 00:00:00
+0000
+++ b/testsuite/as3/classes.all/system/IME_as.hx 2009-05-20 22:56:37
+0000
@@ -0,0 +1,79 @@
+// IME_as3.hx: ActionScript 3 "IME" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.IME;
+import flash.display.MovieClip;
+#else
+import flash.IME;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class IME_as {
+ static function main() {
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (IME.conversionMode == null) {
+ DejaGnu.pass("IME.conversionMode property exists");
+ } else {
+ DejaGnu.fail("IME.conversionMode property doesn't exist");
+ }
+ if (IME.enabled == false) {
+ DejaGnu.pass("IME.enabled property exists");
+ } else {
+ DejaGnu.fail("IME.enabled property doesn't exist");
+ }
+
+// Tests to see if all the methods exist. All these do is test for
+// existance of a method, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (IME.doConversion == null) {
+ DejaGnu.pass("IME::doConversion() method exists");
+ } else {
+ DejaGnu.fail("IME::doConversion() method doesn't exist");
+ }
+ if (IME.setCompositionString == null) {
+ DejaGnu.pass("IME::setCompositionString() method exists");
+ } else {
+ DejaGnu.fail("IME::setCompositionString() method doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/LoaderContext_as.hx'
--- a/testsuite/as3/classes.all/system/LoaderContext_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/LoaderContext_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,84 @@
+// LoaderContext_as3.hx: ActionScript 3 "LoaderContext" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.LoaderContext;
+import flash.display.MovieClip;
+#else
+import flash.LoaderContext;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class LoaderContext_as {
+ static function main() {
+ var x1:LoaderContext = new LoaderContext();
+
+ // Make sure we actually get a valid class
+ if (x1 != null) {
+ DejaGnu.pass("LoaderContext class exists");
+ } else {
+ DejaGnu.fail("LoaderContext class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+// FIXME: haxe doesn't appear to support these properties from the spec.
+// if (x1.allowLoadBytesCodeExecution == false) {
+// DejaGnu.pass("LoaderContext.allowLoadBytesCodeExecution property
exists");
+// } else {
+// DejaGnu.fail("LoaderContext.allowLoadBytesCodeExecution property
doesn't exist");
+// }
+// if (x1.applicationDomain == applicationDomain) {
+// DejaGnu.pass("LoaderContext.applicationDomain property exists");
+// } else {
+// DejaGnu.fail("LoaderContext.applicationDomain property doesn't
exist");
+// }
+ if (x1.checkPolicyFile == false) {
+ DejaGnu.pass("LoaderContext.checkPolicyFile property exists");
+ } else {
+ DejaGnu.fail("LoaderContext.checkPolicyFile property doesn't
exist");
+ }
+// if (x1.securityDomain == securityDomain) {
+// DejaGnu.pass("LoaderContext.securityDomain property exists");
+// } else {
+// DejaGnu.fail("LoaderContext.securityDomain property doesn't exist");
+// }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/SecurityDomain_as.hx'
--- a/testsuite/as3/classes.all/system/SecurityDomain_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/SecurityDomain_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,59 @@
+// SecurityDomain_as3.hx: ActionScript 3 "SecurityDomain" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.SecurityDomain;
+import flash.display.MovieClip;
+#else
+import flash.SecurityDomain;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class SecurityDomain_as {
+ static function main() {
+
+ // Make sure we actually get a valid class
+ if (SecurityDomain.currentDomain != null) {
+ DejaGnu.pass("SecurityDomain class exists");
+ } else {
+ DejaGnu.fail("SecurityDomain class doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/SecurityPanel_as.hx'
--- a/testsuite/as3/classes.all/system/SecurityPanel_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/system/SecurityPanel_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,59 @@
+// SecurityPanel_as3.hx: ActionScript 3 "SecurityPanel" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.SecurityPanel;
+import flash.display.MovieClip;
+#else
+import flash.SecurityPanel;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class SecurityPanel_as {
+ static function main() {
+
+ // Make sure we actually get a valid class
+ if (SecurityPanel != null) {
+ DejaGnu.pass("SecurityPanel class exists");
+ } else {
+ DejaGnu.fail("SecurityPanel class doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/Security_as.hx'
--- a/testsuite/as3/classes.all/system/Security_as.hx 1970-01-01 00:00:00
+0000
+++ b/testsuite/as3/classes.all/system/Security_as.hx 2009-05-20 22:56:37
+0000
@@ -0,0 +1,122 @@
+// Security_as3.hx: ActionScript 3 "Security" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.Security;
+import flash.display.MovieClip;
+#else
+import flash.Security;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class Security_as {
+ static function main() {
+
+ // Make sure we actually get a valid class
+ if (Security != null) {
+ DejaGnu.pass("Security class exists");
+ } else {
+ DejaGnu.fail("Security class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (Security.exactSettings == false) {
+ DejaGnu.pass("Security.exactSettings property exists");
+ } else {
+ DejaGnu.fail("Security.exactSettings property doesn't exist");
+ }
+ if (Security.sandboxType == null) {
+ DejaGnu.pass("Security.sandboxType property exists");
+ } else {
+ DejaGnu.fail("Security.sandboxType property doesn't exist");
+ }
+
+// Tests to see if all the methods exist. All these do is test for
+// existance of a method, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (Security.allowDomain == null) {
+ DejaGnu.pass("Security::allowDomain() method exists");
+ } else {
+ DejaGnu.fail("Security::allowDomain() method doesn't exist");
+ }
+ if (Security.allowInsecureDomain == null) {
+ DejaGnu.pass("Security::allowInsecureDomain() method exists");
+ } else {
+ DejaGnu.fail("Security::allowInsecureDomain() method doesn't
exist");
+ }
+ if (Security.loadPolicyFile != null) {
+ DejaGnu.pass("Security::loadPolicyFile() method exists");
+ } else {
+ DejaGnu.fail("Security::loadPolicyFile() method doesn't exist");
+ }
+ if (Security.showSettings != null) {
+ DejaGnu.pass("Security::showSettings() method exists");
+ } else {
+ DejaGnu.fail("Security::showSettings() method doesn't exist");
+ }
+// AIR only
+// if (Security.APPLICATION == null) {
+// DejaGnu.pass("Security::APPLICATION() method exists");
+// } else {
+// DejaGnu.fail("Security::APPLICATION() method doesn't exist");
+// }
+ if (Security.LOCAL_TRUSTED != null) {
+ DejaGnu.pass("Security::LOCAL_TRUSTED() method exists");
+ } else {
+ DejaGnu.fail("Security::LOCAL_TRUSTED() method doesn't exist");
+ }
+ if (Security.LOCAL_WITH_FILE != null) {
+ DejaGnu.pass("Security::LOCAL_WITH_FILE() method exists");
+ } else {
+ DejaGnu.fail("Security::LOCAL_WITH_FILE() method doesn't exist");
+ }
+ if (Security.LOCAL_WITH_NETWORK != null) {
+ DejaGnu.pass("Security::LOCAL() method exists");
+ } else {
+ DejaGnu.fail("Security::LOCAL() method doesn't exist");
+ }
+ if (Security.REMOTE != null) {
+ DejaGnu.pass("Security::REMOTE() method exists");
+ } else {
+ DejaGnu.fail("Security::REMOTE() method doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/system/System_as.hx'
--- a/testsuite/as3/classes.all/system/System_as.hx 1970-01-01 00:00:00
+0000
+++ b/testsuite/as3/classes.all/system/System_as.hx 2009-05-20 22:56:37
+0000
@@ -0,0 +1,132 @@
+// System_as3.hx: ActionScript 3 "System" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.system.System;
+import flash.display.MovieClip;
+#else
+import flash.System;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class System_as {
+ static function main() {
+ if (Type.typeof(System) == ValueType.TObject) {
+ DejaGnu.pass("System class exists");
+ } else {
+ DejaGnu.fail("System class doesn't exist");
+ }
+
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+// if (System.ime == ime) {
+// DejaGnu.pass("System.ime property exists");
+// } else {
+// DejaGnu.fail("System.ime property doesn't exist");
+// }
+#if flash9
+ if (System.totalMemory == 0) {
+ DejaGnu.pass("System.totalMemory property exists");
+ } else {
+ DejaGnu.fail("System.totalMemory property doesn't exist");
+ }
+#end
+
+#if flash6
+ if (System.exactSettings == false) {
+ DejaGnu.pass("System.exactSettings property exists");
+ } else {
+ DejaGnu.fail("System.exactSettings property doesn't exist");
+ }
+ if (System.useCodepage == false) {
+ DejaGnu.pass("System.useCodepage property exists");
+ } else {
+ DejaGnu.fail("System.useCodepage property doesn't exist");
+ }
+#end
+#if flash9
+ if (System.useCodePage == false) {
+ DejaGnu.pass("System.useCodePage property exists");
+ } else {
+ DejaGnu.fail("System.useCodePage property doesn't exist");
+ }
+#end
+
+// Tests to see if all the methods exist. All these do is test for
+// existance of a method, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+#if flash9
+ if (System.exit == null) {
+ DejaGnu.pass("System::exit() method exists");
+ } else {
+ DejaGnu.fail("System::exit() method doesn't exist");
+ }
+ if (System.gc == null) {
+ DejaGnu.pass("System::gc() method exists");
+ } else {
+ DejaGnu.fail("System::gc() method doesn't exist");
+ }
+ if (System.pause == null) {
+ DejaGnu.pass("System::pause() method exists");
+ } else {
+ DejaGnu.fail("System::pause() method doesn't exist");
+ }
+ if (System.resume == null) {
+ DejaGnu.pass("System::resume() method exists");
+ } else {
+ DejaGnu.fail("System::resume() method doesn't exist");
+ }
+#end
+
+#if flash6
+ if (System.setClipboard == null) {
+ DejaGnu.pass("System::setClipboard() method exists");
+ } else {
+ DejaGnu.fail("System::setClipboard() method doesn't exist");
+ }
+
+ if (System.showSettings == null) {
+ DejaGnu.pass("System::showSettings() method exists");
+ } else {
+ DejaGnu.fail("System::showSettings() method doesn't exist");
+ }
+#end
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== modified file 'testsuite/as3/classes.all/system/system.am'
--- a/testsuite/as3/classes.all/system/system.am 2009-05-20 16:47:49
+0000
+++ b/testsuite/as3/classes.all/system/system.am 2009-05-20 22:54:52
+0000
@@ -20,40 +20,40 @@
SYSTEM_TESTS =
-if BUILD_APPLICATIONDOMAIN_AS3
-SYSTEM_TESTS += system/ApplicationDomain_as3.swf
-endif
+# if BUILD_APPLICATIONDOMAIN_AS3
+# SYSTEM_TESTS += system/ApplicationDomain_as.swf
+# endif
if BUILD_CAPABILITIES_AS3
-SYSTEM_TESTS += system/Capabilities_as3.swf
-endif
-
-if BUILD_IMECONVERSIONMODE_AS3
-SYSTEM_TESTS += system/IMEConversionMode_as3.swf
-endif
-
-if BUILD_IME_AS3
-SYSTEM_TESTS += system/IME_as3.swf
-endif
-
-if BUILD_LOADERCONTEXT_AS3
-SYSTEM_TESTS += system/LoaderContext_as3.swf
-endif
-
-if BUILD_SECURITYDOMAIN_AS3
-SYSTEM_TESTS += system/SecurityDomain_as3.swf
-endif
-
-if BUILD_SECURITYPANEL_AS3
-SYSTEM_TESTS += system/SecurityPanel_as3.swf
-endif
-
-if BUILD_SECURITY_AS3
-SYSTEM_TESTS += system/Security_as3.swf
-endif
+SYSTEM_TESTS += system/Capabilities_as.swf
+endif
+
+# if BUILD_IMECONVERSIONMODE_AS3
+# SYSTEM_TESTS += system/IMEConversionMode_as.swf
+# endif
+
+# if BUILD_IME_AS3
+# SYSTEM_TESTS += system/IME_as.swf
+# endif
+
+# if BUILD_LOADERCONTEXT_AS3
+# SYSTEM_TESTS += system/LoaderContext_as.swf
+# endif
+
+# if BUILD_SECURITYDOMAIN_AS3
+# SYSTEM_TESTS += system/SecurityDomain_as.swf
+# endif
+
+# if BUILD_SECURITYPANEL_AS3
+# SYSTEM_TESTS += system/SecurityPanel_as.swf
+# endif
+
+# if BUILD_SECURITY_AS3
+# SYSTEM_TESTS += system/Security_as.swf
+# endif
if BUILD_SYSTEM_AS3
-SYSTEM_TESTS += system/System_as3.swf
+SYSTEM_TESTS += system/System_as.swf
endif
check_SCRIPTS += $(SYSTEM_TESTS)
=== added file 'testsuite/as3/classes.all/ui/ContextMenuBuiltInItems_as.hx'
--- a/testsuite/as3/classes.all/ui/ContextMenuBuiltInItems_as.hx
1970-01-01 00:00:00 +0000
+++ b/testsuite/as3/classes.all/ui/ContextMenuBuiltInItems_as.hx
2009-05-20 22:56:37 +0000
@@ -0,0 +1,103 @@
+// ContextMenuBuiltInItems_as3.hx: ActionScript 3 "ContextMenuBuiltInItems"
class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.ui.ContextMenuBuiltInItems;
+import flash.display.MovieClip;
+#else
+import flash.ContextMenuBuiltInItems;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class ContextMenuBuiltInItems_as3 {
+ static function main() {
+ var x1:ContextMenuBuiltInItems = new ContextMenuBuiltInItems();
+
+ // Make sure we actually get a valid class
+ if (x1 != null) {
+ DejaGnu.pass("ContextMenuBuiltInItems class exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (x1.forwardAndBack == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.forwardAndBack property
exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.forwardAndBack property
doesn't exist");
+ }
+ if (x1.loop == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.loop property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.loop property doesn't exist");
+ }
+ if (x1.play == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.play property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.play property doesn't exist");
+ }
+ if (x1.print == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.print property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.print property doesn't
exist");
+ }
+ if (x1.quality == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.quality property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.quality property doesn't
exist");
+ }
+ if (x1.rewind == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.rewind property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.rewind property doesn't
exist");
+ }
+ if (x1.save == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.save property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.save property doesn't exist");
+ }
+ if (x1.zoom == false) {
+ DejaGnu.pass("ContextMenuBuiltInItems.zoom property exists");
+ } else {
+ DejaGnu.fail("ContextMenuBuiltInItems.zoom property doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/ui/ContextMenuItem_as.hx'
--- a/testsuite/as3/classes.all/ui/ContextMenuItem_as.hx 1970-01-01
00:00:00 +0000
+++ b/testsuite/as3/classes.all/ui/ContextMenuItem_as.hx 2009-05-20
22:56:37 +0000
@@ -0,0 +1,78 @@
+// ContextMenuItem_as3.hx: ActionScript 3 "ContextMenuItem" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.ui.ContextMenuItem;
+import flash.display.MovieClip;
+#else
+import flash.ContextMenuItem;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class ContextMenuItem_as3 {
+ static function main() {
+ var x1:ContextMenuItem = new ContextMenuItem();
+
+ // Make sure we actually get a valid class
+ if (x1 != null) {
+ DejaGnu.pass("ContextMenuItem class exists");
+ } else {
+ DejaGnu.fail("ContextMenuItem class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (x1.caption == null) {
+ DejaGnu.pass("ContextMenuItem.caption property exists");
+ } else {
+ DejaGnu.fail("ContextMenuItem.caption property doesn't exist");
+ }
+ if (x1.separatorBefore == false) {
+ DejaGnu.pass("ContextMenuItem.separatorBefore property exists");
+ } else {
+ DejaGnu.fail("ContextMenuItem.separatorBefore property doesn't
exist");
+ }
+ if (x1.visible == false) {
+ DejaGnu.pass("ContextMenuItem.visible property exists");
+ } else {
+ DejaGnu.fail("ContextMenuItem.visible property doesn't exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
=== added file 'testsuite/as3/classes.all/ui/ContextMenu_as.hx'
--- a/testsuite/as3/classes.all/ui/ContextMenu_as.hx 1970-01-01 00:00:00
+0000
+++ b/testsuite/as3/classes.all/ui/ContextMenu_as.hx 2009-05-20 22:56:37
+0000
@@ -0,0 +1,97 @@
+// ContextMenu_as3.hx: ActionScript 3 "ContextMenu" class, for Gnash.
+//
+// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
+// after any hand editing loosing changes.
+//
+// Copyright (C) 2009 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
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// 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
+//
+
+// This test case must be processed by CPP before compiling to include the
+// DejaGnu.hx header file for the testing framework support.
+
+#if flash9
+import flash.ui.ContextMenu;
+import flash.display.MovieClip;
+#else
+import flash.ContextMenu;
+import flash.MovieClip;
+#end
+import flash.Lib;
+import Type;
+
+// import our testing API
+import DejaGnu;
+
+// Class must be named with the _as3 suffix, as that's the same name as the
file.
+class ContextMenu_as3 {
+ static function main() {
+ var x1:ContextMenu = new ContextMenu();
+
+ // Make sure we actually get a valid class
+ if (x1 != null) {
+ DejaGnu.pass("ContextMenu class exists");
+ } else {
+ DejaGnu.fail("ContextMenu class doesn't exist");
+ }
+// Tests to see if all the properties exist. All these do is test for
+// existance of a property, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (x1.builtInItems == builtInItems) {
+ DejaGnu.pass("ContextMenu.builtInItems property exists");
+ } else {
+ DejaGnu.fail("ContextMenu.builtInItems property doesn't exist");
+ }
+ if (x1.customItems == 0) {
+ DejaGnu.pass("ContextMenu.customItems property exists");
+ } else {
+ DejaGnu.fail("ContextMenu.customItems property doesn't exist");
+ }
+ if (x1.items == 0) {
+ DejaGnu.pass("ContextMenu.items property exists");
+ } else {
+ DejaGnu.fail("ContextMenu.items property doesn't exist");
+ }
+
+// Tests to see if all the methods exist. All these do is test for
+// existance of a method, and don't test the functionality at all. This
+// is primarily useful only to test completeness of the API implementation.
+ if (x1.ContextMenu == ContextMenu) {
+ DejaGnu.pass("ContextMenu::ContextMenu() method exists");
+ } else {
+ DejaGnu.fail("ContextMenu::ContextMenu() method doesn't exist");
+ }
+ if (x1.display == null) {
+ DejaGnu.pass("ContextMenu::display() method exists");
+ } else {
+ DejaGnu.fail("ContextMenu::display() method doesn't exist");
+ }
+ if (x1.hideBuiltInItems == null) {
+ DejaGnu.pass("ContextMenu::hideBuiltInItems() method exists");
+ } else {
+ DejaGnu.fail("ContextMenu::hideBuiltInItems() method doesn't
exist");
+ }
+
+ // Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+ }
+}
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10900: add more tests from branch.,
rob <=