Skip to content

Commit bcfc96e

Browse files
committed
tests: Add test for TextField.autoSize/background
1 parent 54cded1 commit bcfc96e

File tree

6 files changed

+52
-11
lines changed

6 files changed

+52
-11
lines changed

core/tests/swfs/avm1/edittext_autosize/output.txt

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,67 @@
66
//my_txt1._width + my_txt1._x
77
150
88
//my_txt1.textWidth
9-
190
9+
195
10+
// xMin:
11+
50
12+
// xMax:
13+
150
14+
// yMin:
15+
40
16+
// yMax:
17+
70
18+
1019
// autosize left
1120
//my_txt2._x
1221
50
1322
//my_txt2._width
14-
194.9
23+
199.9
1524
//my_txt2._width + my_txt2._x
16-
244.9
25+
249.9
1726
//my_txt2.textWidth
18-
190
27+
195
28+
// xMin:
29+
50
30+
// xMax:
31+
249.9
32+
// yMin:
33+
80
34+
// yMax:
35+
102.3
36+
1937
// autosize center
2038
//my_txt3._x
21-
2.55
39+
0.05
2240
//my_txt3._width
23-
194.9
41+
199.9
2442
//my_txt3._width + my_txt3._x
25-
197.45
43+
199.95
2644
//my_txt3.textWidth
27-
190
45+
195
46+
// xMin:
47+
0.05
48+
// xMax:
49+
199.95
50+
// yMin:
51+
120
52+
// yMax:
53+
142.3
54+
2855
// autosize right
2956
//my_txt4._x
30-
-44.9
57+
-49.9
3158
//my_txt4._width
32-
194.9
59+
199.9
3360
//my_txt4._width + my_txt4._x
3461
150
3562
//my_txt4.textWidth
36-
190
63+
195
64+
// xMin:
65+
-49.9
66+
// xMax:
67+
150
68+
// yMin:
69+
160
70+
// yMax:
71+
182.3
72+
-42.2 KB
Binary file not shown.
-28 Bytes
Binary file not shown.

core/tests/swfs/avm1/textfield_properties/output.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ undefined
3838
// txt.textColor:
3939
4210752
4040

41+
// txt.background:
42+
false
43+
// txt.background = true:
44+
true
45+
81 Bytes
Binary file not shown.
44 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)