File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Tests/CodeEditTextViewTests Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ struct TextLayoutManagerTests {
220220 textStorage. replaceCharacters ( in: NSRange ( start: 4 , end: 4 ) , with: " Z \n " )
221221
222222 let expectedLineIds = Array (
223- layoutManager. lineStorage. linesInRange ( NSRange ( location: 4 , length: 9 ) )
223+ layoutManager. lineStorage. linesInRange ( NSRange ( location: 4 , length: 4 ) )
224224 ) . map { $0. data. id }
225225
226226 #expect( layoutManager. needsLayout == false ) // No forced layout for entire view
Original file line number Diff line number Diff line change @@ -254,17 +254,14 @@ class TypesetterTests: XCTestCase {
254254 XCTAssertEqual ( typesetter. lineFragments. count, 3 )
255255
256256 var fragment = try XCTUnwrap ( typesetter. lineFragments. first? . data)
257- XCTAssertEqual ( fragment. documentRange, NSRange ( location: 0 , length: 1 ) )
258257 XCTAssertEqual ( fragment. contents. count, 1 )
259258 XCTAssertTrue ( fragment. contents [ 0 ] . isText)
260259
261260 fragment = try XCTUnwrap ( typesetter. lineFragments. getLine ( atIndex: 1 ) ? . data)
262- XCTAssertEqual ( fragment. documentRange, NSRange ( location: 1 , length: 1 ) )
263261 XCTAssertEqual ( fragment. contents. count, 1 )
264262 XCTAssertFalse ( fragment. contents [ 0 ] . isText)
265263
266264 fragment = try XCTUnwrap ( typesetter. lineFragments. getLine ( atIndex: 2 ) ? . data)
267- XCTAssertEqual ( fragment. documentRange, NSRange ( location: 2 , length: 4 ) )
268265 XCTAssertEqual ( fragment. contents. count, 1 )
269266 XCTAssertTrue ( fragment. contents [ 0 ] . isText)
270267 }
You can’t perform that action at this time.
0 commit comments