1 // InteractiveIcon_as.hx: ActionScript 3 "InteractiveIcon" class, for Gnash.
3 // Generated by gen-as3.sh on: 20090514 by "rob". Remove this
4 // after any hand editing loosing changes.
6 // Copyright (C) 2009, 2010 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
.desktop
.InteractiveIcon
;
28 import flash
.display
.MovieClip
;
30 import flash
.InteractiveIcon
;
31 import flash
.MovieClip
;
36 // import our testing API
39 // Class must be named with the _as suffix, as that's the same name as the file.
40 class InteractiveIcon_as
{
41 static function main() {
42 var x1
:InteractiveIcon
= new InteractiveIcon();
44 // Make sure we actually get a valid class
46 DejaGnu
.pass("InteractiveIcon class exists");
48 DejaGnu
.fail("InteractiveIcon lass doesn't exist");
50 // Tests to see if all the properties exist. All these do is test for
51 // existance of a property, and don't test the functionality at all. This
52 // is primarily useful only to test completeness of the API implementation.
53 if (x1
.bitmaps
== 0) {
54 DejaGnu
.pass("InteractiveIcon::bitmaps property exists");
56 DejaGnu
.fail("InteractiveIcon::bitmaps property doesn't exist");
59 DejaGnu
.pass("InteractiveIcon::height property exists");
61 DejaGnu
.fail("InteractiveIcon::height property doesn't exist");
64 DejaGnu
.pass("InteractiveIcon::width property exists");
66 DejaGnu
.fail("InteractiveIcon::width property doesn't exist");
69 if (x1
.bitmaps
== 0) {
70 // Call this after finishing all tests. It prints out the totals.
77 // indent-tabs-mode: t