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

« back to all changes in this revision

Viewing changes to testsuite/misc-haxe.all/classes.all/events/ScreenMouseEvent_as.hx

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten, Micah Gersten, Chris Coulson
  • Date: 2010-09-28 23:38:37 UTC
  • mfrom: (1.1.14 upstream) (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100928233837-wcay0dodera1c7sz
Tags: 0.8.8-5ubuntu1
[ Micah Gersten <micahg@ubuntu.com> ]
* FFe - LP: #636667
* Merge from debian unstable.  Remaining changes:
  + Add Ubuntu flash alternatives in postinst and prerm
    - update debian/browser-plugin-gnash.postinst
    - update debian/browser-plugin-gnash.prerm

[ Chris Coulson <chris.coulson@canonical.com> ]
* Ensure the directories we are installing alternatives too exist
  already
  - add debian/browser-plugin-gnash.dirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ScreenMouseEvent_as.hx:  ActionScript 3 "ScreenMouseEvent" 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, 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.
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.events.ScreenMouseEvent;
28
 
import flash.display.MovieClip;
29
 
#else
30
 
import flash.ScreenMouseEvent;
31
 
import flash.MovieClip;
32
 
#end
33
 
import flash.Lib;
34
 
import Type;
35
 
 
36
 
// import our testing API
37
 
import DejaGnu;
38
 
 
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();
43
 
 
44
 
        // Make sure we actually get a valid class        
45
 
        if (x1 != null) {
46
 
            DejaGnu.pass("ScreenMouseEvent class exists");
47
 
        } else {
48
 
            DejaGnu.fail("ScreenMouseEvent class doesn't exist");
49
 
        }
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");
55
 
        } else {
56
 
            DejaGnu.fail("ScreenMouseEvent.screenX property doesn't exist");
57
 
        }
58
 
        if (x1.screenY == 0) {
59
 
            DejaGnu.pass("ScreenMouseEvent.screenY property exists");
60
 
        } else {
61
 
            DejaGnu.fail("ScreenMouseEvent.screenY property doesn't exist");
62
 
        }
63
 
 
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");
69
 
        } else {
70
 
            DejaGnu.fail("ScreenMouseEvent::ScreenMouseEvent() method doesn't exist");
71
 
        }
72
 
        if (x1.clone == Event) {
73
 
            DejaGnu.pass("ScreenMouseEvent::clone() method exists");
74
 
        } else {
75
 
            DejaGnu.fail("ScreenMouseEvent::clone() method doesn't exist");
76
 
        }
77
 
        if (x1.toString == null) {
78
 
            DejaGnu.pass("ScreenMouseEvent::toString() method exists");
79
 
        } else {
80
 
            DejaGnu.fail("ScreenMouseEvent::toString() method doesn't exist");
81
 
        }
82
 
        if (x1.ACTIVATE == null) {
83
 
            DejaGnu.pass("ScreenMouseEvent::ACTIVATE() method exists");
84
 
        } else {
85
 
            DejaGnu.fail("ScreenMouseEvent::ACTIVATE() method doesn't exist");
86
 
        }
87
 
        if (x1.ADDED == null) {
88
 
            DejaGnu.pass("ScreenMouseEvent::ADDED() method exists");
89
 
        } else {
90
 
            DejaGnu.fail("ScreenMouseEvent::ADDED() method doesn't exist");
91
 
        }
92
 
        if (x1.ADDED == TO) {
93
 
            DejaGnu.pass("ScreenMouseEvent::ADDED() method exists");
94
 
        } else {
95
 
            DejaGnu.fail("ScreenMouseEvent::ADDED() method doesn't exist");
96
 
        }
97
 
        if (x1.CANCEL == null) {
98
 
            DejaGnu.pass("ScreenMouseEvent::CANCEL() method exists");
99
 
        } else {
100
 
            DejaGnu.fail("ScreenMouseEvent::CANCEL() method doesn't exist");
101
 
        }
102
 
        if (x1.CHANGE == null) {
103
 
            DejaGnu.pass("ScreenMouseEvent::CHANGE() method exists");
104
 
        } else {
105
 
            DejaGnu.fail("ScreenMouseEvent::CHANGE() method doesn't exist");
106
 
        }
107
 
        if (x1.CLICK == null) {
108
 
            DejaGnu.pass("ScreenMouseEvent::CLICK() method exists");
109
 
        } else {
110
 
            DejaGnu.fail("ScreenMouseEvent::CLICK() method doesn't exist");
111
 
        }
112
 
        if (x1.CLOSE == null) {
113
 
            DejaGnu.pass("ScreenMouseEvent::CLOSE() method exists");
114
 
        } else {
115
 
            DejaGnu.fail("ScreenMouseEvent::CLOSE() method doesn't exist");
116
 
        }
117
 
        if (x1.CLOSING == null) {
118
 
            DejaGnu.pass("ScreenMouseEvent::CLOSING() method exists");
119
 
        } else {
120
 
            DejaGnu.fail("ScreenMouseEvent::CLOSING() method doesn't exist");
121
 
        }
122
 
        if (x1.COMPLETE == null) {
123
 
            DejaGnu.pass("ScreenMouseEvent::COMPLETE() method exists");
124
 
        } else {
125
 
            DejaGnu.fail("ScreenMouseEvent::COMPLETE() method doesn't exist");
126
 
        }
127
 
        if (x1.CONNECT == null) {
128
 
            DejaGnu.pass("ScreenMouseEvent::CONNECT() method exists");
129
 
        } else {
130
 
            DejaGnu.fail("ScreenMouseEvent::CONNECT() method doesn't exist");
131
 
        }
132
 
        if (x1.CONTEXT == MENU) {
133
 
            DejaGnu.pass("ScreenMouseEvent::CONTEXT() method exists");
134
 
        } else {
135
 
            DejaGnu.fail("ScreenMouseEvent::CONTEXT() method doesn't exist");
136
 
        }
137
 
        if (x1.DEACTIVATE == null) {
138
 
            DejaGnu.pass("ScreenMouseEvent::DEACTIVATE() method exists");
139
 
        } else {
140
 
            DejaGnu.fail("ScreenMouseEvent::DEACTIVATE() method doesn't exist");
141
 
        }
142
 
        if (x1.DISPLAYING == null) {
143
 
            DejaGnu.pass("ScreenMouseEvent::DISPLAYING() method exists");
144
 
        } else {
145
 
            DejaGnu.fail("ScreenMouseEvent::DISPLAYING() method doesn't exist");
146
 
        }
147
 
        if (x1.DOUBLE == CLICK) {
148
 
            DejaGnu.pass("ScreenMouseEvent::DOUBLE() method exists");
149
 
        } else {
150
 
            DejaGnu.fail("ScreenMouseEvent::DOUBLE() method doesn't exist");
151
 
        }
152
 
        if (x1.ENTER == FRAME) {
153
 
            DejaGnu.pass("ScreenMouseEvent::ENTER() method exists");
154
 
        } else {
155
 
            DejaGnu.fail("ScreenMouseEvent::ENTER() method doesn't exist");
156
 
        }
157
 
        if (x1.EXITING == null) {
158
 
            DejaGnu.pass("ScreenMouseEvent::EXITING() method exists");
159
 
        } else {
160
 
            DejaGnu.fail("ScreenMouseEvent::EXITING() method doesn't exist");
161
 
        }
162
 
        if (x1.FULLSCREEN == null) {
163
 
            DejaGnu.pass("ScreenMouseEvent::FULLSCREEN() method exists");
164
 
        } else {
165
 
            DejaGnu.fail("ScreenMouseEvent::FULLSCREEN() method doesn't exist");
166
 
        }
167
 
        if (x1.HTML == BOUNDS) {
168
 
            DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
169
 
        } else {
170
 
            DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
171
 
        }
172
 
        if (x1.HTML == DOM) {
173
 
            DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
174
 
        } else {
175
 
            DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
176
 
        }
177
 
        if (x1.HTML == RENDER) {
178
 
            DejaGnu.pass("ScreenMouseEvent::HTML() method exists");
179
 
        } else {
180
 
            DejaGnu.fail("ScreenMouseEvent::HTML() method doesn't exist");
181
 
        }
182
 
        if (x1.ID3 == null) {
183
 
            DejaGnu.pass("ScreenMouseEvent::ID3() method exists");
184
 
        } else {
185
 
            DejaGnu.fail("ScreenMouseEvent::ID3() method doesn't exist");
186
 
        }
187
 
        if (x1.INIT == null) {
188
 
            DejaGnu.pass("ScreenMouseEvent::INIT() method exists");
189
 
        } else {
190
 
            DejaGnu.fail("ScreenMouseEvent::INIT() method doesn't exist");
191
 
        }
192
 
        if (x1.LOCATION == CHANGE) {
193
 
            DejaGnu.pass("ScreenMouseEvent::LOCATION() method exists");
194
 
        } else {
195
 
            DejaGnu.fail("ScreenMouseEvent::LOCATION() method doesn't exist");
196
 
        }
197
 
        if (x1.MIDDLE == CLICK) {
198
 
            DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
199
 
        } else {
200
 
            DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
201
 
        }
202
 
        if (x1.MIDDLE == MOUSE) {
203
 
            DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
204
 
        } else {
205
 
            DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
206
 
        }
207
 
        if (x1.MIDDLE == MOUSE) {
208
 
            DejaGnu.pass("ScreenMouseEvent::MIDDLE() method exists");
209
 
        } else {
210
 
            DejaGnu.fail("ScreenMouseEvent::MIDDLE() method doesn't exist");
211
 
        }
212
 
        if (x1.MOUSE == DOWN) {
213
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
214
 
        } else {
215
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
216
 
        }
217
 
        if (x1.MOUSE == LEAVE) {
218
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
219
 
        } else {
220
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
221
 
        }
222
 
        if (x1.MOUSE == MOVE) {
223
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
224
 
        } else {
225
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
226
 
        }
227
 
        if (x1.MOUSE == OUT) {
228
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
229
 
        } else {
230
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
231
 
        }
232
 
        if (x1.MOUSE == OVER) {
233
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
234
 
        } else {
235
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
236
 
        }
237
 
        if (x1.MOUSE == UP) {
238
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
239
 
        } else {
240
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
241
 
        }
242
 
        if (x1.MOUSE == WHEEL) {
243
 
            DejaGnu.pass("ScreenMouseEvent::MOUSE() method exists");
244
 
        } else {
245
 
            DejaGnu.fail("ScreenMouseEvent::MOUSE() method doesn't exist");
246
 
        }
247
 
        if (x1.NETWORK == CHANGE) {
248
 
            DejaGnu.pass("ScreenMouseEvent::NETWORK() method exists");
249
 
        } else {
250
 
            DejaGnu.fail("ScreenMouseEvent::NETWORK() method doesn't exist");
251
 
        }
252
 
        if (x1.OPEN == null) {
253
 
            DejaGnu.pass("ScreenMouseEvent::OPEN() method exists");
254
 
        } else {
255
 
            DejaGnu.fail("ScreenMouseEvent::OPEN() method doesn't exist");
256
 
        }
257
 
        if (x1.REMOVED == null) {
258
 
            DejaGnu.pass("ScreenMouseEvent::REMOVED() method exists");
259
 
        } else {
260
 
            DejaGnu.fail("ScreenMouseEvent::REMOVED() method doesn't exist");
261
 
        }
262
 
        if (x1.REMOVED == FROM) {
263
 
            DejaGnu.pass("ScreenMouseEvent::REMOVED() method exists");
264
 
        } else {
265
 
            DejaGnu.fail("ScreenMouseEvent::REMOVED() method doesn't exist");
266
 
        }
267
 
        if (x1.RENDER == null) {
268
 
            DejaGnu.pass("ScreenMouseEvent::RENDER() method exists");
269
 
        } else {
270
 
            DejaGnu.fail("ScreenMouseEvent::RENDER() method doesn't exist");
271
 
        }
272
 
        if (x1.RESIZE == null) {
273
 
            DejaGnu.pass("ScreenMouseEvent::RESIZE() method exists");
274
 
        } else {
275
 
            DejaGnu.fail("ScreenMouseEvent::RESIZE() method doesn't exist");
276
 
        }
277
 
        if (x1.RIGHT == CLICK) {
278
 
            DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
279
 
        } else {
280
 
            DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
281
 
        }
282
 
        if (x1.RIGHT == MOUSE) {
283
 
            DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
284
 
        } else {
285
 
            DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
286
 
        }
287
 
        if (x1.RIGHT == MOUSE) {
288
 
            DejaGnu.pass("ScreenMouseEvent::RIGHT() method exists");
289
 
        } else {
290
 
            DejaGnu.fail("ScreenMouseEvent::RIGHT() method doesn't exist");
291
 
        }
292
 
        if (x1.ROLL == OUT) {
293
 
            DejaGnu.pass("ScreenMouseEvent::ROLL() method exists");
294
 
        } else {
295
 
            DejaGnu.fail("ScreenMouseEvent::ROLL() method doesn't exist");
296
 
        }
297
 
        if (x1.ROLL == OVER) {
298
 
            DejaGnu.pass("ScreenMouseEvent::ROLL() method exists");
299
 
        } else {
300
 
            DejaGnu.fail("ScreenMouseEvent::ROLL() method doesn't exist");
301
 
        }
302
 
        if (x1.SCROLL == null) {
303
 
            DejaGnu.pass("ScreenMouseEvent::SCROLL() method exists");
304
 
        } else {
305
 
            DejaGnu.fail("ScreenMouseEvent::SCROLL() method doesn't exist");
306
 
        }
307
 
        if (x1.SELECT == null) {
308
 
            DejaGnu.pass("ScreenMouseEvent::SELECT() method exists");
309
 
        } else {
310
 
            DejaGnu.fail("ScreenMouseEvent::SELECT() method doesn't exist");
311
 
        }
312
 
        if (x1.SOUND == COMPLETE) {
313
 
            DejaGnu.pass("ScreenMouseEvent::SOUND() method exists");
314
 
        } else {
315
 
            DejaGnu.fail("ScreenMouseEvent::SOUND() method doesn't exist");
316
 
        }
317
 
        if (x1.TAB == CHILDREN) {
318
 
            DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
319
 
        } else {
320
 
            DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
321
 
        }
322
 
        if (x1.TAB == ENABLED) {
323
 
            DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
324
 
        } else {
325
 
            DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
326
 
        }
327
 
        if (x1.TAB == INDEX) {
328
 
            DejaGnu.pass("ScreenMouseEvent::TAB() method exists");
329
 
        } else {
330
 
            DejaGnu.fail("ScreenMouseEvent::TAB() method doesn't exist");
331
 
        }
332
 
        if (x1.UNLOAD == null) {
333
 
            DejaGnu.pass("ScreenMouseEvent::UNLOAD() method exists");
334
 
        } else {
335
 
            DejaGnu.fail("ScreenMouseEvent::UNLOAD() method doesn't exist");
336
 
        }
337
 
        if (x1.USER == IDLE) {
338
 
            DejaGnu.pass("ScreenMouseEvent::USER() method exists");
339
 
        } else {
340
 
            DejaGnu.fail("ScreenMouseEvent::USER() method doesn't exist");
341
 
        }
342
 
        if (x1.USER == PRESENT) {
343
 
            DejaGnu.pass("ScreenMouseEvent::USER() method exists");
344
 
        } else {
345
 
            DejaGnu.fail("ScreenMouseEvent::USER() method doesn't exist");
346
 
        }
347
 
 
348
 
        // Call this after finishing all tests. It prints out the totals.
349
 
        DejaGnu.done();
350
 
    }
351
 
}
352
 
 
353
 
// local Variables:
354
 
// mode: C++
355
 
// indent-tabs-mode: t
356
 
// End:
357