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

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

Issue 1162443006: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-type
Patch Set: Test. 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/localcredential-basics.html b/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
similarity index 65%
rename from LayoutTests/http/tests/credentialmanager/localcredential-basics.html
rename to LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
index e2dbe6871142755a4d2c5f1654c4f43573dadbd4..4821c95fc7a80d9486d8d3512adfe0de25cb61d8 100644
--- a/LayoutTests/http/tests/credentialmanager/localcredential-basics.html
+++ b/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html
@@ -1,13 +1,13 @@
<!DOCTYPE html>
-<title>Credential Manager: LocalCredential basics.</title>
+<title>Credential Manager: PasswordCredential basics.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="/serviceworker/resources/interfaces.js"></script>
<script>
test(function() {
- var credential = new LocalCredential('id', 'pencil', 'name', 'https://example.com/avatar.png');
+ var credential = new PasswordCredential('id', 'pencil', 'name', 'https://example.com/avatar.png');
- verify_interface('LocalCredential', credential, {
+ verify_interface('PasswordCredential', credential, {
formData: 'object',
id: 'string',
name: 'string',
@@ -22,16 +22,16 @@ test(function() {
assert_equals(credential.avatarURL, 'https://example.com/avatar.png');
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
-}, 'Interfaces and attributes of LocalCredential');
+}, 'Interfaces and attributes of PasswordCredential');
test(function() {
assert_throws(new SyntaxError(), function () {
- var credential = new LocalCredential('id', 'pencil', 'name', '-');
+ var credential = new PasswordCredential('id', 'pencil', 'name', '-');
});
-}, 'Construct a LocalCredential with an invalid avatar URL.');
+}, 'Construct a PasswordCredential with an invalid avatar URL.');
test(function() {
- var credential = new LocalCredential('id', 'pencil', 'name');
+ var credential = new PasswordCredential('id', 'pencil', 'name');
assert_equals(credential.id, 'id');
assert_equals(credential.name, 'name');
@@ -39,10 +39,10 @@ test(function() {
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
-}, 'Construct a LocalCredential with an empty avatar URL.');
+}, 'Construct a PasswordCredential with an empty avatar URL.');
test(function() {
- var credential = new LocalCredential('id', 'pencil');
+ var credential = new PasswordCredential('id', 'pencil');
assert_equals(credential.id, 'id');
assert_equals(credential.name, '');
@@ -50,5 +50,5 @@ test(function() {
assert_equals(credential.password, 'pencil');
assert_equals(credential.type, 'password');
-}, 'Construct a LocalCredential with an empty name and avatar URL.');
+}, 'Construct a PasswordCredential with an empty name and avatar URL.');
</script>

Powered by Google App Engine
This is Rietveld 408576698