@@ -208,12 +208,12 @@ describe('layout-gap directive', () => {
208
208
verifyCorrectMargin ( 'column' , 'margin-bottom' ) ;
209
209
} ) ;
210
210
211
- it ( 'should apply margin-right for row-reverse layouts' , ( ) => {
212
- verifyCorrectMargin ( 'row-reverse' , 'margin-right ' ) ;
211
+ it ( 'should apply margin-left for row-reverse layouts' , ( ) => {
212
+ verifyCorrectMargin ( 'row-reverse' , 'margin-left ' ) ;
213
213
} ) ;
214
214
215
- it ( 'should apply margin-bottom for column-reverse layouts' , ( ) => {
216
- verifyCorrectMargin ( 'column-reverse' , 'margin-bottom ' ) ;
215
+ it ( 'should apply margin-top for column-reverse layouts' , ( ) => {
216
+ verifyCorrectMargin ( 'column-reverse' , 'margin-top ' ) ;
217
217
} ) ;
218
218
219
219
it ( 'should remove obsolete margin and apply valid margin for layout changes' , ( ) => {
@@ -241,7 +241,7 @@ describe('layout-gap directive', () => {
241
241
nodes = queryFor ( fixture , 'span' ) ;
242
242
243
243
expectEl ( nodes [ 0 ] ) . not . toHaveStyle ( { 'margin-right' : '8px' } , styler ) ;
244
- expectEl ( nodes [ 0 ] ) . toHaveStyle ( { 'margin-bottom ' : '8px' } , styler ) ;
244
+ expectEl ( nodes [ 0 ] ) . toHaveStyle ( { 'margin-top ' : '8px' } , styler ) ;
245
245
246
246
247
247
// layout = row-reverse, use margin-right
@@ -250,7 +250,7 @@ describe('layout-gap directive', () => {
250
250
nodes = queryFor ( fixture , 'span' ) ;
251
251
252
252
expectEl ( nodes [ 0 ] ) . not . toHaveStyle ( { 'margin-bottom' : '8px' } , styler ) ;
253
- expectEl ( nodes [ 0 ] ) . toHaveStyle ( { 'margin-right ' : '8px' } , styler ) ;
253
+ expectEl ( nodes [ 0 ] ) . toHaveStyle ( { 'margin-left ' : '8px' } , styler ) ;
254
254
} ) ;
255
255
256
256
it ( 'should recognize hidden elements when applying gaps' , ( ) => {
0 commit comments