1
// InterpolationMethod_as.hx: ActionScript 3 "InterpolationMethod" class, for Gnash.
3
// Generated on: 20090601 by "bnaugle". 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.display.InterpolationMethod;
28
import flash.display.MovieClip;
33
// import our testing API
36
// Class must be named with the _as suffix, as that's the same name as the file.
37
class InterpolationMethod_as {
38
static function main() {
40
// Make sure we actually get a valid class
41
if (InterpolationMethod.LINEAR_RGB != null) {
42
DejaGnu.pass("InterpolationMethod.LINEAR_RGB constant exists");
43
if (Std.is(InterpolationMethod.LINEAR_RGB, String)) {
44
DejaGnu.pass("InterpolationMethod.LINEAR_RGB is a String");
45
if (Std.string(InterpolationMethod.LINEAR_RGB) == "linearRGB") {
46
DejaGnu.pass("InterpolationMethod.LINEAR_RGB is the correct string (linearRGB)");
49
"InterpolationMethod.LINEAR_RGB is not the correct string (Should be linearRGB, but is "+InterpolationMethod.LINEAR_RGB+")");
52
DejaGnu.fail("InterpolationMethod.LINEAR_RGB is not a string. Instead, it is a "+Type.typeof(InterpolationMethod.LINEAR_RGB));
55
DejaGnu.fail("InterpolationMethod.LINEAR_RGB constant doesn't exist");
58
if (InterpolationMethod.RGB != null) {
59
DejaGnu.pass("InterpolationMethod.RGB constant exists");
60
if (Std.is(InterpolationMethod.RGB, String)) {
61
DejaGnu.pass("InterpolationMethod.RGB is a String");
62
if (Std.string(InterpolationMethod.RGB) == "rgb") {
63
DejaGnu.pass("InterpolationMethod.RGB is the correct string (rgb)");
66
"InterpolationMethod.RGB is not the correct string (Should be rgb, but is "+InterpolationMethod.RGB+")");
69
DejaGnu.fail("InterpolationMethod.RGB is not a string. Instead, it is a "+Type.typeof(InterpolationMethod.RGB));
72
DejaGnu.fail("InterpolationMethod.RGB constant doesn't exist");
77
DejaGnu.note("This class (InterpolationMethod) is only available in flash9");
84
// indent-tabs-mode: t