haikuwebkit/LayoutTests/accessibility/ios-simulator/strong-password-field.html

45 lines
1.2 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<meta charset="UTF-8">
</head>
<body id="body">
<div id="container">
<input id="pw1" type="password" value="password">
<input id="pw2" type="password" value="strong password">
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests the strong password fields on iOS");
var pw1 = document.getElementById("pw1");
var pw2 = document.getElementById("pw2");
if (window.internals) {
window.internals.setAutofilled(pw2, true);
Remove Strong Confirmation Password button https://bugs.webkit.org/show_bug.cgi?id=187306 <rdar://problem/41795185> Reviewed by Sam Weinig. Remove support for the Strong Confirmation Password button because we never made use of it. Source/WebCore: * English.lproj/Localizable.strings: * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilityIsStrongPasswordField]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * html/HTMLInputElement.h: (WebCore::HTMLInputElement::hasAutoFillStrongPasswordButton const): * html/HTMLTextFormControlElement.h: * html/TextFieldInputType.cpp: (WebCore::autoFillButtonTypeToAccessibilityLabel): (WebCore::autoFillButtonTypeToAutoFillButtonText): (WebCore::autoFillButtonTypeToAutoFillButtonPseudoClassName): (WebCore::isAutoFillButtonTypeChanged): * platform/LocalizedStrings.cpp: (WebCore::AXAutoFillStrongConfirmationPasswordLabel): Deleted. * platform/LocalizedStrings.h: * rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::layout): * testing/Internals.cpp: (WebCore::toAutoFillButtonType): (WebCore::toInternalsAutoFillButtonType): * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm: (toAutoFillButtonType): (toWKAutoFillButtonType): * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandlePrivate.h: * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: (toAutoFillButtonType): (toWKAutoFillButtonType): * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: LayoutTests: * accessibility/ios-simulator/strong-password-field-expected.txt: * accessibility/ios-simulator/strong-password-field.html: * fast/forms/auto-fill-button/auto-fill-strong-password-button-when-maxlength-changes-expected.html: * fast/forms/auto-fill-button/auto-fill-strong-password-button-when-maxlength-changes.html: * fast/forms/auto-fill-button/auto-fill-strong-password-button-when-minlength-changes-expected.html: * fast/forms/auto-fill-button/auto-fill-strong-password-button-when-minlength-changes.html: * fast/forms/auto-fill-button/hide-auto-fill-strong-password-button-when-form-is-reset-expected.html: * fast/forms/auto-fill-button/hide-auto-fill-strong-password-button-when-form-is-reset.html: * fast/forms/auto-fill-button/hide-auto-fill-strong-password-button-when-value-changes-expected.html: * fast/forms/auto-fill-button/hide-auto-fill-strong-password-button-when-value-changes.html: * fast/forms/auto-fill-button/hide-strong-password-when-field-type-changes-expected.html: * fast/forms/auto-fill-button/hide-strong-password-when-field-type-changes.html: * fast/forms/auto-fill-button/input-autofilled-disabled-strong-password-auto-fill-button-expected.html: Removed. * fast/forms/auto-fill-button/input-autofilled-disabled-strong-password-auto-fill-button.html: Removed. * fast/forms/auto-fill-button/input-autofilled-readonly-strong-password-auto-fill-button-expected.html: Removed. * fast/forms/auto-fill-button/input-autofilled-readonly-strong-password-auto-fill-button.html: Removed. * fast/forms/auto-fill-button/input-disabled-strong-password-and-strong-confirmation-password-auto-fill-buttons-expected.html: * fast/forms/auto-fill-button/input-disabled-strong-password-and-strong-confirmation-password-auto-fill-buttons.html: * fast/forms/auto-fill-button/input-readonly-strong-password-and-strong-confirmation-password-auto-fill-buttons-expected.html: * fast/forms/auto-fill-button/input-readonly-strong-password-and-strong-confirmation-password-auto-fill-buttons.html: * fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button.html: Removed. * fast/forms/auto-fill-button/last-auto-fill-button-type-expected.txt: * fast/forms/auto-fill-button/last-auto-fill-button-type.html: * platform/gtk/TestExpectations: * platform/gtk/fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button-expected.txt: Removed. * platform/ios/fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button-expected.txt: Removed. * platform/mac/fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button-expected.txt: Removed. * platform/win/TestExpectations: * platform/win/fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button-expected.txt: Removed. * platform/wincairo/fast/forms/auto-fill-button/input-strong-confirmation-password-auto-fill-button-expected.txt: Removed. Canonical link: https://commits.webkit.org/202649@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-07-06 16:29:40 +00:00
window.internals.setShowAutoFillButton(pw2, "StrongPassword");
}
if (window.accessibilityController) {
var axPw1 = accessibilityController.accessibleElementById("pw1");
var axPw2 = accessibilityController.accessibleElementById("pw2");
shouldBeFalse("axPw1.boolAttributeValue('AXIsStrongPasswordField')");
shouldBeTrue("axPw2.boolAttributeValue('AXIsStrongPasswordField')");
shouldBe("axPw1.stringValue", "'AXValue: ••••••••'");
shouldBe("axPw2.stringValue", "'AXValue: strong password'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>