Update with current status
[gnash.git] / testsuite / misc-haxe.all / classes.all / display / LineScaleMode_as.hx
blob586d3902ed0651b23851541363d826e62dc0e7dc
1 // LineScaleMode_as.hx: ActionScript 3 "LineScaleMode" class, for Gnash.
2 //
3 // Generated by gen-as3.sh on: 20090514 by "rob". Remove this
4 // after any hand editing loosing changes.
5 //
6 // Copyright (C) 2009, 2010 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.
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.
26 #if flash9
27 import flash.display.LineScaleMode;
28 import flash.display.MovieClip;
29 #else
30 import flash.MovieClip;
31 #end
32 import flash.Lib;
33 import Type;
35 // import our testing API
36 import DejaGnu;
38 // Class must be named with the _as suffix, as that's the same name as the file.
39 class LineScaleMode_as {
40 static function main() {
42 #if flash9
43 // Make sure we actually get a valid class
44 if (Type.typeof(LineScaleMode)==TObject) {
45 DejaGnu.pass("LineScaleMode class exists.");
46 } else {
47 DejaGnu.fail("LineScaleMode class doesn't exist");
50 // Tests to see if all the constants exist. All these do is test for
51 // existance of a constants, and don't test the functionality at all.
52 if (Type.typeof(LineScaleMode.HORIZONTAL)!= TNull) {
53 DejaGnu.pass("LineScaleMode.HORIZONTAL constant exists");
54 } else {
55 DejaGnu.fail("LineScaleMode.HORIZONTAL constant doesn't exist");
57 if (Type.typeof(LineScaleMode.NONE) != TNull) {
58 DejaGnu.pass("LineScaleMode.NONE constant exists");
59 } else {
60 DejaGnu.fail("LineScaleMode.NONE constant doesn't exist");
62 if (Type.typeof(LineScaleMode.NORMAL) != TNull) {
63 DejaGnu.pass("LineScaleMode.NORMAL constant exists");
64 } else {
65 DejaGnu.fail("LineScaleMode.NORMAL constant doesn't exist");
67 if (Type.typeof(LineScaleMode.VERTICAL) != TNull) {
68 DejaGnu.pass("LineScaleMode.VERTICAL constant exists");
69 } else {
70 DejaGnu.fail("LineScaleMode.VERTICAL constant doesn't exist");
72 #else
73 DejaGnu.note("LineScaleMode did not exist in versions prior to SWF9");
74 #end
76 // Call this after finishing all tests. It prints out the totals.
77 DejaGnu.done();
82 // local Variables:
83 // mode: C++
84 // indent-tabs-mode: t
85 // End: