| Index: third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
|
| index 3114c5eeb76b0bda114ace6d845aec7ad58553e7..75c389927a20b09f4f38ffd0fb4067b6381dabab 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
|
| @@ -26,6 +26,7 @@ test(function() {
|
| assert_equals(credential.idName, 'username');
|
| assert_equals(credential.passwordName, 'password');
|
| assert_equals(credential.additionalData, null);
|
| + assert_equals(credential.password, 'pencil');
|
| }, 'Interfaces and attributes of PasswordCredential');
|
|
|
| test(function() {
|
| @@ -53,6 +54,7 @@ test(function() {
|
| assert_equals(credential.idName, 'username');
|
| assert_equals(credential.passwordName, 'password');
|
| assert_equals(credential.additionalData, null);
|
| + assert_equals(credential.password, 'pencil');
|
|
|
| }, 'Construct a PasswordCredential with an empty icon URL.');
|
|
|
| @@ -69,6 +71,7 @@ test(function() {
|
| assert_equals(credential.idName, 'username');
|
| assert_equals(credential.passwordName, 'password');
|
| assert_equals(credential.additionalData, null);
|
| + assert_equals(credential.password, 'pencil');
|
| }, 'Construct a PasswordCredential with an empty name and icon URL.');
|
|
|
| test(function() {
|
| @@ -86,6 +89,8 @@ test(function() {
|
| var additionalData = new FormData();
|
| credential.additionalData = additionalData;
|
| assert_equals(credential.additionalData, additionalData);
|
| +
|
| + assert_equals(credential.password, 'pencil');
|
| }, 'Verify the basics of "idName", "passwordName", and "additionalData"');
|
|
|
| test(function() {
|
| @@ -123,6 +128,8 @@ function verify_form_credential(f, credential) {
|
| assert_equals(credential.additionalData.get('theName'), 'friendly name');
|
| assert_equals(credential.additionalData.get('theExtraField'), 'extra');
|
|
|
| + assert_equals(credential.password, 'sekrit');
|
| +
|
| var password = f.querySelector('[name=thePassword]');
|
| password.value = "";
|
| assert_throws(new TypeError(), _ => new PasswordCredential(f));
|
|
|