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

Unified Diff: third_party/WebKit/Source/core/html/HTMLOutputElementTest.cpp

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years 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/HTMLOutputElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOutputElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLOutputElementTest.cpp
index b967def75eb4159beafa59cf53e9cc5f6b292469..8233bfa0c762d3cd059b2ac3d6a0787424842307 100644
--- a/third_party/WebKit/Source/core/html/HTMLOutputElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOutputElementTest.cpp
@@ -14,8 +14,7 @@ namespace blink {
TEST(HTMLLinkElementSizesAttributeTest,
setHTMLForProperty_updatesForAttribute) {
Document* document = Document::create();
- HTMLOutputElement* element =
- HTMLOutputElement::create(*document, /* form: */ nullptr);
+ HTMLOutputElement* element = HTMLOutputElement::create(*document);
EXPECT_EQ(nullAtom, element->getAttribute(HTMLNames::forAttr));
element->htmlFor()->setValue(" strawberry ");
EXPECT_EQ(" strawberry ", element->getAttribute(HTMLNames::forAttr));
@@ -23,7 +22,7 @@ TEST(HTMLLinkElementSizesAttributeTest,
TEST(HTMLOutputElementTest, setForAttribute_updatesHTMLForPropertyValue) {
Document* document = Document::create();
- HTMLOutputElement* element = HTMLOutputElement::create(*document, nullptr);
+ HTMLOutputElement* element = HTMLOutputElement::create(*document);
DOMTokenList* forTokens = element->htmlFor();
EXPECT_EQ(nullAtom, forTokens->value());
element->setAttribute(HTMLNames::forAttr, "orange grape");
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLOutputElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698