@@ -496,8 +496,8 @@ describe "TextBuffer", ->
496496 buffer .addMarkerLayer (maintainHistory : true )
497497 ]
498498
499- describe " selectionsMarkerLayer is not passed" , ->
500- it " take snapshot of all markerLayers" , ->
499+ describe " when selectionsMarkerLayer is not passed" , ->
500+ it " takes a snapshot of all markerLayers" , ->
501501 snapshot = buffer .createMarkerSnapshot ()
502502 markerLayerIdsInSnapshot = Object .keys (snapshot)
503503 expect (markerLayerIdsInSnapshot .length ).toBe (4 )
@@ -506,8 +506,8 @@ describe "TextBuffer", ->
506506 expect (markerLayers[2 ].id in markerLayerIdsInSnapshot).toBe (true )
507507 expect (markerLayers[3 ].id in markerLayerIdsInSnapshot).toBe (true )
508508
509- describe " selectionsMarkerLayer is passed" , ->
510- it " skip snapshotting of other 'selection' role marker layers" , ->
509+ describe " when selectionsMarkerLayer is passed" , ->
510+ it " skips snapshotting of other 'selection' role marker layers" , ->
511511 snapshot = buffer .createMarkerSnapshot (markerLayers[0 ])
512512 markerLayerIdsInSnapshot = Object .keys (snapshot)
513513 expect (markerLayerIdsInSnapshot .length ).toBe (3 )
@@ -561,7 +561,7 @@ describe "TextBuffer", ->
561561 marker1 = markerLayers[1 ].markRange (rangesBefore[1 ])
562562 marker2 = markerLayers[2 ].markRange (rangesBefore[2 ])
563563
564- it " restore snapshot from other selections marker layers on undo/redo" , ->
564+ it " restores a snapshot from other selections marker layers on undo/redo" , ->
565565 # Snapshot is taken for markerLayers[0] only, markerLayer[1] and markerLayer[2] are skipped
566566 buffer .transact {selectionsMarkerLayer : markerLayers[0 ]}, ->
567567 buffer .append (" 44444444\n " )
@@ -624,7 +624,7 @@ describe "TextBuffer", ->
624624 expect (marker1 .isDestroyed ()).toBe (true )
625625 expect (marker2 .isDestroyed ()).toBe (true )
626626
627- it " can restore snapshot taken at destroyed selections marker layer to given selectionsMarkerLayer" , ->
627+ it " can restore a snapshot taken at a destroyed selections marker layer given selectionsMarkerLayer" , ->
628628 buffer .transact {selectionsMarkerLayer : markerLayers[1 ]}, ->
629629 buffer .append (" 44444444\n " )
630630 marker0 .setRange (rangesAfter[0 ])
@@ -668,7 +668,7 @@ describe "TextBuffer", ->
668668 expect (buffer .getText ()).toBe (textRedo)
669669 ensureMarkerLayer (markerLayers[3 ], rangesAfter[1 ])
670670
671- it " fallback to normal behavior when snaphot includes multipe layerSnapshot of selections marker layer " , ->
671+ it " falls back to normal behavior when the snaphot includes multiple layerSnapshots of selections marker layers " , ->
672672 # Transact without selectionsMarkerLayer.
673673 # Taken snapshot includes layerSnapshot of markerLayer[0], markerLayer[1] and markerLayer[2]
674674 buffer .transact ->
@@ -698,7 +698,7 @@ describe "TextBuffer", ->
698698 expect (getFirstMarker (markerLayers[2 ])).toBe (marker2)
699699
700700 describe " selections marker layer's selective snapshotting on createCheckpoint, groupChangesSinceCheckpoint" , ->
701- it " skip snapshotting of other marker layers with the same role of selectionsMarkerLayer" , ->
701+ it " skips snapshotting of other marker layers with the same role as the selectionsMarkerLayer" , ->
702702 eventHandler = jasmine .createSpy (' eventHandler' )
703703
704704 args = []
0 commit comments