@@ -752,7 +752,10 @@ define(function (require, exports, module) {
752752 describe ( "Save As" , function ( ) {
753753 var filePath ,
754754 newFilename ,
755- newFilePath ;
755+ newFilePath ,
756+ selections = [ { start : { line : 0 , ch : 1 } , end : { line : 0 , ch : 3 } , primary : false , reversed : false } ,
757+ { start : { line : 0 , ch : 6 } , end : { line : 0 , ch : 6 } , primary : true , reversed : false } ,
758+ { start : { line : 0 , ch : 9 } , end : { line : 0 , ch : 12 } , primary : false , reversed : true } ] ;
756759
757760 beforeEach ( function ( ) {
758761 filePath = testPath + "/test.js" ;
@@ -768,8 +771,10 @@ define(function (require, exports, module) {
768771 } ) ;
769772
770773 runs ( function ( ) {
771- var currentDocument = DocumentManager . getCurrentDocument ( ) ;
774+ var currentDocument = DocumentManager . getCurrentDocument ( ) ,
775+ currentEditor = EditorManager . getActiveEditor ( ) ;
772776 expect ( currentDocument . file . fullPath ) . toEqual ( filePath ) ;
777+ currentEditor . setSelections ( selections ) ;
773778 } ) ;
774779
775780 runs ( function ( ) {
@@ -782,8 +787,10 @@ define(function (require, exports, module) {
782787 } ) ;
783788
784789 runs ( function ( ) {
785- var currentDocument = DocumentManager . getCurrentDocument ( ) ;
790+ var currentDocument = DocumentManager . getCurrentDocument ( ) ,
791+ currentEditor = EditorManager . getActiveEditor ( ) ;
786792 expect ( currentDocument . file . fullPath ) . toEqual ( newFilePath ) ;
793+ expect ( currentEditor . getSelections ( ) ) . toEqual ( selections ) ;
787794 } ) ;
788795
789796 runs ( function ( ) {
0 commit comments