tests: Add test for targetPath action

This commit is contained in:
Mike Welsh 2020-08-20 14:49:33 -07:00
parent e9f9cda34d
commit bbc5e01009
4 changed files with 16 additions and 0 deletions

View File

@ -297,6 +297,7 @@ swf_tests! {
(conflicting_instance_names, "avm1/conflicting_instance_names", 6), (conflicting_instance_names, "avm1/conflicting_instance_names", 6),
(button_children, "avm1/button_children", 1), (button_children, "avm1/button_children", 1),
(transform, "avm1/transform", 1), (transform, "avm1/transform", 1),
(target_path, "avm1/target_path", 1),
} }
// TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough. // TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough.

View File

@ -0,0 +1,15 @@
// targetPath(clip)
_level0.clip
// targetPath(button)
_level0.button
// targetPath(text)
_level0.text
// targetPath('clip')
undefined
// targetPath({})
undefined

Binary file not shown.

Binary file not shown.