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

Unified Diff: LayoutTests/fast/dom/Text/text-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/Text/text-constructor.html
diff --git a/LayoutTests/fast/dom/Text/text-constructor.html b/LayoutTests/fast/dom/Text/text-constructor.html
index 576f8da095691bc269b1be7876d84d36d76e7c99..4fb27c36d18aed90650a7a4bddb16377298c5248 100644
--- a/LayoutTests/fast/dom/Text/text-constructor.html
+++ b/LayoutTests/fast/dom/Text/text-constructor.html
@@ -7,6 +7,8 @@ description('This tests that Text is constructable.');
shouldBe('new Text("one").data', '"one"');
shouldBe('new Text().data', '""');
+shouldBe('new Text(undefined).data', '""');
+shouldBe('new Text(null).data', '"null"');
shouldBe('new Text("two").ownerDocument', 'document');
shouldBe('typeof new Text', '"object"');

Powered by Google App Engine
This is Rietveld 408576698