Skip to content

Commit

Permalink
tests: Update avm2/tab_ordering_properties
Browse files Browse the repository at this point in the history
Add a case with tabIndex = -1.
  • Loading branch information
kjarosh authored and Dinnerbone committed Apr 30, 2024
1 parent 8ee514e commit 8f288b5
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/tests/swfs/avm2/tab_ordering_properties/Test.as
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,22 @@ public class Test extends MovieClip {

trace(' after set 10');
this.printProperties(obj);

this.logError(function():void {
trace(' set tabEnabled');
obj.tabEnabled = -1;
});
this.logError(function():void {
trace(' set tabIndex');
obj.tabIndex = -1;
});
this.logError(function():void {
trace(' set tabChildren');
obj.tabChildren = -1;
});

trace(' after set 11');
this.printProperties(obj);
}
}
}
61 changes: 61 additions & 0 deletions tests/tests/swfs/avm2/tab_ordering_properties/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@
tabEnabled = false
tabIndex = -1
tabChildren = true
set tabEnabled
Error: Error: Error #2071: The Stage class does not implement this property or method.
set tabIndex
Error: Error: Error #2071: The Stage class does not implement this property or method.
set tabChildren
after set 11
tabEnabled = false
tabIndex = -1
tabChildren = true
===== text =====
default
tabEnabled = false
Expand Down Expand Up @@ -181,6 +190,14 @@
tabEnabled = true
tabIndex = 1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.text.TextField and there is no default value.
set tabEnabled
set tabIndex
set tabChildren
Error: ReferenceError: Error #1056: Cannot create property tabChildren on flash.text.TextField.
after set 11
tabEnabled = true
tabIndex = -1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.text.TextField and there is no default value.
===== text type input =====
default
tabEnabled = true
Expand Down Expand Up @@ -269,6 +286,14 @@
tabEnabled = true
tabIndex = 1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.text.TextField and there is no default value.
set tabEnabled
set tabIndex
set tabChildren
Error: ReferenceError: Error #1056: Cannot create property tabChildren on flash.text.TextField.
after set 11
tabEnabled = true
tabIndex = -1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.text.TextField and there is no default value.
===== button =====
default
tabEnabled = true
Expand Down Expand Up @@ -357,6 +382,14 @@
tabEnabled = true
tabIndex = 1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.display.SimpleButton and there is no default value.
set tabEnabled
set tabIndex
set tabChildren
Error: ReferenceError: Error #1056: Cannot create property tabChildren on flash.display.SimpleButton.
after set 11
tabEnabled = true
tabIndex = -1
Error: ReferenceError: Error #1069: Property tabChildren not found on flash.display.SimpleButton and there is no default value.
===== movie clip =====
default
tabEnabled = false
Expand Down Expand Up @@ -435,6 +468,13 @@
tabEnabled = true
tabIndex = 1
tabChildren = true
set tabEnabled
set tabIndex
set tabChildren
after set 11
tabEnabled = true
tabIndex = -1
tabChildren = true
===== movie clip button mode true =====
default
tabEnabled = true
Expand Down Expand Up @@ -513,6 +553,13 @@
tabEnabled = true
tabIndex = 1
tabChildren = true
set tabEnabled
set tabIndex
set tabChildren
after set 11
tabEnabled = true
tabIndex = -1
tabChildren = true
===== movie clip with index =====
default
tabEnabled = false
Expand Down Expand Up @@ -591,6 +638,13 @@
tabEnabled = true
tabIndex = 1
tabChildren = true
set tabEnabled
set tabIndex
set tabChildren
after set 11
tabEnabled = true
tabIndex = -1
tabChildren = true
===== sprite =====
default
tabEnabled = false
Expand Down Expand Up @@ -669,3 +723,10 @@
tabEnabled = true
tabIndex = 1
tabChildren = true
set tabEnabled
set tabIndex
set tabChildren
after set 11
tabEnabled = true
tabIndex = -1
tabChildren = true
Binary file modified tests/tests/swfs/avm2/tab_ordering_properties/test.swf
Binary file not shown.

0 comments on commit 8f288b5

Please sign in to comment.