Skip to content

Commit 5f93483

Browse files
Updates test snapshots
1 parent f1b70da commit 5f93483

24 files changed

+416
-429
lines changed

Tests/AppTests/Inputs/Input+Error.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,4 @@ extension Input {
77
"<NSLayoutConstraint:0x61h00099cd0 _UIButtonBarStackView:0x7fb573cxbf90.width <= 0 (active)>"
88
)
99
"""
10-
11-
static let duplicateKeyError = """
12-
(
13-
"<NSLayoutConstraint:0x608000696990 V:[ListViewItemLabel...]-(7)-[ListViewImage-a...] (active, names: ListViewItemLabel...:0x7f950028efe0, ListViewItemLabel...:0x7f950028e5b0 )>",
14-
)
15-
"""
1610
}

Tests/AppTests/ViewTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class ViewTests: XCTestCase {
3030

3131
func testPostError() throws {
3232
let inputs = [
33-
Input.invalidHexitError,
34-
Input.duplicateKeyError
33+
Input.invalidHexitError
3534
]
3635

3736
for input in inputs {

Tests/AppTests/__Snapshots__/ParserTests/testCustomInputs.2.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"constraints" : [
33
{
4-
"description" : "<code style=\"box-shadow: 0px -1px 0px #E74C3C inset; padding-bottom: 1px;\">MyCircleView<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #F1C40F inset; padding-bottom: 1px;\">name_label<\/code>'s leading edge.",
4+
"description" : "<code style=\"box-shadow: 0px -1px 0px #F1C40F inset; padding-bottom: 1px;\">MyCircleView<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #E74C3C inset; padding-bottom: 1px;\">name_label<\/code>'s leading edge.",
55
"first" : {
66
"attribute" : {
77
"includesMargin" : false,
@@ -10,7 +10,7 @@
1010
"instance" : {
1111
"address" : "0x7fa4d0e8b8e0",
1212
"className" : "MyCircleView",
13-
"color" : "rgb(231,76,60)",
13+
"color" : "rgb(241,196,15)",
1414
"initial" : "M",
1515
"name" : "MyCircleView",
1616
"suffix" : ""
@@ -32,7 +32,7 @@
3232
"instance" : {
3333
"address" : "0x7fa4d0e9e480",
3434
"className" : "name_label",
35-
"color" : "rgb(241,196,15)",
35+
"color" : "rgb(231,76,60)",
3636
"initial" : "N",
3737
"name" : "name_label",
3838
"suffix" : ""
@@ -44,7 +44,7 @@
4444
"prefix" : "+ ",
4545
"value" : "6"
4646
},
47-
"description" : "<code style=\"box-shadow: 0px -1px 0px #E74C3C inset; padding-bottom: 1px;\">MyCircleView<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #2ECC71 inset; padding-bottom: 1px;\">OverViewFactorLabel<\/code>'s leading edge plus 6.",
47+
"description" : "<code style=\"box-shadow: 0px -1px 0px #F1C40F inset; padding-bottom: 1px;\">MyCircleView<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #2ECC71 inset; padding-bottom: 1px;\">OverViewFactorLabel<\/code>'s leading edge plus 6.",
4848
"first" : {
4949
"attribute" : {
5050
"includesMargin" : false,
@@ -53,7 +53,7 @@
5353
"instance" : {
5454
"address" : "0x7fa4d0e8b8e0",
5555
"className" : "MyCircleView",
56-
"color" : "rgb(231,76,60)",
56+
"color" : "rgb(241,196,15)",
5757
"initial" : "M",
5858
"name" : "MyCircleView",
5959
"suffix" : ""
@@ -83,7 +83,7 @@
8383
}
8484
},
8585
{
86-
"description" : "<code style=\"box-shadow: 0px -1px 0px #F1C40F inset; padding-bottom: 1px;\">name_label<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #2ECC71 inset; padding-bottom: 1px;\">OverViewFactorLabel<\/code>'s leading edge.",
86+
"description" : "<code style=\"box-shadow: 0px -1px 0px #E74C3C inset; padding-bottom: 1px;\">name_label<\/code>'s leading edge should equal <code style=\"box-shadow: 0px -1px 0px #2ECC71 inset; padding-bottom: 1px;\">OverViewFactorLabel<\/code>'s leading edge.",
8787
"first" : {
8888
"attribute" : {
8989
"includesMargin" : false,
@@ -92,7 +92,7 @@
9292
"instance" : {
9393
"address" : "0x7fa4d0e9e480",
9494
"className" : "name_label",
95-
"color" : "rgb(241,196,15)",
95+
"color" : "rgb(231,76,60)",
9696
"initial" : "N",
9797
"name" : "name_label",
9898
"suffix" : ""

Tests/AppTests/__Snapshots__/ParserTests/testCustomInputs.3.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"prefix" : "+ ",
66
"value" : "3"
77
},
8-
"description" : "<code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">VeryLargeLabelWithBorder<\/code>'s bottom edge plus 3.",
8+
"description" : "<code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">View1<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #D35400 inset; padding-bottom: 1px;\">VeryLargeLabelWithBorder<\/code>'s bottom edge plus 3.",
99
"first" : {
1010
"attribute" : {
1111
"includesMargin" : false,
@@ -14,10 +14,10 @@
1414
"instance" : {
1515
"address" : "0x7fa4d6079490",
1616
"className" : "UIView",
17-
"color" : "rgb(26,188,156)",
17+
"color" : "rgb(142,68,173)",
1818
"initial" : "V",
1919
"name" : "View",
20-
"suffix" : "2"
20+
"suffix" : "1"
2121
}
2222
},
2323
"identity" : {
@@ -36,7 +36,7 @@
3636
"instance" : {
3737
"address" : "0x7fa4d60764b0",
3838
"className" : "VeryLargeLabelWithBorder...",
39-
"color" : "rgb(142,68,173)",
39+
"color" : "rgb(211,84,0)",
4040
"initial" : "V",
4141
"name" : "VeryLargeLabelWithBorder",
4242
"suffix" : ""
@@ -48,7 +48,7 @@
4848
"prefix" : "+ ",
4949
"value" : "3"
5050
},
51-
"description" : "<code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">VeryLargeLabelWithBorder<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s top edge plus 3.",
51+
"description" : "<code style=\"box-shadow: 0px -1px 0px #D35400 inset; padding-bottom: 1px;\">VeryLargeLabelWithBorder<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">View1<\/code>'s top edge plus 3.",
5252
"first" : {
5353
"attribute" : {
5454
"includesMargin" : false,
@@ -57,7 +57,7 @@
5757
"instance" : {
5858
"address" : "0x7fa4d60764b0",
5959
"className" : "VeryLargeLabelWithBorder...",
60-
"color" : "rgb(142,68,173)",
60+
"color" : "rgb(211,84,0)",
6161
"initial" : "V",
6262
"name" : "VeryLargeLabelWithBorder",
6363
"suffix" : ""
@@ -79,18 +79,18 @@
7979
"instance" : {
8080
"address" : "0x7fa4d6079490",
8181
"className" : "UIView",
82-
"color" : "rgb(26,188,156)",
82+
"color" : "rgb(142,68,173)",
8383
"initial" : "V",
8484
"name" : "View",
85-
"suffix" : "2"
85+
"suffix" : "1"
8686
}
8787
}
8888
},
8989
{
9090
"constant" : {
9191
"value" : "0"
9292
},
93-
"description" : "<code style=\"box-shadow: 0px -1px 0px #D35400 inset; padding-bottom: 1px;\">View1<\/code>'s height should equal 0.",
93+
"description" : "<code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s height should equal 0.",
9494
"first" : {
9595
"attribute" : {
9696
"includesMargin" : false,
@@ -99,10 +99,10 @@
9999
"instance" : {
100100
"address" : "0x7fa4d6079060",
101101
"className" : "UIView",
102-
"color" : "rgb(211,84,0)",
102+
"color" : "rgb(26,188,156)",
103103
"initial" : "V",
104104
"name" : "View",
105-
"suffix" : "1"
105+
"suffix" : "2"
106106
}
107107
},
108108
"identity" : {
@@ -115,7 +115,7 @@
115115
"relation" : "=="
116116
},
117117
{
118-
"description" : "<code style=\"box-shadow: 0px -1px 0px #D35400 inset; padding-bottom: 1px;\">View1<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s bottom edge.",
118+
"description" : "<code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">View1<\/code>'s bottom edge.",
119119
"first" : {
120120
"attribute" : {
121121
"includesMargin" : false,
@@ -124,10 +124,10 @@
124124
"instance" : {
125125
"address" : "0x7fa4d6079060",
126126
"className" : "UIView",
127-
"color" : "rgb(211,84,0)",
127+
"color" : "rgb(26,188,156)",
128128
"initial" : "V",
129129
"name" : "View",
130-
"suffix" : "1"
130+
"suffix" : "2"
131131
}
132132
},
133133
"identity" : {
@@ -146,15 +146,15 @@
146146
"instance" : {
147147
"address" : "0x7fa4d6079490",
148148
"className" : "UIView",
149-
"color" : "rgb(26,188,156)",
149+
"color" : "rgb(142,68,173)",
150150
"initial" : "V",
151151
"name" : "View",
152-
"suffix" : "2"
152+
"suffix" : "1"
153153
}
154154
}
155155
},
156156
{
157-
"description" : "<code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #D35400 inset; padding-bottom: 1px;\">View1<\/code>'s top edge.",
157+
"description" : "<code style=\"box-shadow: 0px -1px 0px #8E44AD inset; padding-bottom: 1px;\">View1<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #1ABC9C inset; padding-bottom: 1px;\">View2<\/code>'s top edge.",
158158
"first" : {
159159
"attribute" : {
160160
"includesMargin" : false,
@@ -163,10 +163,10 @@
163163
"instance" : {
164164
"address" : "0x7fa4d6079490",
165165
"className" : "UIView",
166-
"color" : "rgb(26,188,156)",
166+
"color" : "rgb(142,68,173)",
167167
"initial" : "V",
168168
"name" : "View",
169-
"suffix" : "2"
169+
"suffix" : "1"
170170
}
171171
},
172172
"identity" : {
@@ -185,10 +185,10 @@
185185
"instance" : {
186186
"address" : "0x7fa4d6079060",
187187
"className" : "UIView",
188-
"color" : "rgb(211,84,0)",
188+
"color" : "rgb(26,188,156)",
189189
"initial" : "V",
190190
"name" : "View",
191-
"suffix" : "1"
191+
"suffix" : "2"
192192
}
193193
}
194194
}

Tests/AppTests/__Snapshots__/ParserTests/testCustomInputs.4.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"constant" : {
55
"value" : "0"
66
},
7-
"description" : "<code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s height should equal 0.",
7+
"description" : "<code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s height should equal 0.",
88
"first" : {
99
"attribute" : {
1010
"includesMargin" : false,
@@ -13,7 +13,7 @@
1313
"instance" : {
1414
"address" : "0x1271a5500",
1515
"className" : "_UILayoutGuide",
16-
"color" : "rgb(243,156,18)",
16+
"color" : "rgb(22,160,133)",
1717
"initial" : "U",
1818
"name" : "_UILayoutGuide",
1919
"suffix" : ""
@@ -29,7 +29,7 @@
2929
"relation" : "=="
3030
},
3131
{
32-
"description" : "<code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #2980B9 inset; padding-bottom: 1px;\">View<\/code>'s bottom edge.",
32+
"description" : "<code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #2980B9 inset; padding-bottom: 1px;\">View<\/code>'s bottom edge.",
3333
"first" : {
3434
"attribute" : {
3535
"includesMargin" : false,
@@ -38,7 +38,7 @@
3838
"instance" : {
3939
"address" : "0x1271a5500",
4040
"className" : "_UILayoutGuide",
41-
"color" : "rgb(243,156,18)",
41+
"color" : "rgb(22,160,133)",
4242
"initial" : "U",
4343
"name" : "_UILayoutGuide",
4444
"suffix" : ""
@@ -71,7 +71,7 @@
7171
"constant" : {
7272
"value" : "230"
7373
},
74-
"description" : "<code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">CollectionView<\/code>'s height should equal 230.",
74+
"description" : "<code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">CollectionView<\/code>'s height should equal 230.",
7575
"first" : {
7676
"attribute" : {
7777
"includesMargin" : false,
@@ -80,7 +80,7 @@
8080
"instance" : {
8181
"address" : "0x126963e00",
8282
"className" : "UICollectionView",
83-
"color" : "rgb(22,160,133)",
83+
"color" : "rgb(243,156,18)",
8484
"initial" : "C",
8585
"name" : "CollectionView",
8686
"suffix" : ""
@@ -100,7 +100,7 @@
100100
"prefix" : "+ ",
101101
"value" : "87"
102102
},
103-
"description" : "<code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">CollectionView<\/code>'s bottom edge plus 87.",
103+
"description" : "<code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">_UILayoutGuide<\/code>'s top edge should equal <code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">CollectionView<\/code>'s bottom edge plus 87.",
104104
"first" : {
105105
"attribute" : {
106106
"includesMargin" : false,
@@ -109,7 +109,7 @@
109109
"instance" : {
110110
"address" : "0x1271a5500",
111111
"className" : "_UILayoutGuide",
112-
"color" : "rgb(243,156,18)",
112+
"color" : "rgb(22,160,133)",
113113
"initial" : "U",
114114
"name" : "_UILayoutGuide",
115115
"suffix" : ""
@@ -131,7 +131,7 @@
131131
"instance" : {
132132
"address" : "0x126963e00",
133133
"className" : "UICollectionView",
134-
"color" : "rgb(22,160,133)",
134+
"color" : "rgb(243,156,18)",
135135
"initial" : "C",
136136
"name" : "CollectionView",
137137
"suffix" : ""
@@ -172,7 +172,7 @@
172172
"relation" : "=="
173173
},
174174
{
175-
"description" : "<code style=\"box-shadow: 0px -1px 0px #16A085 inset; padding-bottom: 1px;\">CollectionView<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #2980B9 inset; padding-bottom: 1px;\">View<\/code>'s bottom edge.",
175+
"description" : "<code style=\"box-shadow: 0px -1px 0px #F39C12 inset; padding-bottom: 1px;\">CollectionView<\/code>'s bottom edge should equal <code style=\"box-shadow: 0px -1px 0px #2980B9 inset; padding-bottom: 1px;\">View<\/code>'s bottom edge.",
176176
"first" : {
177177
"attribute" : {
178178
"includesMargin" : false,
@@ -181,7 +181,7 @@
181181
"instance" : {
182182
"address" : "0x126963e00",
183183
"className" : "UICollectionView",
184-
"color" : "rgb(22,160,133)",
184+
"color" : "rgb(243,156,18)",
185185
"initial" : "C",
186186
"name" : "CollectionView",
187187
"suffix" : ""
@@ -217,13 +217,13 @@
217217
}
218218
],
219219
"footnotes" : [
220-
{
221-
"marker" : "*",
222-
"text" : "This constraint was translated from an autoresizing mask. If this was not intended, try setting <code>translatesAutoresizingMaskIntoConstraints<\/code> to false on this view."
223-
},
224220
{
225221
"marker" : "",
226222
"text" : "This constraint was added by a table or collection view to enforce its cell size."
223+
},
224+
{
225+
"marker" : "*",
226+
"text" : "This constraint was translated from an autoresizing mask. If this was not intended, try setting <code>translatesAutoresizingMaskIntoConstraints<\/code> to false on this view."
227227
}
228228
]
229229
}

0 commit comments

Comments
 (0)