@@ -394,8 +394,8 @@ StyledItem {
394 view.locked = true;
394 view.locked = true;
395 view.showPrompt("Prompt", true, true);
395 view.showPrompt("Prompt", true, true);
396 var passwordInput = findChild(view, "passwordInput");
396 var passwordInput = findChild(view, "passwordInput");
397− compare(passwordInput.placeholderText, "Prompt");
397+ compare(passwordInput.text, "Prompt");
398− compare(passwordInput.echoMode, TextInput.Password);
398+ verify(passwordInput.isSecret);
399 tap(passwordInput);
399 tap(passwordInput);
400 typeString("password");
400 typeString("password");
401 keyClick(Qt.Key_Enter);
401 keyClick(Qt.Key_Enter);
@@ -407,8 +407,8 @@ StyledItem {
407 view.locked = true;
407 view.locked = true;
408 view.showPrompt("otp", false, false);
408 view.showPrompt("otp", false, false);
409 var passwordInput = findChild(view, "passwordInput");
409 var passwordInput = findChild(view, "passwordInput");
410− compare(passwordInput.placeholderText, "otp");
410+ compare(passwordInput.text, "otp");
411− compare(passwordInput.echoMode, TextInput.Normal);
411+ verify(!passwordInput.isSecret);
412 tap(passwordInput);
412 tap(passwordInput);
413 typeString("foo");
413 typeString("foo");
414 keyClick(Qt.Key_Enter);
414 keyClick(Qt.Key_Enter);
@@ -441,7 +441,6 @@ StyledItem {
441 var infoLabel = findChild(view, "infoLabel");
441 var infoLabel = findChild(view, "infoLabel");
442 compare(infoLabel.text, "Welcome to Unity Greeter<br><font color=\"#df382c\">This is an error</font><br>You should have seen three messages and this is a really long message too. wow so long much length");
442 compare(infoLabel.text, "Welcome to Unity Greeter<br><font color=\"#df382c\">This is an error</font><br>You should have seen three messages and this is a really long message too. wow so long much length");
443 compare(infoLabel.textFormat, Text.StyledText);
443 compare(infoLabel.textFormat, Text.StyledText);
444− compare(infoLabel.clip, true);
445 verify(infoLabel.contentWidth > infoLabel.width);
444 verify(infoLabel.contentWidth > infoLabel.width);
446 verify(infoLabel.opacity < 1);
445 verify(infoLabel.opacity < 1);
447 tryCompare(infoLabel, "opacity", 1);
446 tryCompare(infoLabel, "opacity", 1);
@@ -453,15 +452,15 @@ StyledItem {
453 selectedSpy.clear();
452 selectedSpy.clear();
454 view.locked = true;
453 view.locked = true;
455 view.showPrompt("Prompt", true, true);
454 view.showPrompt("Prompt", true, true);
456− var passwordInput = findChild(view, "passwordInput");
455+ var promptField = findChild(view, "promptField");
457− tap(passwordInput);
456+ tap(promptField);
458− compare(passwordInput.focus, true);
457+ compare(promptField.focus, true);
459− compare(passwordInput.enabled, true);
458+ compare(promptField.enabled, true);
461 typeString("password");
460 typeString("password");
462 keyClick(Qt.Key_Enter);
461 keyClick(Qt.Key_Enter);
463− compare(passwordInput.focus, false);
462+ compare(promptField.focus, true);
464− compare(passwordInput.enabled, false);
463+ compare(promptField.enabled, false);
466 compare(selectedSpy.count, 0);
465 compare(selectedSpy.count, 0);
467 keyClick(Qt.Key_Escape);
466 keyClick(Qt.Key_Escape);
@@ -469,8 +468,8 @@ StyledItem {
469 compare(selectedSpy.signalArguments[0][0], 1);
468 compare(selectedSpy.signalArguments[0][0], 1);
471 view.reset();
470 view.reset();
472− compare(passwordInput.focus, false);
471+ compare(promptField.focus, false);
473− compare(passwordInput.enabled, true);
472+ compare(promptField.enabled, true);
476 function test_unicode() {
475 function test_unicode() {
@@ -479,17 +478,11 @@ StyledItem {
479 tryCompare(label, "text", "가나다라마");
478 tryCompare(label, "text", "가나다라마");
482− function test_longName() {
483− var index = selectUser("long-name");
484− var label = findChild(view, "username" + index);
485− tryCompare(label, "truncated", true);
488 function test_promptless() {
481 function test_promptless() {
489 var passwordInput = findChild(view, "passwordInput");
482 var passwordInput = findChild(view, "passwordInput");
491 view.locked = true;
484 view.locked = true;
492− compare(passwordInput.placeholderText, "Retry");
485+ compare(passwordInput.text, "Retry");
493 tap(passwordInput);
486 tap(passwordInput);
494 compare(respondedSpy.count, 0);
487 compare(respondedSpy.count, 0);
495 compare(selectedSpy.count, 1);
488 compare(selectedSpy.count, 1);
@@ -497,7 +490,7 @@ StyledItem {
497 selectedSpy.clear();
490 selectedSpy.clear();
499 view.locked = false;
492 view.locked = false;
500− compare(passwordInput.placeholderText, "Tap to unlock");
493+ compare(passwordInput.text, "Log In");
501 tap(passwordInput);
494 tap(passwordInput);
502 compare(selectedSpy.count, 0);
495 compare(selectedSpy.count, 0);
503 compare(respondedSpy.count, 1);
496 compare(respondedSpy.count, 1);
@@ -529,11 +522,9 @@ StyledItem {
529 var passwordInput = findChild(view, "passwordInput");
522 var passwordInput = findChild(view, "passwordInput");
531 verify(view.alphanumeric);
524 verify(view.alphanumeric);
532− compare(passwordInput.inputMethodHints, Qt.ImhNone);
525+ verify(passwordInput.isAlphanumeric);
533 view.alphanumeric = false;
526 view.alphanumeric = false;
534− compare(passwordInput.inputMethodHints, Qt.ImhDigitsOnly);
527+ verify(!passwordInput.isAlphanumeric);
535− view.alphanumeric = true;
536− compare(passwordInput.inputMethodHints, Qt.ImhNone);