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

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

Issue 464783003: Credential manager: Convert strings to URLs early. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/credentialmanager/localcredential-basics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
diff --git a/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html b/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
index 1814a4622266079cd62f195374a2d2345494332d..63ad3b6d6fcde6f7b1923527eecf6d17ed420abc 100644
--- a/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
+++ b/LayoutTests/http/tests/credentialmanager/federatedcredential-basics.html
@@ -22,4 +22,16 @@ test(function() {
assert_equals(credential.avatarURL, 'https://example.com/avatar.png');
assert_equals(credential.federation, 'https://federation.net/');
}, 'Interfaces and attributes of FederatedCredential');
+
+test(function() {
+ assert_throws(new SyntaxError(), function () {
+ var credential = new FederatedCredential('id', 'name', '-', 'https://federation.net/');
+ });
+}, 'Construct a FederatedCredential with an invalid avatar URL.');
+
+test(function() {
+ assert_throws(new SyntaxError(), function () {
+ var credential = new FederatedCredential('id', 'name', 'https://example.com/avatar.png', '-');
+ });
+}, 'Construct a FederatedCredential with an invalid federation URL.');
</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/credentialmanager/localcredential-basics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698