[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9738: add printing test cases and Ma
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9738: add printing test cases and Makefile fragment. |
Date: |
Fri, 15 May 2009 18:08:10 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 9738
committer: address@hidden
branch nick: avm2
timestamp: Fri 2009-05-15 18:08:10 -0600
message:
add printing test cases and Makefile fragment.
modified:
testsuite/as3/classes.all/Makefile.am
testsuite/as3/classes.all/html/HTMLHistoryItem_as3.hx
testsuite/as3/classes.all/printing/PrintJobOptions_as3.hx
testsuite/as3/classes.all/printing/PrintJobOrientation_as3.hx
testsuite/as3/classes.all/printing/PrintJob_as3.hx
testsuite/as3/classes.all/printing/printing.am
=== modified file 'testsuite/as3/classes.all/Makefile.am'
--- a/testsuite/as3/classes.all/Makefile.am 2009-05-15 23:57:40 +0000
+++ b/testsuite/as3/classes.all/Makefile.am 2009-05-16 00:08:10 +0000
@@ -53,10 +53,11 @@
# include $(srcdir)/filesystem/filesystem.am
# include $(srcdir)/filters/filters.am
include $(srcdir)/geom/geom.am
+# HAXE doesn't appear to support the HTML classes
# include $(srcdir)/html/html.am
include $(srcdir)/media/media.am
include $(srcdir)/net/net.am
-# include $(srcdir)/printing/printing.am
+include $(srcdir)/printing/printing.am
# include $(srcdir)/sampler/sampler.am
# include $(srcdir)/security/security.am
include $(srcdir)/system/system.am
=== modified file 'testsuite/as3/classes.all/html/HTMLHistoryItem_as3.hx'
--- a/testsuite/as3/classes.all/html/HTMLHistoryItem_as3.hx 2009-05-15
23:28:45 +0000
+++ b/testsuite/as3/classes.all/html/HTMLHistoryItem_as3.hx 2009-05-16
00:08:10 +0000
@@ -72,6 +72,10 @@
}
if (x1.isPost == false) {
+ DejaGnu.pass("HTMLHistoryItem.post property exists");
+ } else {
+ DejaGnu.fail("HTMLHistoryItem.post property doesn't exist");
+ }
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
}
=== modified file 'testsuite/as3/classes.all/printing/PrintJobOptions_as3.hx'
--- a/testsuite/as3/classes.all/printing/PrintJobOptions_as3.hx 2009-05-15
23:28:45 +0000
+++ b/testsuite/as3/classes.all/printing/PrintJobOptions_as3.hx 2009-05-16
00:08:10 +0000
@@ -56,15 +56,6 @@
DejaGnu.fail("PrintJobOptions.printAsBitmap 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.PrintJobOptions == false) {
- DejaGnu.pass("PrintJobOptions::PrintJobOptions() method exists");
- } else {
- DejaGnu.fail("PrintJobOptions::PrintJobOptions() method doesn't
exist");
- }
-
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
}
=== modified file
'testsuite/as3/classes.all/printing/PrintJobOrientation_as3.hx'
--- a/testsuite/as3/classes.all/printing/PrintJobOrientation_as3.hx
2009-05-15 23:28:45 +0000
+++ b/testsuite/as3/classes.all/printing/PrintJobOrientation_as3.hx
2009-05-16 00:08:10 +0000
@@ -39,10 +39,9 @@
// Class must be named with the _as3 suffix, as that's the same name as the
file.
class PrintJobOrientation_as3 {
static function main() {
- var x1:PrintJobOrientation = new PrintJobOrientation();
// Make sure we actually get a valid class
- if (x1 != null) {
+ if (PrintJobOrientation != null) {
DejaGnu.pass("PrintJobOrientation class exists");
} else {
DejaGnu.fail("PrintJobOrientation class doesn't exist");
=== modified file 'testsuite/as3/classes.all/printing/PrintJob_as3.hx'
--- a/testsuite/as3/classes.all/printing/PrintJob_as3.hx 2009-05-15
23:28:45 +0000
+++ b/testsuite/as3/classes.all/printing/PrintJob_as3.hx 2009-05-16
00:08:10 +0000
@@ -79,11 +79,6 @@
// 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.PrintJob == PrintJob) {
- DejaGnu.pass("PrintJob::PrintJob() method exists");
- } else {
- DejaGnu.fail("PrintJob::PrintJob() method doesn't exist");
- }
if (x1.addPage == null) {
DejaGnu.pass("PrintJob::addPage() method exists");
} else {
@@ -94,11 +89,13 @@
} else {
DejaGnu.fail("PrintJob::send() method doesn't exist");
}
- if (x1.start == false) {
- DejaGnu.pass("PrintJob::start() method exists");
- } else {
- DejaGnu.fail("PrintJob::start() method doesn't exist");
- }
+
+// FIXME: returns void
+// if (x1.start == false) {
+// DejaGnu.pass("PrintJob::start() method exists");
+// } else {
+// DejaGnu.fail("PrintJob::start() method doesn't exist");
+// }
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
=== modified file 'testsuite/as3/classes.all/printing/printing.am'
--- a/testsuite/as3/classes.all/printing/printing.am 2009-05-15 23:28:45
+0000
+++ b/testsuite/as3/classes.all/printing/printing.am 2009-05-16 00:08:10
+0000
@@ -31,5 +31,5 @@
PRINTING_TESTS += printing/PrintJob_as3.swf
endif
-check_SCRIPTS += $(DISPLAY_TESTS)
-HAXE_FLAGS += -cp $(DISPLAYdir)
+check_SCRIPTS += $(PRINTING_TESTS)
+HAXE_FLAGS += -cp $(PRINTINGdir)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9738: add printing test cases and Makefile fragment.,
rob <=