@@ -521,8 +521,8 @@ suite('Workbench editor groups', () => {
521521
522522 const mru = group . getEditors ( true ) ;
523523 assert . equal ( mru [ 0 ] , input1 ) ;
524- assert . equal ( mru [ 1 ] , input2 ) ;
525- assert . equal ( mru [ 2 ] , input3 ) ;
524+ assert . equal ( mru [ 1 ] , input3 ) ;
525+ assert . equal ( mru [ 2 ] , input2 ) ;
526526 } ) ;
527527
528528 test ( 'Multiple Editors - Preview gets overwritten' , function ( ) {
@@ -1115,12 +1115,12 @@ suite('Workbench editor groups', () => {
11151115 assert . equal ( group2 . previewEditor ! . matches ( g2_input2 ) , true ) ;
11161116
11171117 assert . equal ( group1 . getEditors ( true ) [ 0 ] . matches ( g1_input2 ) , true ) ;
1118- assert . equal ( group1 . getEditors ( true ) [ 1 ] . matches ( g1_input1 ) , true ) ;
1119- assert . equal ( group1 . getEditors ( true ) [ 2 ] . matches ( g1_input3 ) , true ) ;
1118+ assert . equal ( group1 . getEditors ( true ) [ 1 ] . matches ( g1_input3 ) , true ) ;
1119+ assert . equal ( group1 . getEditors ( true ) [ 2 ] . matches ( g1_input1 ) , true ) ;
11201120
11211121 assert . equal ( group2 . getEditors ( true ) [ 0 ] . matches ( g2_input1 ) , true ) ;
1122- assert . equal ( group2 . getEditors ( true ) [ 1 ] . matches ( g2_input2 ) , true ) ;
1123- assert . equal ( group2 . getEditors ( true ) [ 2 ] . matches ( g2_input3 ) , true ) ;
1122+ assert . equal ( group2 . getEditors ( true ) [ 1 ] . matches ( g2_input3 ) , true ) ;
1123+ assert . equal ( group2 . getEditors ( true ) [ 2 ] . matches ( g2_input2 ) , true ) ;
11241124
11251125 // Create model again - should load from storage
11261126 group1 = inst . createInstance ( EditorGroup , group1 . serialize ( ) ) ;
@@ -1134,12 +1134,12 @@ suite('Workbench editor groups', () => {
11341134 assert . equal ( group2 . previewEditor ! . matches ( g2_input2 ) , true ) ;
11351135
11361136 assert . equal ( group1 . getEditors ( true ) [ 0 ] . matches ( g1_input2 ) , true ) ;
1137- assert . equal ( group1 . getEditors ( true ) [ 1 ] . matches ( g1_input1 ) , true ) ;
1138- assert . equal ( group1 . getEditors ( true ) [ 2 ] . matches ( g1_input3 ) , true ) ;
1137+ assert . equal ( group1 . getEditors ( true ) [ 1 ] . matches ( g1_input3 ) , true ) ;
1138+ assert . equal ( group1 . getEditors ( true ) [ 2 ] . matches ( g1_input1 ) , true ) ;
11391139
11401140 assert . equal ( group2 . getEditors ( true ) [ 0 ] . matches ( g2_input1 ) , true ) ;
1141- assert . equal ( group2 . getEditors ( true ) [ 1 ] . matches ( g2_input2 ) , true ) ;
1142- assert . equal ( group2 . getEditors ( true ) [ 2 ] . matches ( g2_input3 ) , true ) ;
1141+ assert . equal ( group2 . getEditors ( true ) [ 1 ] . matches ( g2_input3 ) , true ) ;
1142+ assert . equal ( group2 . getEditors ( true ) [ 2 ] . matches ( g2_input2 ) , true ) ;
11431143 } ) ;
11441144
11451145 test ( 'Single group, multiple editors - persist (some not persistable)' , function ( ) {
@@ -1172,18 +1172,18 @@ suite('Workbench editor groups', () => {
11721172 assert . equal ( group . previewEditor ! . matches ( nonSerializableInput2 ) , true ) ;
11731173
11741174 assert . equal ( group . getEditors ( true ) [ 0 ] . matches ( nonSerializableInput2 ) , true ) ;
1175- assert . equal ( group . getEditors ( true ) [ 1 ] . matches ( serializableInput1 ) , true ) ;
1176- assert . equal ( group . getEditors ( true ) [ 2 ] . matches ( serializableInput2 ) , true ) ;
1175+ assert . equal ( group . getEditors ( true ) [ 1 ] . matches ( serializableInput2 ) , true ) ;
1176+ assert . equal ( group . getEditors ( true ) [ 2 ] . matches ( serializableInput1 ) , true ) ;
11771177
11781178 // Create model again - should load from storage
11791179 group = inst . createInstance ( EditorGroup , group . serialize ( ) ) ;
11801180
11811181 assert . equal ( group . count , 2 ) ;
1182- assert . equal ( group . activeEditor ! . matches ( serializableInput1 ) , true ) ;
1182+ assert . equal ( group . activeEditor ! . matches ( serializableInput2 ) , true ) ;
11831183 assert . equal ( group . previewEditor , null ) ;
11841184
1185- assert . equal ( group . getEditors ( true ) [ 0 ] . matches ( serializableInput1 ) , true ) ;
1186- assert . equal ( group . getEditors ( true ) [ 1 ] . matches ( serializableInput2 ) , true ) ;
1185+ assert . equal ( group . getEditors ( true ) [ 0 ] . matches ( serializableInput2 ) , true ) ;
1186+ assert . equal ( group . getEditors ( true ) [ 1 ] . matches ( serializableInput1 ) , true ) ;
11871187 } ) ;
11881188
11891189 test ( 'Multiple groups, multiple editors - persist (some not persistable, causes empty group)' , function ( ) {
0 commit comments