Skip to content

Commit

Permalink
tests: Add attach_movie_stop test
Browse files Browse the repository at this point in the history
This test verifies that stop() works properly for a movie clip
attached with attachMovie in DoInitAction.
  • Loading branch information
kjarosh committed May 21, 2024
1 parent cfbb5e9 commit af61146
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tests/swfs/avm1/attach_movie_stop/asset_1.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trace("Before stop");
stop();
trace("After stop");
1 change: 1 addition & 0 deletions tests/tests/swfs/avm1/attach_movie_stop/asset_2.as
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trace("Second frame, I shouldn\'t be executed!");
3 changes: 3 additions & 0 deletions tests/tests/swfs/avm1/attach_movie_stop/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Attaching asset
Before stop
After stop
2 changes: 2 additions & 0 deletions tests/tests/swfs/avm1/attach_movie_stop/test.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trace("Attaching");
attachMovie("Test", "test", 30);
Binary file added tests/tests/swfs/avm1/attach_movie_stop/test.swf
Binary file not shown.
1 change: 1 addition & 0 deletions tests/tests/swfs/avm1/attach_movie_stop/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
num_ticks = 2

0 comments on commit af61146

Please sign in to comment.