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

Side by Side Diff: third_party/WebKit/Source/web/WebElementTest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "public/web/WebElement.h" 5 #include "public/web/WebElement.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
9 #include "core/dom/shadow/ShadowRoot.h" 10 #include "core/dom/shadow/ShadowRoot.h"
10 #include "core/testing/DummyPageHolder.h" 11 #include "core/testing/DummyPageHolder.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 static const char kBlockWithContinuations[] = 16 static const char kBlockWithContinuations[] =
17 "<head> <style> form {display: inline;} </style> </head>" 17 "<head> <style> form {display: inline;} </style> </head>"
18 "<body>" 18 "<body>"
19 " <form>" 19 " <form>"
20 " <div id='testElement'>" 20 " <div id='testElement'>"
21 " <input type='password' id='password'/>" 21 " <input type='password' id='password'/>"
22 " </div>" 22 " </div>"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 EXPECT_FALSE(TestElement().IsEditable()); 146 EXPECT_FALSE(TestElement().IsEditable());
147 147
148 InsertHTML("<input id=testElement disabled>"); 148 InsertHTML("<input id=testElement disabled>");
149 EXPECT_FALSE(TestElement().IsEditable()); 149 EXPECT_FALSE(TestElement().IsEditable());
150 150
151 InsertHTML("<fieldset disabled><div><input id=testElement></div></fieldset>"); 151 InsertHTML("<fieldset disabled><div><input id=testElement></div></fieldset>");
152 EXPECT_FALSE(TestElement().IsEditable()); 152 EXPECT_FALSE(TestElement().IsEditable());
153 } 153 }
154 154
155 } // namespace blink 155 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698