[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9736: add external test case and Mak
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9736: add external test case and Makefile fragment. |
Date: |
Fri, 15 May 2009 17:43:50 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 9736
committer: address@hidden
branch nick: avm2
timestamp: Fri 2009-05-15 17:43:50 -0600
message:
add external test case and Makefile fragment.
modified:
testsuite/as3/classes.all/Makefile.am
testsuite/as3/classes.all/external/ExternalInterface_as3.hx
testsuite/as3/classes.all/external/external.am
=== modified file 'testsuite/as3/classes.all/Makefile.am'
--- a/testsuite/as3/classes.all/Makefile.am 2009-05-15 23:32:57 +0000
+++ b/testsuite/as3/classes.all/Makefile.am 2009-05-15 23:43:50 +0000
@@ -49,7 +49,7 @@
include $(srcdir)/display/display.am
# include $(srcdir)/errors/errors.am
# include $(srcdir)/events/events.am
-# include $(srcdir)/external/external.am
+include $(srcdir)/external/external.am
# include $(srcdir)/filesystem/filesystem.am
# include $(srcdir)/filters/filters.am
# include $(srcdir)/geom/geom.am
=== modified file 'testsuite/as3/classes.all/external/ExternalInterface_as3.hx'
--- a/testsuite/as3/classes.all/external/ExternalInterface_as3.hx
2009-05-15 23:28:45 +0000
+++ b/testsuite/as3/classes.all/external/ExternalInterface_as3.hx
2009-05-15 23:43:50 +0000
@@ -39,10 +39,9 @@
// Class must be named with the _as3 suffix, as that's the same name as the
file.
class ExternalInterface_as3 {
static function main() {
- var x1:ExternalInterface = new ExternalInterface();
// Make sure we actually get a valid class
- if (x1 != null) {
+ if (ExternalInterface != null) {
DejaGnu.pass("ExternalInterface class exists");
} else {
DejaGnu.fail("ExternalInterface class doesn't exist");
@@ -50,17 +49,17 @@
// 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.available == false) {
+ if (ExternalInterface.available == false) {
DejaGnu.pass("ExternalInterface.available property exists");
} else {
DejaGnu.fail("ExternalInterface.available property doesn't exist");
}
- if (x1.marshallExceptions == false) {
+ if (ExternalInterface.marshallExceptions == false) {
DejaGnu.pass("ExternalInterface.marshallExceptions property
exists");
} else {
DejaGnu.fail("ExternalInterface.marshallExceptions property doesn't
exist");
}
- if (x1.objectID == null) {
+ if (ExternalInterface.objectID == null) {
DejaGnu.pass("ExternalInterface.objectID property exists");
} else {
DejaGnu.fail("ExternalInterface.objectID property doesn't exist");
@@ -69,12 +68,12 @@
// 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.addCallback == null) {
+ if (ExternalInterface.addCallback == null) {
DejaGnu.pass("ExternalInterface::addCallback() method exists");
} else {
DejaGnu.fail("ExternalInterface::addCallback() method doesn't
exist");
}
- if (x1.call == *) {
+ if (ExternalInterface.call != null) {
DejaGnu.pass("ExternalInterface::call() method exists");
} else {
DejaGnu.fail("ExternalInterface::call() method doesn't exist");
=== modified file 'testsuite/as3/classes.all/external/external.am'
--- a/testsuite/as3/classes.all/external/external.am 2009-05-15 23:28:45
+0000
+++ b/testsuite/as3/classes.all/external/external.am 2009-05-15 23:43:50
+0000
@@ -17,10 +17,10 @@
EXTERNALdir = $(srcdir)/external
-EXTERNAL_SOURCES =
+EXTERNAL_TESTS =
if BUILD_EXTERNALINTERFACE_AS3
-EXTERNAL_SOURCES += external/ExternalInterface_as3.cpp
+EXTERNAL_TESTS += external/ExternalInterface_as3.swf
endif
check_SCRIPTS += $(EXTERNAL_TESTS)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9736: add external test case and Makefile fragment.,
rob <=