Skip to content

Commit aae6ad5

Browse files
kjaroshDinnerbone
authored andcommitted
tests: Add edittext_paste_empty test
This test verifies how FP behaves when pasting with an empty clipboard.
1 parent 0d7b15e commit aae6ad5

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{ "type": "SetClipboardText", "text": "test" },
3+
{ "type": "TextControl", "code": "Paste" },
4+
{ "type": "KeyDown", "key_code": 27 },
5+
{ "type": "SetClipboardText", "text": "" },
6+
{ "type": "TextControl", "code": "SelectAll" },
7+
{ "type": "TextControl", "code": "Paste" },
8+
{ "type": "KeyDown", "key_code": 27 }
9+
]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Text: 'test'
2+
Text: 'test'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var listener = new Object();
2+
listener.onKeyDown = function() {
3+
if (Key.getCode() == 27) {
4+
trace("Text: '" + text.text + "'");
5+
}
6+
};
7+
Key.addListener(listener);
8+
9+
Selection.setFocus(text);
233 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
num_ticks = 1

0 commit comments

Comments
 (0)