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

Unified Diff: LayoutTests/http/tests/credentialmanager/localcredential-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
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
index 38026638f32f69fef08fc2d5a8202213644c1c28..be5325dcb67a27e8c2f97405a2c08e52bb94a55e 100644
--- a/LayoutTests/http/tests/credentialmanager/localcredential-basics.html
+++ b/LayoutTests/http/tests/credentialmanager/localcredential-basics.html
@@ -19,4 +19,10 @@ test(function() {
assert_equals(credential.avatarURL, 'https://example.com/avatar.png');
assert_equals(credential.password, 'pencil');
}, 'Interfaces and attributes of LocalCredential');
+
+test(function() {
+ assert_throws(new SyntaxError(), function () {
+ var credential = new LocalCredential('id', 'name', '-', 'pencil');
+ });
+}, 'Construct a LocalCredential with an invalid avatar URL.');
</script>

Powered by Google App Engine
This is Rietveld 408576698