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

Side by Side Diff: third_party/WebKit/Source/core/dom/StaticRangeTest.cpp

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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
OLDNEW
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/ExceptionStatePlaceholder.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"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 EXPECT_EQ(0, range04->startOffset()); 69 EXPECT_EQ(0, range04->startOffset());
70 EXPECT_EQ(newText, range04->endContainer()); 70 EXPECT_EQ(newText, range04->endContainer());
71 EXPECT_EQ(2, range04->endOffset()); 71 EXPECT_EQ(2, range04->endOffset());
72 72
73 EXPECT_TRUE(range02->boundaryPointsValid()); 73 EXPECT_TRUE(range02->boundaryPointsValid());
74 EXPECT_EQ(oldText, range02->startContainer()); 74 EXPECT_EQ(oldText, range02->startContainer());
75 EXPECT_EQ(0, range02->startOffset()); 75 EXPECT_EQ(0, range02->startOffset());
76 EXPECT_EQ(oldText, range02->endContainer()); 76 EXPECT_EQ(oldText, range02->endContainer());
77 EXPECT_EQ(2, range02->endOffset()); 77 EXPECT_EQ(2, range02->endOffset());
78 78
79 // Our implementation always moves the boundary point at the separation point to the end of the original text node. 79 // Our implementation always moves the boundary point at the separation point
80 // to the end of the original text node.
80 EXPECT_TRUE(range22->boundaryPointsValid()); 81 EXPECT_TRUE(range22->boundaryPointsValid());
81 EXPECT_EQ(oldText, range22->startContainer()); 82 EXPECT_EQ(oldText, range22->startContainer());
82 EXPECT_EQ(2, range22->startOffset()); 83 EXPECT_EQ(2, range22->startOffset());
83 EXPECT_EQ(oldText, range22->endContainer()); 84 EXPECT_EQ(oldText, range22->endContainer());
84 EXPECT_EQ(2, range22->endOffset()); 85 EXPECT_EQ(2, range22->endOffset());
85 86
86 EXPECT_TRUE(range24->boundaryPointsValid()); 87 EXPECT_TRUE(range24->boundaryPointsValid());
87 EXPECT_EQ(oldText, range24->startContainer()); 88 EXPECT_EQ(oldText, range24->startContainer());
88 EXPECT_EQ(2, range24->startOffset()); 89 EXPECT_EQ(2, range24->startOffset());
89 EXPECT_EQ(newText, range24->endContainer()); 90 EXPECT_EQ(newText, range24->endContainer());
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 EXPECT_EQ(oldText, staticRange04->endContainer()); 240 EXPECT_EQ(oldText, staticRange04->endContainer());
240 EXPECT_EQ(4, staticRange04->endOffset()); 241 EXPECT_EQ(4, staticRange04->endOffset());
241 242
242 // Invalid StaticRange. 243 // Invalid StaticRange.
243 TrackExceptionState exceptionState; 244 TrackExceptionState exceptionState;
244 staticRange04->toRange(exceptionState); 245 staticRange04->toRange(exceptionState);
245 EXPECT_TRUE(exceptionState.hadException()); 246 EXPECT_TRUE(exceptionState.hadException());
246 } 247 }
247 248
248 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/SpaceSplitString.cpp ('k') | third_party/WebKit/Source/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698