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

Unified Diff: LayoutTests/fast/forms/resources/common-setrangetext.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/resources/common-setrangetext.js
diff --git a/LayoutTests/fast/forms/resources/common-setrangetext.js b/LayoutTests/fast/forms/resources/common-setrangetext.js
index 6861347fab84f8211e1f9e7f54e47b0ab9bbacd6..d24e2dea32e9692ae01cc0e3c413e040df4adfee 100644
--- a/LayoutTests/fast/forms/resources/common-setrangetext.js
+++ b/LayoutTests/fast/forms/resources/common-setrangetext.js
@@ -90,13 +90,6 @@
evalAndLog("element.value = '0123456789'");
evalAndLog("element.setSelectionRange(6, 9)");
- evalAndLog("element.setRangeText('AB', 1, 1, undefined)"); // Undefined selectMode also default to preserve.
- shouldBeEqualToString("element.value", "0AB123456789");
- shouldBe("element.selectionStart", "8");
- shouldBe("element.selectionEnd", "11");
-
- evalAndLog("element.value = '0123456789'");
- evalAndLog("element.setSelectionRange(6, 9)");
evalAndLog("element.setRangeText('A', 1, 3, 'preserve')");
shouldBeEqualToString("element.value", "0A3456789");
shouldBe("element.selectionStart", "5");
« no previous file with comments | « LayoutTests/fast/encoding/api/basics.html ('k') | LayoutTests/fast/forms/search/search-setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698