-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add tab_ordering_properties_tab_index_edge_case test
This test covers the edge case of MovieClip.tabIndex, where setting it to a string at the start returns this string instead of a numerical value.
- Loading branch information
Showing
4 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/tests/swfs/avm1/tab_ordering_properties_tab_index_edge_case/output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
asdf | ||
asdf2 | ||
5 | ||
asdf3 |
8 changes: 8 additions & 0 deletions
8
tests/tests/swfs/avm1/tab_ordering_properties_tab_index_edge_case/test.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
this.tabIndex = "asdf"; | ||
trace(this.tabIndex); | ||
this.tabIndex = "asdf2"; | ||
trace(this.tabIndex); | ||
this.tabIndex = 5; | ||
trace(this.tabIndex); | ||
this.tabIndex = "asdf3"; | ||
trace(this.tabIndex); |
Binary file added
BIN
+110 Bytes
tests/tests/swfs/avm1/tab_ordering_properties_tab_index_edge_case/test.swf
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
tests/tests/swfs/avm1/tab_ordering_properties_tab_index_edge_case/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
num_ticks = 1 | ||
known_failure = true |