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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/html/forms/OptionList.h" 5 #include "core/html/forms/OptionList.h"
6 6
7 #include "core/html/HTMLDocument.h" 7 #include "core/html/HTMLDocument.h"
8 #include "core/html/HTMLOptionElement.h" 8 #include "core/html/HTMLOptionElement.h"
9 #include "core/html/HTMLSelectElement.h" 9 #include "core/html/HTMLSelectElement.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 ToHTMLElement(Select().firstChild()) 80 ToHTMLElement(Select().firstChild())
81 ->setInnerHTML( 81 ->setInnerHTML(
82 "<optgroup><option id=gg11></option></optgroup>" 82 "<optgroup><option id=gg11></option></optgroup>"
83 "<option id=g11></option>"); 83 "<option id=g11></option>");
84 list = Select().GetOptionList(); 84 list = Select().GetOptionList();
85 iter = list.begin(); 85 iter = list.begin();
86 EXPECT_EQ("g11", Id(*iter)) << "Nested OPTGROUP should be ignored."; 86 EXPECT_EQ("g11", Id(*iter)) << "Nested OPTGROUP should be ignored.";
87 } 87 }
88 88
89 } // naemespace blink 89 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698