@@ -279,13 +279,12 @@ class WrapContentSpec: QuickSpec {
279279 expect ( aViewChild3. frame) . to ( equal ( CGRect ( x: 360.0 , y: 30.0 , width: 60.0 , height: 60.0 ) ) )
280280 }
281281
282-
283282 it ( " wrap all + padding UIEdgeInsets " ) {
284283 aView. frame = CGRect ( x: 20 , y: 10 , width: 200 , height: 100 )
285284 aViewChild. frame = CGRect ( x: 160 , y: 120 , width: 100 , height: 40 )
286285 aViewChild2. frame = CGRect ( x: 260 , y: 120 , width: 60 , height: 60 )
287286 aViewChild3. frame = CGRect ( x: 360 , y: 140 , width: 60 , height: 60 )
288- aView. pin. wrapContent ( padding: UIEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
287+ aView. pin. wrapContent ( padding: PEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
289288 expect ( aView. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 320.0 , height: 120.0 ) ) )
290289 expect ( aViewChild. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 100.0 , height: 40.0 ) ) )
291290 expect ( aViewChild2. frame) . to ( equal ( CGRect ( x: 120.0 , y: 10.0 , width: 60.0 , height: 60.0 ) ) )
@@ -297,20 +296,20 @@ class WrapContentSpec: QuickSpec {
297296 aViewChild. frame = CGRect ( x: 160 , y: 120 , width: 100 , height: 40 )
298297 aViewChild2. frame = CGRect ( x: 260 , y: 120 , width: 60 , height: 60 )
299298 aViewChild3. frame = CGRect ( x: 360 , y: 140 , width: 60 , height: 60 )
300- aView. pin. wrapContent ( . all, padding: UIEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
299+ aView. pin. wrapContent ( . all, padding: PEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
301300 expect ( aView. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 320.0 , height: 120.0 ) ) )
302301 expect ( aViewChild. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 100.0 , height: 40.0 ) ) )
303302 expect ( aViewChild2. frame) . to ( equal ( CGRect ( x: 120.0 , y: 10.0 , width: 60.0 , height: 60.0 ) ) )
304303 expect ( aViewChild3. frame) . to ( equal ( CGRect ( x: 220.0 , y: 30.0 , width: 60.0 , height: 60.0 ) ) )
305304
306305 }
307306
308- it ( " wrap horizontally + padding UIEdgeInsets " ) {
307+ it ( " wrap horizontally + padding PEdgeInsets " ) {
309308 aView. frame = CGRect ( x: 20 , y: 10 , width: 200 , height: 100 )
310309 aViewChild. frame = CGRect ( x: 160 , y: 120 , width: 100 , height: 40 )
311310 aViewChild2. frame = CGRect ( x: 260 , y: 120 , width: 60 , height: 60 )
312311 aViewChild3. frame = CGRect ( x: 360 , y: 140 , width: 60 , height: 60 )
313- aView. pin. wrapContent ( . horizontally, padding: UIEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
312+ aView. pin. wrapContent ( . horizontally, padding: PEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
314313 expect ( aView. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 320.0 , height: 100.0 ) ) )
315314 expect ( aViewChild. frame) . to ( equal ( CGRect ( x: 20.0 , y: 120.0 , width: 100.0 , height: 40.0 ) ) )
316315 expect ( aViewChild2. frame) . to ( equal ( CGRect ( x: 120.0 , y: 120.0 , width: 60.0 , height: 60.0 ) ) )
@@ -319,25 +318,25 @@ class WrapContentSpec: QuickSpec {
319318 }
320319
321320
322- it ( " wrap vertically + padding UIEdgeInsets " ) {
321+ it ( " wrap vertically + padding PEdgeInsets " ) {
323322 aView. frame = CGRect ( x: 20 , y: 10 , width: 200 , height: 100 )
324323 aViewChild. frame = CGRect ( x: 160 , y: 120 , width: 100 , height: 40 )
325324 aViewChild2. frame = CGRect ( x: 260 , y: 120 , width: 60 , height: 60 )
326325 aViewChild3. frame = CGRect ( x: 360 , y: 140 , width: 60 , height: 60 )
327- aView. pin. wrapContent ( . vertically, padding: UIEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
326+ aView. pin. wrapContent ( . vertically, padding: PEdgeInsets ( top: 10 , left: 20 , bottom: 30 , right: 40 ) )
328327 expect ( aView. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 200.0 , height: 120.0 ) ) )
329328 expect ( aViewChild. frame) . to ( equal ( CGRect ( x: 160.0 , y: 10.0 , width: 100.0 , height: 40.0 ) ) )
330329 expect ( aViewChild2. frame) . to ( equal ( CGRect ( x: 260.0 , y: 10.0 , width: 60.0 , height: 60.0 ) ) )
331330 expect ( aViewChild3. frame) . to ( equal ( CGRect ( x: 360.0 , y: 30.0 , width: 60.0 , height: 60.0 ) ) )
332331
333332 }
334333
335- it ( " wrap all + negative padding UIEdgeInsets " ) {
334+ it ( " wrap all + negative padding PEdgeInsets " ) {
336335 aView. frame = CGRect ( x: 20 , y: 10 , width: 200 , height: 100 )
337336 aViewChild. frame = CGRect ( x: 160 , y: 120 , width: 100 , height: 40 )
338337 aViewChild2. frame = CGRect ( x: 260 , y: 120 , width: 60 , height: 60 )
339338 aViewChild3. frame = CGRect ( x: 360 , y: 140 , width: 60 , height: 60 )
340- aView. pin. wrapContent ( . all, padding: UIEdgeInsets ( top: - 10 , left: - 20 , bottom: - 30 , right: - 40 ) )
339+ aView. pin. wrapContent ( . all, padding: PEdgeInsets ( top: - 10 , left: - 20 , bottom: - 30 , right: - 40 ) )
341340 expect ( aView. frame) . to ( equal ( CGRect ( x: 20.0 , y: 10.0 , width: 200.0 , height: 40.0 ) ) )
342341 expect ( aViewChild. frame) . to ( equal ( CGRect ( x: - 20.0 , y: - 10.0 , width: 100.0 , height: 40.0 ) ) )
343342 expect ( aViewChild2. frame) . to ( equal ( CGRect ( x: 80.0 , y: - 10.0 , width: 60.0 , height: 60.0 ) ) )
0 commit comments