[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10979: Fixed test cases
From: |
Bob Naugle |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10979: Fixed test cases |
Date: |
Wed, 03 Jun 2009 09:37:34 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 10979
committer: Bob Naugle <address@hidden>
branch nick: trunk
timestamp: Wed 2009-06-03 09:37:34 -0600
message:
Fixed test cases
modified:
testsuite/as3/classes.all/display/MorphShape_as.hx
testsuite/as3/classes.all/media/SoundLoaderContext_as.hx
testsuite/as3/classes.all/media/SoundMixer_as.hx
testsuite/as3/classes.all/media/SoundTransform_as.hx
testsuite/as3/classes.all/net/IDynamicPropertyOutput_as.hx
testsuite/as3/classes.all/net/IDynamicPropertyWriter_as.hx
=== modified file 'testsuite/as3/classes.all/display/MorphShape_as.hx'
--- a/testsuite/as3/classes.all/display/MorphShape_as.hx 2009-05-21
00:17:43 +0000
+++ b/testsuite/as3/classes.all/display/MorphShape_as.hx 2009-06-03
15:37:34 +0000
@@ -1,6 +1,6 @@
// MorphShape_as.hx: ActionScript 3 "MorphShape" class, for Gnash.
//
-// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// Generated on: 20090603 by "bnaugle". Remove this
// after any hand editing loosing changes.
//
// Copyright (C) 2009 Free Software Foundation, Inc.
@@ -25,13 +25,10 @@
#if flash9
import flash.display.MorphShape;
-import flash.display.MovieClip;
-#else
-import flash.MorphShape;
-import flash.MovieClip;
#end
import flash.Lib;
import Type;
+import Std;
// import our testing API
import DejaGnu;
@@ -39,18 +36,16 @@
// Class must be named with the _as suffix, as that's the same name as the
file.
class MorphShape_as {
static function main() {
- var x1:MorphShape = new MorphShape();
-
- // Make sure we actually get a valid class
- if (x1 != null) {
- DejaGnu.pass("MorphShape class exists");
- } else {
- DejaGnu.fail("MorphShape lass doesn't exist");
- }
-
+#if flash9
+ DejaGnu.note("This class has no methods or properties,");
+ DejaGnu.note("and is only created when you create a shape
tween");
+ DejaGnu.note("in the Adobe/Flash authoring tool");
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
+#else
+ DejaGnu.note("This class (MorphShape) is only available in flash9");
+#end
}
}
=== modified file 'testsuite/as3/classes.all/media/SoundLoaderContext_as.hx'
--- a/testsuite/as3/classes.all/media/SoundLoaderContext_as.hx 2009-06-03
15:32:04 +0000
+++ b/testsuite/as3/classes.all/media/SoundLoaderContext_as.hx 2009-06-03
15:37:34 +0000
@@ -1,6 +1,6 @@
// SoundLoaderContext_as.hx: ActionScript 3 "SoundLoaderContext" class, for
Gnash.
//
-// Generated by gen-as3.sh on: 20090503 by "rob". Remove this
+// Generated on: 20090603 by "bnaugle". Remove this
// after any hand editing loosing changes.
//
// Copyright (C) 2009 Free Software Foundation, Inc.
@@ -25,10 +25,13 @@
// NOTE: works for flash v.9 and greater only!
+#if flash9
import flash.media.SoundLoaderContext;
import flash.display.MovieClip;
+#end
import flash.Lib;
import Type;
+import Std;
import DejaGnu;
@@ -36,10 +39,11 @@
// file passed to haxe will have after the preprocessing step
class SoundLoaderContext_as {
static function main() {
+#if flash9
var x1:SoundLoaderContext = new SoundLoaderContext();
// Make sure we actually get a valid class
- if (x1 != null) {
+ if (Std.is(x1, SoundLoaderContext)) {
DejaGnu.pass("SoundLoaderContext class exists");
} else {
DejaGnu.fail("SoundLoaderContext lass doesn't exist");
@@ -47,19 +51,21 @@
// 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 (Type.typeof(x1.bufferTime) == ValueType.TFloat) {
+ if (Std.is(x1.bufferTime, Float)) {
DejaGnu.pass("SoundLoaderContext::bufferTime property exists");
} else {
DejaGnu.fail("SoundLoaderContext::bufferTime property doesn't
exist");
}
- if (x1.checkPolicyFile == (true || false)) {
+ if (Std.is(x1.checkPolicyFile, Bool)) {
DejaGnu.pass("SoundLoaderContext::checkPolicyFile property exists");
} else {
DejaGnu.fail("SoundLoaderContext::checkPolicyFile property doesn't
exist");
}
-
- // Call this after finishing all tests. It prints out the totals.
- DejaGnu.done();
+// Call this after finishing all tests. It prints out the totals.
+ DejaGnu.done();
+#else
+ DejaGnu.note("This class (SoundLoaderContext) is only available in
flash9");
+#end
}
}
=== modified file 'testsuite/as3/classes.all/media/SoundMixer_as.hx'
--- a/testsuite/as3/classes.all/media/SoundMixer_as.hx 2009-06-03 15:32:04
+0000
+++ b/testsuite/as3/classes.all/media/SoundMixer_as.hx 2009-06-03 15:37:34
+0000
@@ -1,6 +1,6 @@
// SoundMixer_as.hx: ActionScript 3 "SoundMixer" class, for Gnash.
//
-// Generated by gen-as3.sh on: 20090503 by "rob". Remove this
+// Generated on: 20090603 by "bnaugle". Remove this
// after any hand editing loosing changes.
//
// Copyright (C) 2009 Free Software Foundation, Inc.
@@ -32,22 +32,24 @@
#end
import flash.Lib;
import Type;
+import Std;
// Class must be named with the PP prefix, as that's the name the
// file passed to haxe will have after the preprocessing step
class SoundMixer_as {
static function main() {
+#if flash9
// SoundMixer doesn't contain a constructor, all it's methods are static
// 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 (Type.typeof(SoundMixer.bufferTime) == ValueType.TInt) {
+ if (Std.is(SoundMixer.bufferTime, Int)) {
DejaGnu.pass("SoundMixer::bufferTime property exists");
} else {
DejaGnu.fail("SoundMixer::bufferTime property doesn't exist");
}
- if (Type.typeof(SoundMixer.soundTransform) == ValueType.TObject) {
+ if (Std.is(SoundMixer.soundTransform, SoundTransform)) {
DejaGnu.pass("SoundMixer::soundTransform property exists");
} else {
DejaGnu.fail("SoundMixer::soundTransform property doesn't exist");
@@ -74,5 +76,8 @@
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
+#else
+ DejaGnu.note("This class (SoundMixer) is only available in flash9");
+#end
}
}
=== modified file 'testsuite/as3/classes.all/media/SoundTransform_as.hx'
--- a/testsuite/as3/classes.all/media/SoundTransform_as.hx 2009-06-03
15:32:04 +0000
+++ b/testsuite/as3/classes.all/media/SoundTransform_as.hx 2009-06-03
15:37:34 +0000
@@ -1,6 +1,6 @@
// SoundTransform_as.hx: ActionScript 3 "SoundTransform" class, for Gnash.
//
-// Generated by gen-as3.sh on: 20090503 by "rob". Remove this
+// Generated on: 20090603 by "bnaugle". Remove this
// after any hand editing loosing changes.
//
// Copyright (C) 2009 Free Software Foundation, Inc.
@@ -24,7 +24,7 @@
// DejaGnu.hx header file for the testing framework support.
-//NOTE: this is a new class for as3 (flash v. and >)
+//NOTE: this is a new class for as3 (flash9 and >)
#if flash9
@@ -41,10 +41,11 @@
// file passed to haxe will have after the preprocessing step
class SoundTransform_as {
static function main() {
+#if flash9
var x1:SoundTransform = new SoundTransform();
// Make sure we actually get a valid class
- if (x1 != null) {
+ if (Std.is(x1, SoundTransform)) {
DejaGnu.pass("SoundTransform class exists");
} else {
DejaGnu.fail("SoundTransform lass doesn't exist");
@@ -52,32 +53,32 @@
// 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 (Type.typeof(x1.leftToLeft) == ValueType.TFloat) {
+ if (Std.is(x1.leftToLeft, Float)) {
DejaGnu.pass("SoundTransform::leftToLeft property exists");
} else {
DejaGnu.fail("SoundTransform::leftToLeft property doesn't exist");
}
- if (Type.typeof(x1.leftToRight) == ValueType.TFloat) {
+ if (Std.is(x1.leftToRight, Float)) {
DejaGnu.pass("SoundTransform::leftToRight property exists");
} else {
DejaGnu.fail("SoundTransform::leftToRight property doesn't exist");
}
- if (Type.typeof(x1.pan) == ValueType.TFloat) {
+ if (Std.is(x1.pan, Float)) {
DejaGnu.pass("SoundTransform::pan property exists");
} else {
DejaGnu.fail("SoundTransform::pan property doesn't exist");
}
- if (Type.typeof(x1.rightToLeft) == ValueType.TFloat) {
+ if (Std.is(x1.rightToLeft, Float)) {
DejaGnu.pass("SoundTransform::rightToLeft property exists");
} else {
DejaGnu.fail("SoundTransform::rightToLeft property doesn't exist");
}
- if (Type.typeof(x1.rightToRight) == ValueType.TFloat) {
+ if (Std.is(x1.rightToRight, Float)) {
DejaGnu.pass("SoundTransform::rightToRight property exists");
} else {
DejaGnu.fail("SoundTransform::rightToRight property doesn't exist");
}
- if (Type.typeof(x1.volume) == ValueType.TFloat) {
+ if (Std.is(x1.volume, Float)) {
DejaGnu.pass("SoundTransform::volume property exists");
} else {
DejaGnu.fail("SoundTransform::volume property doesn't exist");
@@ -85,5 +86,8 @@
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
+#else
+ DejaGnu.note("This class (SoundTransform) is only available in flash9");
+#end
}
}
=== modified file 'testsuite/as3/classes.all/net/IDynamicPropertyOutput_as.hx'
--- a/testsuite/as3/classes.all/net/IDynamicPropertyOutput_as.hx
2009-05-21 00:17:43 +0000
+++ b/testsuite/as3/classes.all/net/IDynamicPropertyOutput_as.hx
2009-06-03 15:37:34 +0000
@@ -1,6 +1,6 @@
// IDynamicPropertyOutput_as.hx: ActionScript 3 "IDynamicPropertyOutput"
class, for Gnash.
//
-// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
+// Generated on: 20090603 by "bnaugle". Remove this
// after any hand editing loosing changes.
//
// Copyright (C) 2009 Free Software Foundation, Inc.
@@ -25,13 +25,10 @@
#if flash9
import flash.net.IDynamicPropertyOutput;
-import flash.display.MovieClip;
-#else
-import flash.IDynamicPropertyOutput;
-import flash.MovieClip;
#end
import flash.Lib;
import Type;
+import Std;
// import our testing API
import DejaGnu;
@@ -39,7 +36,9 @@
// Class must be named with the _as suffix, as that's the same name as the
file.
class IDynamicPropertyOutput_as {
static function main() {
+#if flash9
+ DejaGnu.note("This class is an interface");
// if (IDynamicPropertyOutput.writeDynamicProperty() != null) {
// DejaGnu.pass("IDynamicPropertyOutput class exists");
// } else {
@@ -52,6 +51,9 @@
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
+#else
+ DejaGnu.note("This class (IDynamicPropertyOutput) is only available in
flash9");
+#end
}
}
=== modified file 'testsuite/as3/classes.all/net/IDynamicPropertyWriter_as.hx'
--- a/testsuite/as3/classes.all/net/IDynamicPropertyWriter_as.hx
2009-05-21 00:17:43 +0000
+++ b/testsuite/as3/classes.all/net/IDynamicPropertyWriter_as.hx
2009-06-03 15:37:34 +0000
@@ -25,13 +25,10 @@
#if flash9
import flash.net.IDynamicPropertyWriter;
-import flash.display.MovieClip;
-#else
-import flash.IDynamicPropertyWriter;
-import flash.MovieClip;
#end
import flash.Lib;
import Type;
+import Std;
// import our testing API
import DejaGnu;
@@ -39,7 +36,9 @@
// Class must be named with the _as suffix, as that's the same name as the
file.
class IDynamicPropertyWriter_as {
static function main() {
+#if flash9
+ DejaGnu.note("This class is an interface");
// Make sure we actually get a valid class
// if (IDynamicPropertyWriter.writeDynamicProperties() != null) {
// DejaGnu.pass("IDynamicPropertyWriter class exists");
@@ -53,6 +52,9 @@
// Call this after finishing all tests. It prints out the totals.
DejaGnu.done();
+#else
+ DejaGnu.note("This class (IDynamicPropertyWriter) is only available in
flash9");
+#end
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10979: Fixed test cases,
Bob Naugle <=