@@ -31,9 +31,9 @@ describe('Space', () => {
31
31
items . forEach ( ( item , i ) => {
32
32
const element = item . nativeElement as HTMLElement ;
33
33
if ( i < items . length - 1 ) {
34
- expect ( element . style . marginRight ) . toBe ( '8px' ) ;
34
+ expect ( element . style . marginInlineEnd ) . toBe ( '8px' ) ;
35
35
} else {
36
- expect ( element . style . marginRight ) . toBe ( '' ) ;
36
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
37
37
}
38
38
} ) ;
39
39
@@ -45,9 +45,9 @@ describe('Space', () => {
45
45
items . forEach ( ( item , i ) => {
46
46
const element = item . nativeElement as HTMLElement ;
47
47
if ( i < items . length - 1 ) {
48
- expect ( element . style . marginRight ) . toBe ( '8px' ) ;
48
+ expect ( element . style . marginInlineEnd ) . toBe ( '8px' ) ;
49
49
} else {
50
- expect ( element . style . marginRight ) . toBe ( '' ) ;
50
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
51
51
}
52
52
} ) ;
53
53
} ) ;
@@ -57,9 +57,9 @@ describe('Space', () => {
57
57
items . forEach ( ( item , i ) => {
58
58
const element = item . nativeElement as HTMLElement ;
59
59
if ( i < items . length - 1 ) {
60
- expect ( element . style . marginRight ) . toBe ( '8px' ) ;
60
+ expect ( element . style . marginInlineEnd ) . toBe ( '8px' ) ;
61
61
} else {
62
- expect ( element . style . marginRight ) . toBe ( '' ) ;
62
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
63
63
}
64
64
} ) ;
65
65
@@ -69,9 +69,9 @@ describe('Space', () => {
69
69
items . forEach ( ( item , i ) => {
70
70
const element = item . nativeElement as HTMLElement ;
71
71
if ( i < items . length - 1 ) {
72
- expect ( element . style . marginRight ) . toBe ( '16px' ) ;
72
+ expect ( element . style . marginInlineEnd ) . toBe ( '16px' ) ;
73
73
} else {
74
- expect ( element . style . marginRight ) . toBe ( '' ) ;
74
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
75
75
}
76
76
} ) ;
77
77
@@ -81,9 +81,9 @@ describe('Space', () => {
81
81
items . forEach ( ( item , i ) => {
82
82
const element = item . nativeElement as HTMLElement ;
83
83
if ( i < items . length - 1 ) {
84
- expect ( element . style . marginRight ) . toBe ( '24px' ) ;
84
+ expect ( element . style . marginInlineEnd ) . toBe ( '24px' ) ;
85
85
} else {
86
- expect ( element . style . marginRight ) . toBe ( '' ) ;
86
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
87
87
}
88
88
} ) ;
89
89
} ) ;
@@ -97,9 +97,9 @@ describe('Space', () => {
97
97
items . forEach ( ( item , i ) => {
98
98
const element = item . nativeElement as HTMLElement ;
99
99
if ( i < items . length - 1 ) {
100
- expect ( element . style . marginRight ) . toBe ( '36px' ) ;
100
+ expect ( element . style . marginInlineEnd ) . toBe ( '36px' ) ;
101
101
} else {
102
- expect ( element . style . marginRight ) . toBe ( '' ) ;
102
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
103
103
}
104
104
} ) ;
105
105
@@ -109,9 +109,9 @@ describe('Space', () => {
109
109
items . forEach ( ( item , i ) => {
110
110
const element = item . nativeElement as HTMLElement ;
111
111
if ( i < items . length - 1 ) {
112
- expect ( element . style . marginRight ) . toBe ( '18px' ) ;
112
+ expect ( element . style . marginInlineEnd ) . toBe ( '18px' ) ;
113
113
} else {
114
- expect ( element . style . marginRight ) . toBe ( '' ) ;
114
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
115
115
}
116
116
} ) ;
117
117
} ) ;
@@ -129,11 +129,11 @@ describe('Space', () => {
129
129
items . forEach ( ( item , i ) => {
130
130
const element = item . nativeElement as HTMLElement ;
131
131
if ( i < items . length - 1 ) {
132
- expect ( element . style . marginRight ) . toBeFalsy ( ) ;
133
- expect ( element . style . marginBottom ) . toBeTruthy ( ) ;
132
+ expect ( element . style . marginInlineEnd ) . toBeFalsy ( ) ;
133
+ expect ( element . style . marginBlockEnd ) . toBeTruthy ( ) ;
134
134
} else {
135
- expect ( element . style . marginRight ) . toBeFalsy ( ) ;
136
- expect ( element . style . marginBottom ) . toBeFalsy ( ) ;
135
+ expect ( element . style . marginInlineEnd ) . toBeFalsy ( ) ;
136
+ expect ( element . style . marginBlockEnd ) . toBeFalsy ( ) ;
137
137
}
138
138
} ) ;
139
139
@@ -145,11 +145,11 @@ describe('Space', () => {
145
145
items . forEach ( ( item , i ) => {
146
146
const element = item . nativeElement as HTMLElement ;
147
147
if ( i < items . length - 1 ) {
148
- expect ( element . style . marginRight ) . toBeTruthy ( ) ;
149
- expect ( element . style . marginBottom ) . toBeFalsy ( ) ;
148
+ expect ( element . style . marginInlineEnd ) . toBeTruthy ( ) ;
149
+ expect ( element . style . marginBlockEnd ) . toBeFalsy ( ) ;
150
150
} else {
151
- expect ( element . style . marginRight ) . toBeFalsy ( ) ;
152
- expect ( element . style . marginBottom ) . toBeFalsy ( ) ;
151
+ expect ( element . style . marginInlineEnd ) . toBeFalsy ( ) ;
152
+ expect ( element . style . marginBlockEnd ) . toBeFalsy ( ) ;
153
153
}
154
154
} ) ;
155
155
} ) ;
@@ -189,15 +189,15 @@ describe('Space', () => {
189
189
items . forEach ( ( item , i ) => {
190
190
const element = item . nativeElement as HTMLElement ;
191
191
if ( i < items . length - 1 ) {
192
- expect ( element . style . marginRight ) . toBe ( '4px' ) ;
192
+ expect ( element . style . marginInlineEnd ) . toBe ( '4px' ) ;
193
193
} else {
194
- expect ( element . style . marginRight ) . toBe ( '' ) ;
194
+ expect ( element . style . marginInlineEnd ) . toBe ( '' ) ;
195
195
}
196
196
} ) ;
197
197
198
198
splits . forEach ( item => {
199
199
const element = item . nativeElement as HTMLElement ;
200
- expect ( element . style . marginRight ) . toBe ( '4px' ) ;
200
+ expect ( element . style . marginInlineEnd ) . toBe ( '4px' ) ;
201
201
} ) ;
202
202
203
203
component . show = true ;
@@ -211,7 +211,7 @@ describe('Space', () => {
211
211
212
212
splits . forEach ( item => {
213
213
const element = item . nativeElement as HTMLElement ;
214
- expect ( element . style . marginRight ) . toBe ( '4px' ) ;
214
+ expect ( element . style . marginInlineEnd ) . toBe ( '4px' ) ;
215
215
} ) ;
216
216
} ) ;
217
217
} ) ;
0 commit comments