~ubuntu-branches/ubuntu/maverick/gnash/maverick

« back to all changes in this revision

Viewing changes to testsuite/misc-haxe.all/classes.all/filters/GradientBevelFilter_as.hx

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// GradientBevelFilter_as.hx:  ActionScript 3 "GradientBevelFilter" class, for Gnash.
 
2
//
 
3
// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
 
4
// after any hand editing loosing changes.
 
5
//
 
6
//   Copyright (C) 2009 Free Software Foundation, Inc.
 
7
//
 
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.
 
12
//
 
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.
 
17
//
 
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
 
21
//
 
22
 
 
23
// This test case must be processed by CPP before compiling to include the
 
24
//  DejaGnu.hx header file for the testing framework support.
 
25
 
 
26
#if flash9
 
27
import flash.filters.GradientBevelFilter;
 
28
import flash.display.MovieClip;
 
29
#else
 
30
import flash.filters.GradientBevelFilter;
 
31
import flash.MovieClip;
 
32
#end
 
33
import flash.Lib;
 
34
import Type;
 
35
import Std;
 
36
 
 
37
// import our testing API
 
38
import DejaGnu;
 
39
 
 
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();
 
44
 
 
45
        // Make sure we actually get a valid class        
 
46
        if (x1 != null) {
 
47
            DejaGnu.pass("GradientBevelFilter class exists");
 
48
        } else {
 
49
            DejaGnu.fail("GradientBevelFilter class doesn't exist");
 
50
        }
 
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");
 
56
        } else {
 
57
            DejaGnu.fail("GradientBevelFilter.alphas property doesn't exist");
 
58
        }
 
59
        if (Type.typeof(x1.angle) == ValueType.TFloat) {
 
60
            DejaGnu.pass("GradientBevelFilter.angle property exists");
 
61
        } else {
 
62
            DejaGnu.fail("GradientBevelFilter.angle property doesn't exist");
 
63
        }
 
64
        if (Type.typeof(x1.blurX) == ValueType.TFloat) {
 
65
            DejaGnu.pass("GradientBevelFilter.blurX property exists");
 
66
        } else {
 
67
            DejaGnu.fail("GradientBevelFilter.blurX property doesn't exist");
 
68
        }
 
69
        if (Type.typeof(x1.blurY) == ValueType.TFloat) {
 
70
            DejaGnu.pass("GradientBevelFilter.blurY property exists");
 
71
        } else {
 
72
            DejaGnu.fail("GradientBevelFilter.blurY property doesn't exist");
 
73
        }
 
74
        if (Std.is(x1.colors, Array)) {
 
75
            DejaGnu.pass("GradientBevelFilter.colors property exists");
 
76
        } else {
 
77
            DejaGnu.fail("GradientBevelFilter.colors property doesn't exist");
 
78
        }
 
79
        if (Type.typeof(x1.distance) == ValueType.TFloat) {
 
80
            DejaGnu.pass("GradientBevelFilter.distance property exists");
 
81
        } else {
 
82
            DejaGnu.fail("GradientBevelFilter.distance property doesn't exist");
 
83
        }
 
84
        if (Type.typeof(x1.knockout) == ValueType.TBool) {
 
85
            DejaGnu.pass("GradientBevelFilter.knockout property exists");
 
86
        } else {
 
87
            DejaGnu.fail("GradientBevelFilter.knockout property doesn't exist");
 
88
        }
 
89
        if (Type.typeof(x1.quality) == ValueType.TInt) {
 
90
            DejaGnu.pass("GradientBevelFilter.quality property exists");
 
91
        } else {
 
92
            DejaGnu.fail("GradientBevelFilter.quality property doesn't exist");
 
93
        }
 
94
        if (Std.is(x1.ratios, Array)) {
 
95
            DejaGnu.pass("GradientBevelFilter.ratios property exists");
 
96
        } else {
 
97
            DejaGnu.fail("GradientBevelFilter.ratios property doesn't exist");
 
98
        }
 
99
        if (Type.typeof(x1.strength) == ValueType.TFloat) {
 
100
            DejaGnu.pass("GradientBevelFilter.strength property exists");
 
101
        } else {
 
102
            DejaGnu.fail("GradientBevelFilter.strength property doesn't exist");
 
103
        }
 
104
        if (Std.is(x1.type, String)) {
 
105
            DejaGnu.pass("GradientBevelFilter.type property exists");
 
106
        } else {
 
107
            DejaGnu.fail("GradientBevelFilter.type property doesn't exist");
 
108
        }
 
109
 
 
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.
 
113
 
 
114
        if (Type.typeof(x1.clone) == ValueType.TFunction) {
 
115
            DejaGnu.pass("GradientBevelFilter::clone() method exists");
 
116
        } else {
 
117
            DejaGnu.fail("GradientBevelFilter::clone() method doesn't exist");
 
118
        }
 
119
 
 
120
        // Call this after finishing all tests. It prints out the totals.
 
121
        DejaGnu.done();
 
122
    }
 
123
}
 
124
 
 
125
// local Variables:
 
126
// mode: C++
 
127
// indent-tabs-mode: t
 
128
// End:
 
129