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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS2 Created 4 years, 10 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: third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
index 30eba952007870ef9e138dbc09726c6f63708467..9183351fde4ff633affba5838f1a83e979e5c57b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
+++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
@@ -26,7 +26,7 @@ test(function() {
assert_equals(credential.id, 'id');
assert_equals(credential.name, 'name');
assert_equals(credential.iconURL, 'https://example.test/icon.png');
- assert_equals(credential.provider, 'https://federation.test/');
+ assert_equals(credential.provider, 'https://federation.test');
assert_equals(credential.type, 'federated');
}, 'Interfaces and attributes of FederatedCredential');
@@ -40,7 +40,7 @@ test(function() {
assert_equals(credential.id, 'id');
assert_equals(credential.name, 'name');
assert_equals(credential.iconURL, '');
- assert_equals(credential.provider, 'https://federation.test/');
+ assert_equals(credential.provider, 'https://federation.test');
assert_equals(credential.type, 'federated');
}, 'Interfaces and attributes of FederatedCredential');
@@ -53,7 +53,20 @@ test(function() {
assert_equals(credential.id, 'id');
assert_equals(credential.name, '');
assert_equals(credential.iconURL, '');
- assert_equals(credential.provider, 'https://federation.test/');
+ assert_equals(credential.provider, 'https://federation.test');
+ assert_equals(credential.type, 'federated');
+}, 'Interfaces and attributes of FederatedCredential');
+
+test(function() {
+ var credential = new FederatedCredential({
+ 'id': 'id',
+ 'provider': 'https://federation.test',
+ });
+
+ assert_equals(credential.id, 'id');
+ assert_equals(credential.name, '');
+ assert_equals(credential.iconURL, '');
+ assert_equals(credential.provider, 'https://federation.test');
assert_equals(credential.type, 'federated');
}, 'Interfaces and attributes of FederatedCredential');

Powered by Google App Engine
This is Rietveld 408576698