-
Notifications
You must be signed in to change notification settings - Fork 11
/
AbstractTests.hx
70 lines (36 loc) · 1.07 KB
/
AbstractTests.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package test.script;
import test.native.Color;
class AbstractTests {
public static function test1() {
var color = new Color(0xFF00FF);
return '' + color;
} //test1
public static function test2() {
var color = Color.RED;
return '' + color;
} //test2
public static function test3() {
var color = Color.PURPLE;
return '' + color.blue;
} //test3
public static function test4() {
var color = Color.PURPLE;
color.redFloat = 0;
color.blue = 255;
return '' + color;
} //test4
public static function test5() {
var prevNone = Color.NONE;
Color.NONE = -2;
return '' + prevNone + ' / ' + Color.NONE;
} //test5
public static function test6() {
var color = Color.fromRGB(0, 255, 0);
return '' + color;
} //test6
public static function test7() {
var color = Color.fromRGB(0, 255, 0);
var str = color.toWebString();
return '' + color + ' / ' + str;
} //test7
} //AbstractTests