Index: LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html |
diff --git a/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html b/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html |
index 6b928ea49287c10d6b7713dc2555cebd58dd6bde..ca3b8a7d05ffeee2477678ef317a229637db802f 100644 |
--- a/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html |
+++ b/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html |
@@ -8,20 +8,18 @@ test(function() { |
var credential = new PasswordCredential('id', 'pencil', 'name', 'https://example.com/icon.png'); |
verify_interface('PasswordCredential', credential, { |
- formData: 'object', |
id: 'string', |
name: 'string', |
iconURL: 'string', |
- password: 'string', |
type: 'string' |
}); |
- assert_true(credential.formData instanceof FormData); |
assert_equals(credential.id, 'id'); |
assert_equals(credential.name, 'name'); |
assert_equals(credential.iconURL, 'https://example.com/icon.png'); |
- assert_equals(credential.password, 'pencil'); |
assert_equals(credential.type, 'password'); |
+ |
+ assert_true(credential.toFormData() instanceof FormData); |
}, 'Interfaces and attributes of PasswordCredential'); |
test(function() { |
@@ -36,8 +34,8 @@ test(function() { |
assert_equals(credential.id, 'id'); |
assert_equals(credential.name, 'name'); |
assert_equals(credential.iconURL, ''); |
- assert_equals(credential.password, 'pencil'); |
assert_equals(credential.type, 'password'); |
+ assert_true(credential.toFormData() instanceof FormData); |
}, 'Construct a PasswordCredential with an empty icon URL.'); |
@@ -47,8 +45,8 @@ test(function() { |
assert_equals(credential.id, 'id'); |
assert_equals(credential.name, ''); |
assert_equals(credential.iconURL, ''); |
- assert_equals(credential.password, 'pencil'); |
assert_equals(credential.type, 'password'); |
+ assert_true(credential.toFormData() instanceof FormData); |
}, 'Construct a PasswordCredential with an empty name and icon URL.'); |
</script> |