Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html

Issue 1165673005: Credential Manager: Rename 'avatarURL' to 'iconURL'. (1/3 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove-local
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4821c95fc7a80d9486d8d3512adfe0de25cb61d8..6b928ea49287c10d6b7713dc2555cebd58dd6bde 100644
--- a/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
+++ b/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
@@ -5,13 +5,13 @@
<script src="/serviceworker/resources/interfaces.js"></script>
<script>
test(function() {
- var credential = new PasswordCredential('id', 'pencil', 'name', 'https://example.com/avatar.png');
+ var credential = new PasswordCredential('id', 'pencil', 'name', 'https://example.com/icon.png');
verify_interface('PasswordCredential', credential, {
formData: 'object',
id: 'string',
name: 'string',
- avatarURL: 'string',
+ iconURL: 'string',
password: 'string',
type: 'string'
});
@@ -19,7 +19,7 @@ test(function() {
assert_true(credential.formData instanceof FormData);
assert_equals(credential.id, 'id');
assert_equals(credential.name, 'name');
- assert_equals(credential.avatarURL, 'https://example.com/avatar.png');
+ assert_equals(credential.iconURL, 'https://example.com/icon.png');
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
}, 'Interfaces and attributes of PasswordCredential');
@@ -28,27 +28,27 @@ test(function() {
assert_throws(new SyntaxError(), function () {
var credential = new PasswordCredential('id', 'pencil', 'name', '-');
});
-}, 'Construct a PasswordCredential with an invalid avatar URL.');
+}, 'Construct a PasswordCredential with an invalid icon URL.');
test(function() {
var credential = new PasswordCredential('id', 'pencil', 'name');
assert_equals(credential.id, 'id');
assert_equals(credential.name, 'name');
- assert_equals(credential.avatarURL, '');
+ assert_equals(credential.iconURL, '');
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
-}, 'Construct a PasswordCredential with an empty avatar URL.');
+}, 'Construct a PasswordCredential with an empty icon URL.');
test(function() {
var credential = new PasswordCredential('id', 'pencil');
assert_equals(credential.id, 'id');
assert_equals(credential.name, '');
- assert_equals(credential.avatarURL, '');
+ assert_equals(credential.iconURL, '');
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
-}, 'Construct a PasswordCredential with an empty name and avatar URL.');
+}, 'Construct a PasswordCredential with an empty name and icon URL.');
</script>

Powered by Google App Engine
This is Rietveld 408576698