Index: third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
index 0e498f822e97c540102ad22f7ceb62a1fb7e1dfa..280772ad5a1e482fa852bbbd23fe65d0fbb6df38 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
@@ -174,8 +174,9 @@ TEST_F(HTMLSelectElementTest, FirstSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->firstSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o1", |
+ select->firstSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -184,8 +185,9 @@ TEST_F(HTMLSelectElementTest, FirstSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->firstSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o2", |
+ select->firstSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -194,8 +196,9 @@ TEST_F(HTMLSelectElementTest, FirstSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->firstSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o2", |
+ select->firstSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -204,8 +207,9 @@ TEST_F(HTMLSelectElementTest, FirstSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->firstSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o1", |
+ select->firstSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
} |
@@ -223,8 +227,9 @@ TEST_F(HTMLSelectElementTest, LastSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->lastSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o2", |
+ select->lastSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -233,8 +238,9 @@ TEST_F(HTMLSelectElementTest, LastSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->lastSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o1", |
+ select->lastSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -243,8 +249,9 @@ TEST_F(HTMLSelectElementTest, LastSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->lastSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o1", |
+ select->lastSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -253,8 +260,9 @@ TEST_F(HTMLSelectElementTest, LastSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->lastSelectableOption()->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ( |
+ "o2", |
+ select->lastSelectableOption()->fastGetAttribute(HTMLNames::idAttr)); |
} |
} |
@@ -272,8 +280,9 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->nextSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->nextSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -282,8 +291,9 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->nextSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->nextSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -292,8 +302,9 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->nextSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->nextSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -302,8 +313,9 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->nextSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->nextSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -313,11 +325,13 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
toHTMLSelectElement(document().body()->firstChild()); |
HTMLOptionElement* option = |
toHTMLOptionElement(document().getElementById("o1")); |
- EXPECT_EQ("o2", select->nextSelectableOption(option)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->nextSelectableOption(option)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
- EXPECT_EQ(nullptr, select->nextSelectableOption(toHTMLOptionElement( |
- document().getElementById("o2")))); |
+ EXPECT_EQ(nullptr, |
+ select->nextSelectableOption( |
+ toHTMLOptionElement(document().getElementById("o2")))); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -328,8 +342,9 @@ TEST_F(HTMLSelectElementTest, NextSelectableOption) { |
toHTMLSelectElement(document().body()->firstChild()); |
HTMLOptionElement* option = |
toHTMLOptionElement(document().getElementById("o1")); |
- EXPECT_EQ("o2", select->nextSelectableOption(option)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->nextSelectableOption(option)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
} |
@@ -347,8 +362,9 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->previousSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->previousSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -357,8 +373,9 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->previousSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->previousSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -367,8 +384,9 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o1", select->previousSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->previousSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -377,8 +395,9 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = |
toHTMLSelectElement(document().body()->firstChild()); |
- EXPECT_EQ("o2", select->previousSelectableOption(nullptr)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o2", |
+ select->previousSelectableOption(nullptr)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -388,11 +407,13 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
toHTMLSelectElement(document().body()->firstChild()); |
HTMLOptionElement* option = |
toHTMLOptionElement(document().getElementById("o2")); |
- EXPECT_EQ("o1", select->previousSelectableOption(option)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->previousSelectableOption(option)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
- EXPECT_EQ(nullptr, select->previousSelectableOption(toHTMLOptionElement( |
- document().getElementById("o1")))); |
+ EXPECT_EQ(nullptr, |
+ select->previousSelectableOption( |
+ toHTMLOptionElement(document().getElementById("o1")))); |
} |
{ |
document().documentElement()->setInnerHTML( |
@@ -403,8 +424,9 @@ TEST_F(HTMLSelectElementTest, PreviousSelectableOption) { |
toHTMLSelectElement(document().body()->firstChild()); |
HTMLOptionElement* option = |
toHTMLOptionElement(document().getElementById("o2")); |
- EXPECT_EQ("o1", select->previousSelectableOption(option)->fastGetAttribute( |
- HTMLNames::idAttr)); |
+ EXPECT_EQ("o1", |
+ select->previousSelectableOption(option)->fastGetAttribute( |
+ HTMLNames::idAttr)); |
} |
} |