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

Unified Diff: LayoutTests/http/tests/credentialmanager/localcredential-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/localcredential-basics.html
diff --git a/LayoutTests/http/tests/credentialmanager/localcredential-basics.html b/LayoutTests/http/tests/credentialmanager/localcredential-basics.html
deleted file mode 100644
index e2dbe6871142755a4d2c5f1654c4f43573dadbd4..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/credentialmanager/localcredential-basics.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<title>Credential Manager: LocalCredential 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');
-
- verify_interface('LocalCredential', credential, {
- formData: 'object',
- id: 'string',
- name: 'string',
- avatarURL: 'string',
- password: 'string',
- type: 'string'
- });
-
- 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.password, 'pencil');
- assert_equals(credential.type, 'password');
-}, 'Interfaces and attributes of LocalCredential');
-
-test(function() {
- assert_throws(new SyntaxError(), function () {
- var credential = new LocalCredential('id', 'pencil', 'name', '-');
- });
-}, 'Construct a LocalCredential with an invalid avatar URL.');
-
-test(function() {
- var credential = new LocalCredential('id', 'pencil', 'name');
-
- assert_equals(credential.id, 'id');
- assert_equals(credential.name, 'name');
- assert_equals(credential.avatarURL, '');
- assert_equals(credential.password, 'pencil');
- assert_equals(credential.type, 'password');
-
-}, 'Construct a LocalCredential with an empty avatar URL.');
-
-test(function() {
- var credential = new LocalCredential('id', 'pencil');
-
- assert_equals(credential.id, 'id');
- assert_equals(credential.name, '');
- assert_equals(credential.avatarURL, '');
- assert_equals(credential.password, 'pencil');
- assert_equals(credential.type, 'password');
-
-}, 'Construct a LocalCredential with an empty name and avatar URL.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698