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

Unified Diff: LayoutTests/fast/dom/Comment/comment-constructor.html

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 5 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/fast/dom/Comment/comment-constructor.html
diff --git a/LayoutTests/fast/dom/Comment/comment-constructor.html b/LayoutTests/fast/dom/Comment/comment-constructor.html
index 80d0c3a04e785633e5ab90b3830acfd19950777e..a1013161746ee8e030e295cf6d5de52b3dd77565 100644
--- a/LayoutTests/fast/dom/Comment/comment-constructor.html
+++ b/LayoutTests/fast/dom/Comment/comment-constructor.html
@@ -7,6 +7,8 @@ description('This tests that Comment is constructable.');
shouldBe('new Comment("one").data', '"one"');
shouldBe('new Comment().data', '""');
+shouldBe('new Comment(undefined).data', '""');
+shouldBe('new Comment(null).data', '"null"');
shouldBe('new Comment("two").ownerDocument', 'document');
shouldBe('typeof new Comment', '"object"');

Powered by Google App Engine
This is Rietveld 408576698