1
// GradientBevelFilter_as.hx: ActionScript 3 "GradientBevelFilter" class, for Gnash.
3
// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
4
// after any hand editing loosing changes.
6
// Copyright (C) 2009 Free Software Foundation, Inc.
8
// This program is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation; either version 3 of the License, or
11
// (at your option) any later version.
13
// This program is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
18
// You should have received a copy of the GNU General Public License
19
// along with this program; if not, write to the Free Software
20
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
// This test case must be processed by CPP before compiling to include the
24
// DejaGnu.hx header file for the testing framework support.
27
import flash.filters.GradientBevelFilter;
28
import flash.display.MovieClip;
30
import flash.filters.GradientBevelFilter;
31
import flash.MovieClip;
37
// import our testing API
40
// Class must be named with the _as suffix, as that's the same name as the file.
41
class GradientBevelFilter_as {
42
static function main() {
43
var x1:GradientBevelFilter = new GradientBevelFilter();
45
// Make sure we actually get a valid class
47
DejaGnu.pass("GradientBevelFilter class exists");
49
DejaGnu.fail("GradientBevelFilter class doesn't exist");
51
// Tests to see if all the properties exist. All these do is test for
52
// existance of a property, and don't test the functionality at all. This
53
// is primarily useful only to test completeness of the API implementation.
54
if (Std.is(x1.alphas, Array)) {
55
DejaGnu.pass("GradientBevelFilter.alphas property exists");
57
DejaGnu.fail("GradientBevelFilter.alphas property doesn't exist");
59
if (Type.typeof(x1.angle) == ValueType.TFloat) {
60
DejaGnu.pass("GradientBevelFilter.angle property exists");
62
DejaGnu.fail("GradientBevelFilter.angle property doesn't exist");
64
if (Type.typeof(x1.blurX) == ValueType.TFloat) {
65
DejaGnu.pass("GradientBevelFilter.blurX property exists");
67
DejaGnu.fail("GradientBevelFilter.blurX property doesn't exist");
69
if (Type.typeof(x1.blurY) == ValueType.TFloat) {
70
DejaGnu.pass("GradientBevelFilter.blurY property exists");
72
DejaGnu.fail("GradientBevelFilter.blurY property doesn't exist");
74
if (Std.is(x1.colors, Array)) {
75
DejaGnu.pass("GradientBevelFilter.colors property exists");
77
DejaGnu.fail("GradientBevelFilter.colors property doesn't exist");
79
if (Type.typeof(x1.distance) == ValueType.TFloat) {
80
DejaGnu.pass("GradientBevelFilter.distance property exists");
82
DejaGnu.fail("GradientBevelFilter.distance property doesn't exist");
84
if (Type.typeof(x1.knockout) == ValueType.TBool) {
85
DejaGnu.pass("GradientBevelFilter.knockout property exists");
87
DejaGnu.fail("GradientBevelFilter.knockout property doesn't exist");
89
if (Type.typeof(x1.quality) == ValueType.TInt) {
90
DejaGnu.pass("GradientBevelFilter.quality property exists");
92
DejaGnu.fail("GradientBevelFilter.quality property doesn't exist");
94
if (Std.is(x1.ratios, Array)) {
95
DejaGnu.pass("GradientBevelFilter.ratios property exists");
97
DejaGnu.fail("GradientBevelFilter.ratios property doesn't exist");
99
if (Type.typeof(x1.strength) == ValueType.TFloat) {
100
DejaGnu.pass("GradientBevelFilter.strength property exists");
102
DejaGnu.fail("GradientBevelFilter.strength property doesn't exist");
104
if (Std.is(x1.type, String)) {
105
DejaGnu.pass("GradientBevelFilter.type property exists");
107
DejaGnu.fail("GradientBevelFilter.type property doesn't exist");
110
// Tests to see if all the methods exist. All these do is test for
111
// existance of a method, and don't test the functionality at all. This
112
// is primarily useful only to test completeness of the API implementation.
114
if (Type.typeof(x1.clone) == ValueType.TFunction) {
115
DejaGnu.pass("GradientBevelFilter::clone() method exists");
117
DejaGnu.fail("GradientBevelFilter::clone() method doesn't exist");
120
// Call this after finishing all tests. It prints out the totals.
127
// indent-tabs-mode: t