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

Unified Diff: third_party/WebKit/Source/core/html/forms/OptionListTest.cpp

Issue 2508793002: Make exceptionState parameter of Document::createElement() to have default value (Closed)
Patch Set: 2016-11-16T15:26:06 Created 4 years, 1 month 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: third_party/WebKit/Source/core/html/forms/OptionListTest.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/OptionListTest.cpp b/third_party/WebKit/Source/core/html/forms/OptionListTest.cpp
index 7b90458ba2719f793b04140739333ccad665fe15..d36f4d0cba7c8e3b06b1cee11a914ff5a317db9a 100644
--- a/third_party/WebKit/Source/core/html/forms/OptionListTest.cpp
+++ b/third_party/WebKit/Source/core/html/forms/OptionListTest.cpp
@@ -43,8 +43,7 @@ TEST_F(OptionListTest, OptionOnly) {
select().setInnerHTML(
"text<input><option id=o1></option><input><option id=o2></option><input>",
ASSERT_NO_EXCEPTION);
- HTMLElement* div = toHTMLElement(
- select().document().createElement("div", ASSERT_NO_EXCEPTION));
+ HTMLElement* div = toHTMLElement(select().document().createElement("div"));
div->setInnerHTML("<option id=o3></option>", ASSERT_NO_EXCEPTION);
select().appendChild(div);
OptionList list = select().optionList();

Powered by Google App Engine
This is Rietveld 408576698