-
-
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 avm1/edittext_place_caret test
This test verifies how the text field and its selection behave when placing a caret with the mouse.
- Loading branch information
Showing
5 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
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,11 @@ | ||
[ | ||
{ "type": "KeyDown", "key_code": 27 }, | ||
{ "type": "MouseMove", "pos": [400, 10] }, | ||
{ "type": "MouseDown", "pos": [400, 10], "btn": "Left" }, | ||
{ "type": "MouseUp", "pos": [400, 10], "btn": "Left" }, | ||
{ "type": "TextInput", "codepoint": "a" }, | ||
{ "type": "TextInput", "codepoint": "s" }, | ||
{ "type": "TextInput", "codepoint": "d" }, | ||
{ "type": "TextInput", "codepoint": "f" }, | ||
{ "type": "KeyDown", "key_code": 27 } | ||
] |
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 @@ | ||
Text: test | ||
Text: testasdf |
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,7 @@ | ||
var listener = new Object(); | ||
listener.onKeyDown = function() { | ||
if (Key.getCode() == 27) { | ||
trace("Text: " + text.text); | ||
} | ||
}; | ||
Key.addListener(listener); |
Binary file not shown.
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 @@ | ||
num_ticks = 1 |