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

Unified Diff: LayoutTests/fast/domurl/url-href.html

Issue 105823005: Remove TreatNullAs=NullString for URLUtils.href (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: force rebuild Created 7 years 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/fast/domurl/url-href.html
diff --git a/LayoutTests/fast/domurl/url-href.html b/LayoutTests/fast/domurl/url-href.html
index 984087b9f7fde95c33eec04962d27b25578fba02..f5056af6e89058f698b96c14b98895ddb91fe023 100644
--- a/LayoutTests/fast/domurl/url-href.html
+++ b/LayoutTests/fast/domurl/url-href.html
@@ -20,4 +20,10 @@ test(function() {
assert_equals(url.href, 'invalid');
}, 'setting href to an invalid URL');
+test(function() {
+ var url = new URL('http://domain.com/');
+ url.href = null;
+ assert_equals(url.href, 'null');
+}, 'setting href to null');
+
</script>
« no previous file with comments | « LayoutTests/fast/dom/element-attribute-js-null-expected.txt ('k') | LayoutTests/fast/domurl/url-href-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698