| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |