Skip to content

Commit

Permalink
Update PDFListItemObject_Spec.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgkhour committed Mar 1, 2021
1 parent b35163a commit e2d145b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Tests/TPPDFTests/List/PDFListItemObject_Spec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[2].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 10))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(95))
expect(item?.frame.origin.y).to(equal(80))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(81))
#endif
Expand All @@ -103,7 +103,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[3].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 20))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(95))
expect(item?.frame.origin.y).to(equal(80))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(81))
#endif
Expand All @@ -120,7 +120,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[4].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 10))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(115))
expect(item?.frame.origin.y).to(equal(100))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(102))
#endif
Expand All @@ -137,7 +137,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[5].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 20))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(115))
expect(item?.frame.origin.y).to(equal(100))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(102))
#endif
Expand All @@ -154,7 +154,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[6].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 20))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(135))
expect(item?.frame.origin.y).to(equal(120))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(123))
#endif
Expand All @@ -171,7 +171,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[7].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 30))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(135))
expect(item?.frame.origin.y).to(equal(120))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(123))
#endif
Expand All @@ -188,7 +188,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[8].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 30))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(155))
expect(item?.frame.origin.y).to(equal(140))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(144))
#endif
Expand All @@ -205,7 +205,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[9].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 20))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(175))
expect(item?.frame.origin.y).to(equal(160))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(165))
#endif
Expand All @@ -222,7 +222,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[10].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 30))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(175))
expect(item?.frame.origin.y).to(equal(160))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(165))
#endif
Expand All @@ -239,7 +239,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[11].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 10))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(195))
expect(item?.frame.origin.y).to(equal(180))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(186))
#endif
Expand All @@ -256,7 +256,7 @@ class PDFListItemObject_Spec: QuickSpec {
item = result?[12].1 as? PDFAttributedTextObject
expect(item?.frame.origin.x).to(equal(document.layout.margin.left + 20))
#if os(macOS)
expect(item?.frame.origin.y).to(equal(195))
expect(item?.frame.origin.y).to(equal(180))
#elseif os(iOS)
expect(item?.frame.origin.y).to(equal(186))
#endif
Expand Down

0 comments on commit e2d145b

Please sign in to comment.