| OLD | NEW |
| 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 s_blockWithContinuations[] = | 16 static const char s_blockWithContinuations[] = |
| 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 Loading... |
| 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 |
| OLD | NEW |