Skip to content

Commit acfb149

Browse files
CUB3Dkmeisthax
authored andcommitted
tests: Add tests for button hittests, update hitTestPoint with onStage tests
1 parent 80cf98f commit acfb149

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

tests/tests/regression_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ swf_tests! {
208208
(as3_boolean_constr, "avm2/boolean_constr", 1),
209209
(as3_boolean_negation, "avm2/boolean_negation", 1),
210210
(as3_boolean_tostring, "avm2/boolean_tostring", 1),
211+
(as3_button_hittest, "avm2/button_hittest", 1),
211212
(as3_bytearray_readobject_amf0, "avm2/bytearray_readobject_amf0", 1),
212213
(as3_bytearray_readobject_amf3, "avm2/bytearray_readobject_amf3", 1),
213214
(as3_bytearray_writeobject, "avm2/bytearray_writeobject", 1),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// MP.hitTestObject(Btn1)
2+
true
6.94 KB
Binary file not shown.
754 Bytes
Binary file not shown.

tests/tests/swfs/avm2/displayobject_hittestpoint/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ false
4343
false
4444
//this.symbol1_1.hitTestPoint(50.0, 50.0, true);
4545
false
46+
//this.symbol1.hitTestPoint(50.0, 50.0, true); (after removing from stage)
47+
false
48+
//this.symbol1.hitTestPoint(50.0, 50.0, false); (after removing from stage)
49+
true
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)