380
391
tryCompare(listItemSpy, "count", 0, 100);
394
function test_OneActiveFocus() {
396
compare(t1.activeFocus, true, "T1 has activeFocus");
397
compare(t2.activeFocus, false, "T1 has activeFocus");
399
compare(t1.activeFocus, false, "T1 has activeFocus");
400
compare(t2.activeFocus, true, "T1 has activeFocus");
403
function test_OSK_ShownWhenNextTextAreaIsFocused() {
404
// detect whether we have OSK support
405
Qt.inputMethod.show();
406
if (!Qt.inputMethod.visible)
407
expectFail("", "OSK can be tested only when present");
409
Qt.inputMethod.hide();
411
compare(Qt.inputMethod.visible, true, "OSK is shown for the first TextArea");
413
compare(Qt.inputMethod.visible, true, "OSK is shown for the second TextArea");
416
function test_RemoveOSKWhenFocusLost() {
417
// detect whether we have OSK support
418
Qt.inputMethod.show();
419
if (!Qt.inputMethod.visible)
420
expectFail("", "OSK can be tested only when present");
422
Qt.inputMethod.hide();
424
compare(Qt.inputMethod.visible, true, "OSK is shown when TextArea gains focus");
426
compare(Qt.inputMethod.visible, false, "OSK is hidden when TextArea looses focus");
383
429
// make it to b ethe last test case executed
384
430
function test_zz_TextareaInListItem_RichTextEnterCaptured() {
385
431
textArea.text = "a<br />b";