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

Side by Side Diff: Source/core/dom/RangeTest.cpp

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ParentNode.h ('k') | Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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 }
OLDNEW
« no previous file with comments | « Source/core/dom/ParentNode.h ('k') | Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698