tests: Add swf tests for PlaceObject3 image tag
This commit is contained in:
parent
3609095b97
commit
8fc0ae3630
|
@ -2181,6 +2181,36 @@ pub fn tag_tests() -> Vec<TagTestData> {
|
||||||
TagCode::PlaceObject2,
|
TagCode::PlaceObject2,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
11,
|
||||||
|
Tag::PlaceObject(Box::new(PlaceObject {
|
||||||
|
version: 3,
|
||||||
|
action: PlaceObjectAction::Place(1),
|
||||||
|
depth: 1,
|
||||||
|
matrix: Some(Matrix {
|
||||||
|
translate_x: Twips::from_pixels(0.0),
|
||||||
|
translate_y: Twips::from_pixels(0.0),
|
||||||
|
rotate_skew_0: 0f32,
|
||||||
|
rotate_skew_1: 0f32,
|
||||||
|
scale_x: 1.0f32,
|
||||||
|
scale_y: 1.0f32,
|
||||||
|
}),
|
||||||
|
color_transform: None,
|
||||||
|
ratio: None,
|
||||||
|
name: None,
|
||||||
|
clip_depth: None,
|
||||||
|
class_name: None,
|
||||||
|
filters: vec![],
|
||||||
|
background_color: None,
|
||||||
|
blend_mode: BlendMode::Normal,
|
||||||
|
clip_actions: vec![],
|
||||||
|
is_image: true,
|
||||||
|
is_bitmap_cached: false,
|
||||||
|
is_visible: true,
|
||||||
|
amf_data: None,
|
||||||
|
})),
|
||||||
|
read_tag_bytes_from_file("tests/swfs/PlaceObject3-Image.swf", TagCode::PlaceObject3),
|
||||||
|
),
|
||||||
(
|
(
|
||||||
8,
|
8,
|
||||||
Tag::PlaceObject(Box::new(PlaceObject {
|
Tag::PlaceObject(Box::new(PlaceObject {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue