@@ -13,7 +13,7 @@ var expectations = [
1313 xml : '<sheetView workbookViewId="0">' +
1414 '<selection activeCell="G4" sqref="G4"/>' +
1515 '</sheetView>' ,
16- parsedModel : { workbookViewId : 0 , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
16+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
1717 tests : [ 'render' , 'renderIn' , 'parse' ]
1818 } ,
1919 {
@@ -23,7 +23,7 @@ var expectations = [
2323 xml : '<sheetView workbookViewId="0" zoomScale="60" zoomScaleNormal="80">' +
2424 '<selection activeCell="G4" sqref="G4"/>' +
2525 '</sheetView>' ,
26- parsedModel : { workbookViewId : 0 , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 60 , zoomScaleNormal : 80 } ,
26+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 60 , zoomScaleNormal : 80 } ,
2727 tests : [ 'render' , 'renderIn' , 'parse' ]
2828 } ,
2929 {
@@ -33,7 +33,7 @@ var expectations = [
3333 xml : '<sheetView workbookViewId="0" showRuler="0" showGridLines="0" showRowColHeaders="0">' +
3434 '<selection activeCell="G4" sqref="G4"/>' +
3535 '</sheetView>' ,
36- parsedModel : { workbookViewId : 0 , state : 'normal' , activeCell : 'G4' , showRuler : false , showGridLines : false , showRowColHeaders : false , zoomScale : 100 , zoomScaleNormal : 100 } ,
36+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'normal' , activeCell : 'G4' , showRuler : false , showGridLines : false , showRowColHeaders : false , zoomScale : 100 , zoomScaleNormal : 100 } ,
3737 tests : [ 'render' , 'renderIn' , 'parse' ]
3838 } ,
3939 {
@@ -43,7 +43,7 @@ var expectations = [
4343 xml : '<sheetView workbookViewId="0" view="pageBreakPreview">' +
4444 '<selection activeCell="G4" sqref="G4"/>' +
4545 '</sheetView>' ,
46- parsedModel : { workbookViewId : 0 , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 , style : 'pageBreakPreview' } ,
46+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 , style : 'pageBreakPreview' } ,
4747 tests : [ 'render' , 'renderIn' , 'parse' ]
4848 } ,
4949 {
@@ -54,7 +54,7 @@ var expectations = [
5454 '<pane xSplit="1234" ySplit="3456" topLeftCell="C3" activePane="bottomRight"/>' +
5555 '<selection pane="bottomRight" activeCell="B1" sqref="B1"/>' +
5656 '</sheetView>' ,
57- parsedModel : { workbookViewId : 0 , state : 'split' , xSplit : 1234 , ySplit : 3456 , topLeftCell : 'C3' , activeCell : 'B1' , activePane : 'bottomRight' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
57+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'split' , xSplit : 1234 , ySplit : 3456 , topLeftCell : 'C3' , activeCell : 'B1' , activePane : 'bottomRight' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
5858 tests : [ 'render' , 'renderIn' , 'parse' ]
5959 } ,
6060 {
@@ -65,7 +65,7 @@ var expectations = [
6565 '<pane xSplit="1234" ySplit="3456" topLeftCell="C3"/>' +
6666 '<selection activeCell="A1" sqref="A1"/>' +
6767 '</sheetView>' ,
68- parsedModel : { workbookViewId : 0 , state : 'split' , xSplit : 1234 , ySplit : 3456 , topLeftCell : 'C3' , activeCell : 'A1' , activePane : 'topLeft' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
68+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'split' , xSplit : 1234 , ySplit : 3456 , topLeftCell : 'C3' , activeCell : 'A1' , activePane : 'topLeft' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
6969 tests : [ 'render' , 'renderIn' , 'parse' ]
7070 } ,
7171 {
@@ -76,7 +76,7 @@ var expectations = [
7676 '<pane xSplit="2" ySplit="3" topLeftCell="C4" activePane="bottomRight" state="frozen"/>' +
7777 '<selection pane="bottomRight" activeCell="D5" sqref="D5"/>' +
7878 '</sheetView>' ,
79- parsedModel : { workbookViewId : 0 , state : 'frozen' , xSplit : 2 , ySplit : 3 , topLeftCell : 'C4' , activeCell : 'D5' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
79+ parsedModel : { workbookViewId : 0 , rightToLeft : false , state : 'frozen' , xSplit : 2 , ySplit : 3 , topLeftCell : 'C4' , activeCell : 'D5' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
8080 tests : [ 'render' , 'renderIn' , 'parse' ]
8181 } ,
8282 {
@@ -96,10 +96,18 @@ var expectations = [
9696 '</sheetView>' +
9797 '</sheetViews>' ,
9898 parsedModel : [
99- { workbookViewId : 0 , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
100- { workbookViewId : 1 , state : 'frozen' , xSplit : 2 , ySplit : 3 , topLeftCell : 'C4' , activeCell : 'D5' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 }
99+ { workbookViewId : 0 , rightToLeft : false , state : 'normal' , activeCell : 'G4' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
100+ { workbookViewId : 1 , rightToLeft : false , state : 'frozen' , xSplit : 2 , ySplit : 3 , topLeftCell : 'C4' , activeCell : 'D5' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 }
101101 ] ,
102102 tests : [ 'render' , 'renderIn' , 'parse' ]
103+ } ,
104+ {
105+ title : 'Right To Left' ,
106+ create : ( ) => new SheetViewXform ( ) ,
107+ preparedModel : { rightToLeft : true } ,
108+ xml : '<sheetView workbookViewId="0" rightToLeft="1"></sheetView>' ,
109+ parsedModel : { workbookViewId : 0 , rightToLeft : true , state : 'normal' , showRuler : true , showGridLines : true , showRowColHeaders : true , zoomScale : 100 , zoomScaleNormal : 100 } ,
110+ tests : [ 'render' , 'renderIn' , 'parse' ]
103111 }
104112] ;
105113
0 commit comments