We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b280dff + 880ac60 commit 414a4d8Copy full SHA for 414a4d8
test/unit/scripting_spec.js
@@ -1168,11 +1168,25 @@ describe("Scripting", function () {
1168
value: "3F?",
1169
change: "0",
1170
name: "Keystroke",
1171
- willCommit: true,
+ willCommit: false,
1172
selStart: 3,
1173
selEnd: 3,
1174
});
1175
expect(send_queue.has(refId)).toEqual(false);
1176
+
1177
+ await sandbox.dispatchEventInSandbox({
1178
+ id: refId,
1179
+ value: "3F?0",
1180
+ name: "Keystroke",
1181
+ willCommit: true,
1182
+ selStart: 4,
1183
+ selEnd: 4,
1184
+ });
1185
+ expect(send_queue.has(refId)).toEqual(true);
1186
+ expect(send_queue.get(refId)).toEqual({
1187
1188
+ valueAsString: "3F?0",
1189
1190
1191
1192
0 commit comments