Skip to content

Commit

Permalink
tests: Improve avm2/edittext_autosize_height_dynamic
Browse files Browse the repository at this point in the history
Trace positions and sizes of fields.
  • Loading branch information
kjarosh committed Nov 27, 2024
1 parent 91a655b commit c1e99e1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class Test extends Sprite {
text.htmlText = htmlText;
text.autoSize = autosize;
trace("(w, h) = (" + text.textWidth + ", " + text.textHeight + ")");
trace("(x, y, w, h) = (" + text.x + ", " + text.y + ", " + text.width + ", " + text.height + ")");
addChild(text);
}
}
Expand Down
30 changes: 30 additions & 0 deletions tests/tests/swfs/avm2/edittext_autosize_height_dynamic/output.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,60 @@
(w, h) = (32, 40)
(x, y, w, h) = (0, 0, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (0, 62, 100, 44)
(w, h) = (32, 40)
(x, y, w, h) = (32, 124, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (0, 186, 100, 44)
(w, h) = (32, 40)
(x, y, w, h) = (64, 248, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (0, 310, 100, 44)
(w, h) = (32, 40)
(x, y, w, h) = (100, 0, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (100, 62, 100, 44)
(w, h) = (32, 40)
(x, y, w, h) = (132, 124, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (100, 186, 100, 44)
(w, h) = (32, 40)
(x, y, w, h) = (164, 248, 36, 44)
(w, h) = (32, 40)
(x, y, w, h) = (100, 310, 100, 44)
(w, h) = (32, 15)
(x, y, w, h) = (200, 0, 36, 19)
(w, h) = (32, 15)
(x, y, w, h) = (200, 62, 100, 19)
(w, h) = (0, 0)
(x, y, w, h) = (200, 124, 4, 4)
(w, h) = (0, 0)
(x, y, w, h) = (200, 186, 100, 4)
(w, h) = (0, 15)
(x, y, w, h) = (200, 248, 4, 19)
(w, h) = (0, 15)
(x, y, w, h) = (200, 310, 100, 19)
(w, h) = (0, 15)
(x, y, w, h) = (396, 0, 4, 19)
(w, h) = (0, 15)
(x, y, w, h) = (300, 62, 100, 19)
(w, h) = (0, 15)
(x, y, w, h) = (348, 124, 4, 19)
(w, h) = (0, 15)
(x, y, w, h) = (300, 186, 100, 19)
(w, h) = (0, 25)
(x, y, w, h) = (300, 248, 4, 29)
(w, h) = (0, 25)
(x, y, w, h) = (300, 310, 100, 29)
(w, h) = (96, 25)
(x, y, w, h) = (400, 0, 100, 29)
(w, h) = (96, 40)
(x, y, w, h) = (400, 62, 100, 44)
(w, h) = (96, 25)
(x, y, w, h) = (400, 124, 100, 29)
(w, h) = (96, 25)
(x, y, w, h) = (400, 186, 100, 29)
(w, h) = (96, 40)
(x, y, w, h) = (400, 248, 100, 44)
(w, h) = (96, 25)
(x, y, w, h) = (400, 310, 100, 29)
Binary file modified tests/tests/swfs/avm2/edittext_autosize_height_dynamic/test.swf
Binary file not shown.

0 comments on commit c1e99e1

Please sign in to comment.