Skip to content

Commit

Permalink
tests: Add test for TextField.autoSize/background
Browse files Browse the repository at this point in the history
  • Loading branch information
Herschel committed Feb 13, 2021
1 parent 54cded1 commit bcfc96e
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 11 deletions.
58 changes: 47 additions & 11 deletions core/tests/swfs/avm1/edittext_autosize/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,67 @@
//my_txt1._width + my_txt1._x
150
//my_txt1.textWidth
190
195
// xMin:
50
// xMax:
150
// yMin:
40
// yMax:
70

// autosize left
//my_txt2._x
50
//my_txt2._width
194.9
199.9
//my_txt2._width + my_txt2._x
244.9
249.9
//my_txt2.textWidth
190
195
// xMin:
50
// xMax:
249.9
// yMin:
80
// yMax:
102.3

// autosize center
//my_txt3._x
2.55
0.05
//my_txt3._width
194.9
199.9
//my_txt3._width + my_txt3._x
197.45
199.95
//my_txt3.textWidth
190
195
// xMin:
0.05
// xMax:
199.95
// yMin:
120
// yMax:
142.3

// autosize right
//my_txt4._x
-44.9
-49.9
//my_txt4._width
194.9
199.9
//my_txt4._width + my_txt4._x
150
//my_txt4.textWidth
190
195
// xMin:
-49.9
// xMax:
150
// yMin:
160
// yMax:
182.3

Binary file modified core/tests/swfs/avm1/edittext_autosize/test.fla
Binary file not shown.
Binary file modified core/tests/swfs/avm1/edittext_autosize/test.swf
Binary file not shown.
5 changes: 5 additions & 0 deletions core/tests/swfs/avm1/textfield_properties/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ undefined
// txt.textColor:
4210752

// txt.background:
false
// txt.background = true:
true

Binary file modified core/tests/swfs/avm1/textfield_properties/test.fla
Binary file not shown.
Binary file modified core/tests/swfs/avm1/textfield_properties/test.swf
Binary file not shown.

0 comments on commit bcfc96e

Please sign in to comment.