Chromium Code Reviews

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

Issue 382833003: Revert of IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 fce2ff87e2408f8dc5416a339be0a174dd9e80e1..78e0e3ab41f452b764c86124abdccd6664697820 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().innerText", "");
shouldBeEqualToString("new Option(null).innerText", "null");
-shouldBeEqualToString("new Option(undefined).innerText", "");
+shouldBeEqualToString("new Option(undefined).innerText", "undefined");
shouldBeEqualToString("new Option('somedata').innerText", "somedata");
shouldBeEqualToString("new Option().value", "");
shouldBeEqualToString("new Option('somedata', null).value", "null");
-shouldBeEqualToString("new Option('somedata', undefined).value", "somedata");
+shouldBeEqualToString("new Option('somedata', undefined).value", "undefined");
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