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

Unified Diff: LayoutTests/fast/js/script-tests/custom-constructors.js

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/js/script-tests/custom-constructors.js
diff --git a/LayoutTests/fast/js/script-tests/custom-constructors.js b/LayoutTests/fast/js/script-tests/custom-constructors.js
index 78e0e3ab41f452b764c86124abdccd6664697820..fce2ff87e2408f8dc5416a339be0a174dd9e80e1 100644
--- a/LayoutTests/fast/js/script-tests/custom-constructors.js
+++ b/LayoutTests/fast/js/script-tests/custom-constructors.js
@@ -23,12 +23,12 @@ shouldBeEqualToString("new Option().tagName", "OPTION");
shouldBeEqualToString("new Option().innerText", "");
shouldBeEqualToString("new Option(null).innerText", "null");
-shouldBeEqualToString("new Option(undefined).innerText", "undefined");
+shouldBeEqualToString("new Option(undefined).innerText", "");
shouldBeEqualToString("new Option('somedata').innerText", "somedata");
shouldBeEqualToString("new Option().value", "");
shouldBeEqualToString("new Option('somedata', null).value", "null");
-shouldBeEqualToString("new Option('somedata', undefined).value", "undefined");
+shouldBeEqualToString("new Option('somedata', undefined).value", "somedata");
shouldBeEqualToString("new Option('somedata', 'somevalue').value", "somevalue");
shouldBeFalse("new Option().defaultSelected");
« no previous file with comments | « LayoutTests/fast/js/custom-constructors-expected.txt ('k') | LayoutTests/fast/workers/resources/shared-worker-name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698