From c43a8e433a8de866dc3b327d85f5b74e43049d3d Mon Sep 17 00:00:00 2001 From: n Date: Sat, 12 Sep 2020 15:50:25 -0400 Subject: [PATCH] [Gardening] Remove unused snapshot file, reorder tests to match case declaration --- .../Tests/Sources/BoxTests.swift | 12 ++++++------ .../BoxTests/test_cornerRadius_.png | Bin 0 -> 763 bytes 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 BlueprintUICommonControls/Tests/Sources/ReferenceImages/BoxTests/test_cornerRadius_.png diff --git a/BlueprintUICommonControls/Tests/Sources/BoxTests.swift b/BlueprintUICommonControls/Tests/Sources/BoxTests.swift index 6c41d54ad..8708cae06 100644 --- a/BlueprintUICommonControls/Tests/Sources/BoxTests.swift +++ b/BlueprintUICommonControls/Tests/Sources/BoxTests.swift @@ -22,21 +22,21 @@ class BoxTests: XCTestCase { do { var box = Box() box.backgroundColor = .blue - box.cornerStyle = .rounded(radius: 10.0) + box.cornerStyle = .semicircle compareSnapshot( of: box, - size: CGSize(width: 100, height: 100), - identifier: "rounded") + size: CGSize(width: 200, height: 100), + identifier: "semicircle") } do { var box = Box() box.backgroundColor = .blue - box.cornerStyle = .semicircle + box.cornerStyle = .rounded(radius: 10.0) compareSnapshot( of: box, - size: CGSize(width: 200, height: 100), - identifier: "semicircle") + size: CGSize(width: 100, height: 100), + identifier: "rounded") } } diff --git a/BlueprintUICommonControls/Tests/Sources/ReferenceImages/BoxTests/test_cornerRadius_.png b/BlueprintUICommonControls/Tests/Sources/ReferenceImages/BoxTests/test_cornerRadius_.png new file mode 100644 index 0000000000000000000000000000000000000000..3013312ab59621a9d75cc38cdbe71fa292dcced7 GIT binary patch literal 763 zcmeAS@N?(olHy`uVBq!ia0vp^DImGSj*5(ppHKbdFB!c8H|PK8O%Uu*j8ys58X ztoslDL;F8Pr>tf1#>epkNx z8fp?VL-ITGn%b8~9CW(W>fRodKHK<+dn?oGCByJp%lFmjZ-rOu3G5NHVSp2>Ps z&iU>cxdw(7tHqnn=rC|NtXO)cDW`v7UK+mxgVWr=$TTqq7KJN8X^z{D2bgbW2O4#5 zg^n>d1Cv0O=4OT4$tz~xWCj|Q9x`nvE70t%Qz9q4HN3L+O(i1(!~g$G&YCK~;Isn; z=iBLqz`zu7S-YpLb^9l|xKoFixi+2DS>rn?^N?Qfp4JHu+BrUddNw