tests: Add tests for button hittests, update hitTestPoint with onStage tests

This commit is contained in:
CUB3D 2022-12-16 19:10:08 +00:00 committed by kmeisthax
parent 80cf98f501
commit acfb149316
7 changed files with 7 additions and 0 deletions

View File

@ -208,6 +208,7 @@ swf_tests! {
(as3_boolean_constr, "avm2/boolean_constr", 1), (as3_boolean_constr, "avm2/boolean_constr", 1),
(as3_boolean_negation, "avm2/boolean_negation", 1), (as3_boolean_negation, "avm2/boolean_negation", 1),
(as3_boolean_tostring, "avm2/boolean_tostring", 1), (as3_boolean_tostring, "avm2/boolean_tostring", 1),
(as3_button_hittest, "avm2/button_hittest", 1),
(as3_bytearray_readobject_amf0, "avm2/bytearray_readobject_amf0", 1), (as3_bytearray_readobject_amf0, "avm2/bytearray_readobject_amf0", 1),
(as3_bytearray_readobject_amf3, "avm2/bytearray_readobject_amf3", 1), (as3_bytearray_readobject_amf3, "avm2/bytearray_readobject_amf3", 1),
(as3_bytearray_writeobject, "avm2/bytearray_writeobject", 1), (as3_bytearray_writeobject, "avm2/bytearray_writeobject", 1),

View File

@ -0,0 +1,2 @@
// MP.hitTestObject(Btn1)
true

Binary file not shown.

Binary file not shown.

View File

@ -43,3 +43,7 @@ false
false false
//this.symbol1_1.hitTestPoint(50.0, 50.0, true); //this.symbol1_1.hitTestPoint(50.0, 50.0, true);
false false
//this.symbol1.hitTestPoint(50.0, 50.0, true); (after removing from stage)
false
//this.symbol1.hitTestPoint(50.0, 50.0, false); (after removing from stage)
true