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 "core/dom/Range.h" | 5 #include "core/dom/Range.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/Text.h" | 10 #include "core/dom/Text.h" |
11 #include "core/editing/EditingTestBase.h" | 11 #include "core/editing/EditingTestBase.h" |
12 #include "core/frame/Settings.h" | 12 #include "core/frame/Settings.h" |
13 #include "core/html/HTMLBodyElement.h" | 13 #include "core/html/HTMLBodyElement.h" |
14 #include "core/html/HTMLDocument.h" | 14 #include "core/html/HTMLDocument.h" |
15 #include "core/html/HTMLElement.h" | 15 #include "core/html/HTMLElement.h" |
16 #include "core/html/HTMLHtmlElement.h" | 16 #include "core/html/HTMLHtmlElement.h" |
17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 text->deleteData(0, 3, ASSERT_NO_EXCEPTION); | 219 text->deleteData(0, 3, ASSERT_NO_EXCEPTION); |
220 | 220 |
221 EXPECT_TRUE(range->boundaryPointsValid()); | 221 EXPECT_TRUE(range->boundaryPointsValid()); |
222 EXPECT_EQ(span2, range->startContainer()); | 222 EXPECT_EQ(span2, range->startContainer()); |
223 EXPECT_EQ(0, range->startOffset()); | 223 EXPECT_EQ(0, range->startOffset()); |
224 EXPECT_EQ(div, range->endContainer()); | 224 EXPECT_EQ(div, range->endContainer()); |
225 EXPECT_EQ(2, range->endOffset()); | 225 EXPECT_EQ(2, range->endOffset()); |
226 } | 226 } |
227 | 227 |
228 } // namespace blink | 228 } // namespace blink |
OLD | NEW |