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 "config.h" | 5 #include "config.h" |
6 #include "core/dom/Range.h" | 6 #include "core/dom/Range.h" |
7 | 7 |
8 #include "bindings/v8/ExceptionStatePlaceholder.h" | 8 #include "bindings/v8/ExceptionStatePlaceholder.h" |
9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
| 10 #include "core/dom/NodeList.h" |
10 #include "core/dom/Text.h" | 11 #include "core/dom/Text.h" |
11 #include "core/html/HTMLBodyElement.h" | 12 #include "core/html/HTMLBodyElement.h" |
12 #include "core/html/HTMLDocument.h" | 13 #include "core/html/HTMLDocument.h" |
13 #include "core/html/HTMLElement.h" | 14 #include "core/html/HTMLElement.h" |
14 #include "core/html/HTMLHtmlElement.h" | 15 #include "core/html/HTMLHtmlElement.h" |
15 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
16 #include "wtf/Compiler.h" | 17 #include "wtf/Compiler.h" |
17 #include "wtf/RefPtr.h" | 18 #include "wtf/RefPtr.h" |
18 #include "wtf/text/AtomicString.h" | 19 #include "wtf/text/AtomicString.h" |
19 #include <gtest/gtest.h> | 20 #include <gtest/gtest.h> |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 EXPECT_EQ(1, rangeInnerRight->endOffset()); | 135 EXPECT_EQ(1, rangeInnerRight->endOffset()); |
135 | 136 |
136 EXPECT_TRUE(rangeFromTextToMiddleOfElement->boundaryPointsValid()); | 137 EXPECT_TRUE(rangeFromTextToMiddleOfElement->boundaryPointsValid()); |
137 EXPECT_EQ(newText, rangeFromTextToMiddleOfElement->startContainer()); | 138 EXPECT_EQ(newText, rangeFromTextToMiddleOfElement->startContainer()); |
138 EXPECT_EQ(3, rangeFromTextToMiddleOfElement->startOffset()); | 139 EXPECT_EQ(3, rangeFromTextToMiddleOfElement->startOffset()); |
139 EXPECT_EQ(outer, rangeFromTextToMiddleOfElement->endContainer()); | 140 EXPECT_EQ(outer, rangeFromTextToMiddleOfElement->endContainer()); |
140 EXPECT_EQ(4, rangeFromTextToMiddleOfElement->endOffset()); | 141 EXPECT_EQ(4, rangeFromTextToMiddleOfElement->endOffset()); |
141 } | 142 } |
142 | 143 |
143 } | 144 } |
OLD | NEW |