1
// ScreenMouseEvent_as.hx: ActionScript 3 "ScreenMouseEvent" 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.events.ScreenMouseEvent;
28
import flash.display.MovieClip;
30
import flash.ScreenMouseEvent;
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 ScreenMouseEvent_as {
41
static function main() {
42
var x1:ScreenMouseEvent = new ScreenMouseEvent();
44
// Make sure we actually get a valid class
46
DejaGnu.pass("ScreenMouseEvent class exists");
48
DejaGnu.fail("ScreenMouseEvent class 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.screenX == 0) {
54
DejaGnu.pass("ScreenMouseEvent.screenX property exists");
56
DejaGnu.fail("ScreenMouseEvent.screenX property doesn't exist");
58
if (x1.screenY == 0) {
59
DejaGnu.pass("ScreenMouseEvent.screenY property exists");
61
DejaGnu.fail("ScreenMouseEvent.screenY property doesn't exist");
64
// Tests to see if all the methods exist. All these do is test for
65
// existance of a method, and don't test the functionality at all. This
66
// is primarily useful only to test completeness of the API implementation.
67
if (x1.ScreenMouseEvent == false) {
68
DejaGnu.pass("ScreenMouseEvent::ScreenMouseEvent() method exists");
70
DejaGnu.fail("ScreenMouseEvent::ScreenMouseEvent() method doesn't exist");
72
if (x1.clone == Event) {
73
DejaGnu.pass("ScreenMouseEvent::clone() method exists");
75
DejaGnu.fail("ScreenMouseEvent::clone() method doesn't exist");
77
if (x1.toString == null) {
78
DejaGnu.pass("ScreenMouseEvent::toString() method exists");
80
DejaGnu.fail("ScreenMouseEvent::toString() method doesn't exist");
82
if (x1.ACTIVATE == null) {
83
DejaGnu.pass("ScreenMouseEvent::ACTIVATE() method exists");
85
DejaGnu.fail("ScreenMouseEvent::ACTIVATE() method doesn't exist");
87
if (x1.ADDED == null) {
88
DejaGnu.pass("ScreenMouseEvent::ADDED() method exists");
90
DejaGnu.fail("ScreenMouseEvent::ADDED() method doesn't exist");
93
DejaGnu.pass("ScreenMouseEvent::ADDED() method exists");
95
DejaGnu.fail("ScreenMouseEvent::ADDED() method doesn't exist");
97
if (x1.CANCEL == null) {
98
DejaGnu.pass("ScreenMouseEvent::CANCEL() method exists");
100
DejaGnu.fail("ScreenMouseEvent::CANCEL() method doesn't exist");
102
if (x1.CHANGE == null) {
103
DejaGnu.pass("ScreenMouseEvent::CHANGE() method exists");
105
DejaGnu.fail("ScreenMouseEvent::CHANGE() method doesn't exist");
107
if (x1.CLICK == null) {
108
DejaGnu.pass("ScreenMouseEvent::CLICK() method exists");
110
DejaGnu.fail("ScreenMouseEvent::CLICK() method doesn't exist");
112
if (x1.CLOSE == null) {
113
DejaGnu.pass("ScreenMouseEvent::CLOSE() method exists");
115
DejaGnu.fail("ScreenMouseEvent::CLOSE() method doesn't exist");
117
if (x1.CLOSING == null) {
118
DejaGnu.pass("ScreenMouseEvent::CLOSING() method exists");
120
DejaGnu.fail("ScreenMouseEvent::CLOSING() method doesn't exist");
122
if (x1.COMPLETE == null) {
123
DejaGnu.pass("ScreenMouseEvent::COMPLETE() method exists");
125
DejaGnu.fail("ScreenMouseEvent::COMPLETE() method doesn't exist");
127
if (x1.CONNECT == null) {
128
DejaGnu.pass("ScreenMouseEvent::CONNECT() method exists");
130
DejaGnu.fail("ScreenMouseEvent::CONNECT() method doesn't exist");
132
if (x1.CONTEXT == MENU) {
133
DejaGnu.pass("ScreenMouseEvent::CONTEXT() method exists");
135
DejaGnu.fail("ScreenMouseEvent::CONTEXT() method doesn't exist");
137
if (x1.DEACTIVATE == null) {
138
DejaGnu.pass("ScreenMouseEvent::DEACTIVATE() method exists");
140
DejaGnu.fail("ScreenMouseEvent::DEACTIVATE() method doesn't exist");
142
if (x1.DISPLAYING == null) {
143
DejaGnu.pass("ScreenMouseEvent::DISPLAYING() method exists");
145
DejaGnu.fail("ScreenMouseEvent::DISPLAYING() method doesn't exist");
147
if (x1.DOUBLE == CLICK) {
148
DejaGnu.pass("ScreenMouseEvent::DOUBLE() method exists");
150
DejaGnu.fail("ScreenMouseEvent::DOUBLE() method doesn't exist");
152
if (x1.ENTER == FRAME) {
153
DejaGnu.pass("ScreenMouseEvent::ENTER() method exists");
155
DejaGnu.fail("ScreenMouseEvent::ENTER() method doesn't exist");
157
if (x1.EXITING == null) {
158
DejaGnu.pass("ScreenMouseEvent::EXITING() method exists");
160
DejaGnu.fail("ScreenMouseEvent::EXITING() method doesn't exist");
162
if (x1.FULLSCREEN == null) {
163
DejaGnu.pass("ScreenMouseEvent::FULLSCREEN() method exists");
165
DejaGnu.fail("ScreenMouseEvent::FULLSCREEN() method doesn't exist");
167
if (x1.HTML == BOUNDS) {
168
DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
170
DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
172
if (x1.HTML == DOM) {
173
DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
175
DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
177
if (x1.HTML == RENDER) {
178
DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
180
DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
182
if (x1.ID3 == null) {
183
DejaGnu.pass("ScreenMouseEvent::ID3() method exists");
185
DejaGnu.fail("ScreenMouseEvent::ID3() method doesn't exist");
187
if (x1.INIT == null) {
188
DejaGnu.pass("ScreenMouseEvent::INIT() method exists");
190
DejaGnu.fail("ScreenMouseEvent::INIT() method doesn't exist");
192
if (x1.LOCATION == CHANGE) {
193
DejaGnu.pass("ScreenMouseEvent::LOCATION() method exists");
195
DejaGnu.fail("ScreenMouseEvent::LOCATION() method doesn't exist");
197
if (x1.MIDDLE == CLICK) {
198
DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
200
DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
202
if (x1.MIDDLE == MOUSE) {
203
DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
205
DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
207
if (x1.MIDDLE == MOUSE) {
208
DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
210
DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
212
if (x1.MOUSE == DOWN) {
213
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
215
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
217
if (x1.MOUSE == LEAVE) {
218
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
220
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
222
if (x1.MOUSE == MOVE) {
223
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
225
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
227
if (x1.MOUSE == OUT) {
228
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
230
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
232
if (x1.MOUSE == OVER) {
233
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
235
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
237
if (x1.MOUSE == UP) {
238
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
240
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
242
if (x1.MOUSE == WHEEL) {
243
DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
245
DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
247
if (x1.NETWORK == CHANGE) {
248
DejaGnu.pass("ScreenMouseEvent::NETWORK() method exists");
250
DejaGnu.fail("ScreenMouseEvent::NETWORK() method doesn't exist");
252
if (x1.OPEN == null) {
253
DejaGnu.pass("ScreenMouseEvent::OPEN() method exists");
255
DejaGnu.fail("ScreenMouseEvent::OPEN() method doesn't exist");
257
if (x1.REMOVED == null) {
258
DejaGnu.pass("ScreenMouseEvent::REMOVED() method exists");
260
DejaGnu.fail("ScreenMouseEvent::REMOVED() method doesn't exist");
262
if (x1.REMOVED == FROM) {
263
DejaGnu.pass("ScreenMouseEvent::REMOVED() method exists");
265
DejaGnu.fail("ScreenMouseEvent::REMOVED() method doesn't exist");
267
if (x1.RENDER == null) {
268
DejaGnu.pass("ScreenMouseEvent::RENDER() method exists");
270
DejaGnu.fail("ScreenMouseEvent::RENDER() method doesn't exist");
272
if (x1.RESIZE == null) {
273
DejaGnu.pass("ScreenMouseEvent::RESIZE() method exists");
275
DejaGnu.fail("ScreenMouseEvent::RESIZE() method doesn't exist");
277
if (x1.RIGHT == CLICK) {
278
DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
280
DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
282
if (x1.RIGHT == MOUSE) {
283
DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
285
DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
287
if (x1.RIGHT == MOUSE) {
288
DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
290
DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
292
if (x1.ROLL == OUT) {
293
DejaGnu.pass("ScreenMouseEvent::ROLL() method exists");
295
DejaGnu.fail("ScreenMouseEvent::ROLL() method doesn't exist");
297
if (x1.ROLL == OVER) {
298
DejaGnu.pass("ScreenMouseEvent::ROLL() method exists");
300
DejaGnu.fail("ScreenMouseEvent::ROLL() method doesn't exist");
302
if (x1.SCROLL == null) {
303
DejaGnu.pass("ScreenMouseEvent::SCROLL() method exists");
305
DejaGnu.fail("ScreenMouseEvent::SCROLL() method doesn't exist");
307
if (x1.SELECT == null) {
308
DejaGnu.pass("ScreenMouseEvent::SELECT() method exists");
310
DejaGnu.fail("ScreenMouseEvent::SELECT() method doesn't exist");
312
if (x1.SOUND == COMPLETE) {
313
DejaGnu.pass("ScreenMouseEvent::SOUND() method exists");
315
DejaGnu.fail("ScreenMouseEvent::SOUND() method doesn't exist");
317
if (x1.TAB == CHILDREN) {
318
DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
320
DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
322
if (x1.TAB == ENABLED) {
323
DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
325
DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
327
if (x1.TAB == INDEX) {
328
DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
330
DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
332
if (x1.UNLOAD == null) {
333
DejaGnu.pass("ScreenMouseEvent::UNLOAD() method exists");
335
DejaGnu.fail("ScreenMouseEvent::UNLOAD() method doesn't exist");
337
if (x1.USER == IDLE) {
338
DejaGnu.pass("ScreenMouseEvent::USER() method exists");
340
DejaGnu.fail("ScreenMouseEvent::USER() method doesn't exist");
342
if (x1.USER == PRESENT) {
343
DejaGnu.pass("ScreenMouseEvent::USER() method exists");
345
DejaGnu.fail("ScreenMouseEvent::USER() method doesn't exist");
348
// Call this after finishing all tests. It prints out the totals.
355
// indent-tabs-mode: t