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/dom/StaticRange.h" | 5 #include "core/dom/StaticRange.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "core/dom/NodeList.h" | 9 #include "core/dom/NodeList.h" |
10 #include "core/dom/Range.h" | 10 #include "core/dom/Range.h" |
11 #include "core/dom/Text.h" | 11 #include "core/dom/Text.h" |
12 #include "core/html/HTMLBodyElement.h" | 12 #include "core/html/HTMLBodyElement.h" |
13 #include "core/html/HTMLDocument.h" | 13 #include "core/html/HTMLDocument.h" |
14 #include "core/html/HTMLElement.h" | 14 #include "core/html/HTMLElement.h" |
15 #include "core/html/HTMLHtmlElement.h" | 15 #include "core/html/HTMLHtmlElement.h" |
16 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 EXPECT_EQ(oldText, staticRange04->endContainer()); | 239 EXPECT_EQ(oldText, staticRange04->endContainer()); |
240 EXPECT_EQ(4, staticRange04->endOffset()); | 240 EXPECT_EQ(4, staticRange04->endOffset()); |
241 | 241 |
242 // Invalid StaticRange. | 242 // Invalid StaticRange. |
243 DummyExceptionStateForTesting exceptionState; | 243 DummyExceptionStateForTesting exceptionState; |
244 staticRange04->toRange(exceptionState); | 244 staticRange04->toRange(exceptionState); |
245 EXPECT_TRUE(exceptionState.hadException()); | 245 EXPECT_TRUE(exceptionState.hadException()); |
246 } | 246 } |
247 | 247 |
248 } // namespace blink | 248 } // namespace blink |
OLD | NEW |