tests: Add test for targetPath action
This commit is contained in:
parent
e9f9cda34d
commit
bbc5e01009
|
@ -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.
|
||||||
|
|
|
@ -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.
Loading…
Reference in New Issue