Skip to content

Commit

Permalink
Merge pull request #582 from exyte/test/396-SVG-tests-for-gradients
Browse files Browse the repository at this point in the history
Fix #396: SVG tests for gradients
  • Loading branch information
ystrot authored May 31, 2019
2 parents eb24028 + fee7920 commit 9fd3924
Show file tree
Hide file tree
Showing 17 changed files with 5,541 additions and 26 deletions.
56 changes: 56 additions & 0 deletions Macaw.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,20 @@
A74C823E2297DB2C0085A832 /* shapes-rect-03-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C823A2297DB2B0085A832 /* shapes-rect-03-t-manual.reference */; };
A74C823F2297DB2C0085A832 /* shapes-rect-06-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C823B2297DB2B0085A832 /* shapes-rect-06-f-manual.reference */; };
A74C82412297DC220085A832 /* shapes-rect-02-t-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82402297DC220085A832 /* shapes-rect-02-t-manual.reference */; };
A74C82E1229E35D30085A832 /* pservers-grad-09-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */; };
A74C82E2229E35D30085A832 /* pservers-grad-24-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */; };
A74C82E3229E35D30085A832 /* pservers-grad-15-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */; };
A74C82E4229E35D30085A832 /* pservers-grad-22-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */; };
A74C82E5229E35D30085A832 /* pservers-grad-13-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */; };
A74C82E6229E35D30085A832 /* pservers-grad-23-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */; };
A74C82E7229E35D30085A832 /* pservers-grad-12-b-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */; };
A74C82EF229E369A0085A832 /* pservers-grad-12-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */; };
A74C82F0229E369A0085A832 /* pservers-grad-23-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */; };
A74C82F1229E369A0085A832 /* pservers-grad-24-f-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */; };
A74C82F2229E369A0085A832 /* pservers-grad-15-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */; };
A74C82F3229E369A0085A832 /* pservers-grad-09-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */; };
A74C82F4229E369A0085A832 /* pservers-grad-13-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */; };
A74C82F5229E369A0085A832 /* pservers-grad-22-b-manual.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */; };
A74C832C229FB7690085A832 /* color-prop-04-t-manual-osx.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C832B229FB7690085A832 /* color-prop-04-t-manual-osx.svg */; };
A74C832E229FBA4C0085A832 /* color-prop-04-t-manual-osx.reference in Resources */ = {isa = PBXBuildFile; fileRef = A74C832D229FBA4C0085A832 /* color-prop-04-t-manual-osx.reference */; };
A74C8307229E9CCE0085A832 /* masking-filter-01-f-manual.svg in Resources */ = {isa = PBXBuildFile; fileRef = A74C8305229E9CCD0085A832 /* masking-filter-01-f-manual.svg */; };
Expand Down Expand Up @@ -980,6 +994,20 @@
A74C823A2297DB2B0085A832 /* shapes-rect-03-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-03-t-manual.reference"; sourceTree = "<group>"; };
A74C823B2297DB2B0085A832 /* shapes-rect-06-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-06-f-manual.reference"; sourceTree = "<group>"; };
A74C82402297DC220085A832 /* shapes-rect-02-t-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "shapes-rect-02-t-manual.reference"; sourceTree = "<group>"; };
A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-09-b-manual.svg"; sourceTree = "<group>"; };
A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-24-f-manual.svg"; sourceTree = "<group>"; };
A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-15-b-manual.svg"; sourceTree = "<group>"; };
A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-22-b-manual.svg"; sourceTree = "<group>"; };
A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-13-b-manual.svg"; sourceTree = "<group>"; };
A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-23-f-manual.svg"; sourceTree = "<group>"; };
A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-12-b-manual.svg"; sourceTree = "<group>"; };
A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-12-b-manual.reference"; sourceTree = "<group>"; };
A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-23-f-manual.reference"; sourceTree = "<group>"; };
A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-24-f-manual.reference"; sourceTree = "<group>"; };
A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-15-b-manual.reference"; sourceTree = "<group>"; };
A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-09-b-manual.reference"; sourceTree = "<group>"; };
A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-13-b-manual.reference"; sourceTree = "<group>"; };
A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "pservers-grad-22-b-manual.reference"; sourceTree = "<group>"; };
A74C832B229FB7690085A832 /* color-prop-04-t-manual-osx.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-04-t-manual-osx.svg"; sourceTree = "<group>"; };
A74C832D229FBA4C0085A832 /* color-prop-04-t-manual-osx.reference */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "color-prop-04-t-manual-osx.reference"; sourceTree = "<group>"; };
A74C8305229E9CCD0085A832 /* masking-filter-01-f-manual.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "masking-filter-01-f-manual.svg"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1577,6 +1605,20 @@
5B7E79C220CA7F1A00C50BCF /* pservers-grad-03-b-manual.svg */,
5B37139120BE95D6004BB6EE /* pservers-grad-07-b-manual.reference */,
5B37139520BE95D7004BB6EE /* pservers-grad-07-b-manual.svg */,
A74C82EC229E36990085A832 /* pservers-grad-09-b-manual.reference */,
A74C82DA229E35D20085A832 /* pservers-grad-09-b-manual.svg */,
A74C82E8229E36990085A832 /* pservers-grad-12-b-manual.reference */,
A74C82E0229E35D30085A832 /* pservers-grad-12-b-manual.svg */,
A74C82ED229E36990085A832 /* pservers-grad-13-b-manual.reference */,
A74C82DE229E35D30085A832 /* pservers-grad-13-b-manual.svg */,
A74C82EB229E36990085A832 /* pservers-grad-15-b-manual.reference */,
A74C82DC229E35D20085A832 /* pservers-grad-15-b-manual.svg */,
A74C82EE229E369A0085A832 /* pservers-grad-22-b-manual.reference */,
A74C82DD229E35D30085A832 /* pservers-grad-22-b-manual.svg */,
A74C82E9229E36990085A832 /* pservers-grad-23-f-manual.reference */,
A74C82DF229E35D30085A832 /* pservers-grad-23-f-manual.svg */,
A74C82EA229E36990085A832 /* pservers-grad-24-f-manual.reference */,
A74C82DB229E35D20085A832 /* pservers-grad-24-f-manual.svg */,
5B1AE1F020B6A669007EECCB /* pservers-grad-stops-01-f-manual.reference */,
5B1AE1EB20B6A669007EECCB /* pservers-grad-stops-01-f-manual.svg */,
5B1AE1A220B6A669007EECCB /* render-elems-01-t-manual.reference */,
Expand Down Expand Up @@ -1880,6 +1922,8 @@
5B1AE2C720B6A669007EECCB /* paths-data-02-t-manual.svg in Resources */,
A74C823C2297DB2C0085A832 /* shapes-rect-07-f-manual.reference in Resources */,
5B1AE27120B6A669007EECCB /* painting-stroke-04-t-manual.reference in Resources */,
A74C82F3229E369A0085A832 /* pservers-grad-09-b-manual.reference in Resources */,
A74C82E4229E35D30085A832 /* pservers-grad-22-b-manual.svg in Resources */,
5B1AE2C220B6A669007EECCB /* coords-trans-05-t-manual.svg in Resources */,
5B1AE29D20B6A669007EECCB /* types-basic-01-f-manual.reference in Resources */,
5B1AE25820B6A669007EECCB /* paths-data-08-t-manual.reference in Resources */,
Expand Down Expand Up @@ -1914,6 +1958,7 @@
A74C82352297D8B40085A832 /* shapes-rect-07-f-manual.svg in Resources */,
5B1AE2A520B6A669007EECCB /* coords-trans-02-t-manual.reference in Resources */,
5B1AE23220B6A669007EECCB /* text-align-01-b-manual.svg in Resources */,
A74C82E5229E35D30085A832 /* pservers-grad-13-b-manual.svg in Resources */,
A74C8308229E9CCE0085A832 /* masking-mask-02-f-manual.svg in Resources */,
5B1AE2B220B6A669007EECCB /* types-basic-01-f-manual.svg in Resources */,
58944BDA20AC8A9A00657640 /* logo_base64.txt in Resources */,
Expand All @@ -1926,13 +1971,15 @@
5B1AE2D020B6A669007EECCB /* struct-defs-01-t-manual.reference in Resources */,
5B1AE25020B6A669007EECCB /* render-elems-01-t-manual.reference in Resources */,
A74C822C2297D5350085A832 /* coords-trans-10-f-manual.reference in Resources */,
A74C82E1229E35D30085A832 /* pservers-grad-09-b-manual.svg in Resources */,
5B1AE24520B6A669007EECCB /* struct-frag-01-t-manual.reference in Resources */,
5B1AE25B20B6A669007EECCB /* painting-stroke-01-t-manual.svg in Resources */,
A74C8324229EB7150085A832 /* masking-path-13-f-manual.svg in Resources */,
A74C823E2297DB2C0085A832 /* shapes-rect-03-t-manual.reference in Resources */,
5BAE2047208E163D006BF277 /* viewBox.reference in Resources */,
5B1AE2C120B6A669007EECCB /* painting-stroke-04-t-manual.svg in Resources */,
5B1AE2BE20B6A669007EECCB /* painting-stroke-03-t-manual.svg in Resources */,
A74C82E3229E35D30085A832 /* pservers-grad-15-b-manual.svg in Resources */,
5B1AE2BB20B6A669007EECCB /* paths-data-04-t-manual.reference in Resources */,
5BAE2042208E163D006BF277 /* group.reference in Resources */,
5B1AE27020B6A669007EECCB /* shapes-line-01-t-manual.svg in Resources */,
Expand All @@ -1953,11 +2000,14 @@
5B1AE25E20B6A669007EECCB /* paths-data-17-f-manual.reference in Resources */,
5B1AE23F20B6A669007EECCB /* coords-trans-06-t-manual.svg in Resources */,
5B1AE23720B6A669007EECCB /* paths-data-16-t-manual.reference in Resources */,
A74C82F5229E369A0085A832 /* pservers-grad-22-b-manual.reference in Resources */,
5B1AE24120B6A669007EECCB /* coords-transformattr-04-f-manual.reference in Resources */,
5B1AE2D520B6A669007EECCB /* painting-stroke-02-t-manual.svg in Resources */,
A74C82F4229E369A0085A832 /* pservers-grad-13-b-manual.reference in Resources */,
5B1AE2A820B6A669007EECCB /* color-prop-03-t-manual.reference in Resources */,
5B1AE27620B6A669007EECCB /* render-elems-02-t-manual.svg in Resources */,
5B1AE28620B6A669007EECCB /* paths-data-10-t-manual.reference in Resources */,
A74C82E2229E35D30085A832 /* pservers-grad-24-f-manual.svg in Resources */,
5B1AE2D420B6A669007EECCB /* painting-stroke-05-t-manual.svg in Resources */,
5B1AE2CF20B6A669007EECCB /* paths-data-07-t-manual.reference in Resources */,
5B1AE28D20B6A669007EECCB /* shapes-circle-01-t-manual.reference in Resources */,
Expand Down Expand Up @@ -2026,6 +2076,7 @@
5B1AE29520B6A669007EECCB /* shapes-ellipse-03-f-manual.reference in Resources */,
5B1AE23820B6A669007EECCB /* color-prop-01-b-manual.svg in Resources */,
A74C822A2297D5350085A832 /* coords-trans-11-f-manual.reference in Resources */,
A74C82E6229E35D30085A832 /* pservers-grad-23-f-manual.svg in Resources */,
5B1AE24620B6A669007EECCB /* painting-control-01-f-manual.svg in Resources */,
5B1AE2B120B6A669007EECCB /* color-prop-03-t-manual.svg in Resources */,
A74C81EC229284790085A832 /* struct-use-01-t-manual.reference in Resources */,
Expand Down Expand Up @@ -2054,6 +2105,7 @@
5B1AE2C620B6A669007EECCB /* painting-fill-05-b-manual.reference in Resources */,
57CAB1331D7832E000FD8E47 /* polyline.svg in Resources */,
A74C822B2297D5350085A832 /* coords-trans-14-f-manual.reference in Resources */,
A74C82F2229E369A0085A832 /* pservers-grad-15-b-manual.reference in Resources */,
5B1AE2DE20B6A669007EECCB /* painting-control-03-f-manual.svg in Resources */,
5B1AE25520B6A669007EECCB /* paths-data-15-t-manual.reference in Resources */,
5B1AE24D20B6A669007EECCB /* paths-data-13-t-manual.svg in Resources */,
Expand Down Expand Up @@ -2085,6 +2137,8 @@
5B7E79C520CA7F1B00C50BCF /* pservers-grad-03-b-manual.reference in Resources */,
5B1AE24320B6A669007EECCB /* painting-stroke-07-t-manual.svg in Resources */,
5B1AE27B20B6A669007EECCB /* painting-fill-02-t-manual.svg in Resources */,
A74C82F1229E369A0085A832 /* pservers-grad-24-f-manual.reference in Resources */,
A74C82F0229E369A0085A832 /* pservers-grad-23-f-manual.reference in Resources */,
5B37139A20BE95D7004BB6EE /* pservers-grad-02-b-manual.svg in Resources */,
5B1AE27A20B6A669007EECCB /* coords-transformattr-01-f-manual.reference in Resources */,
5B1AE24C20B6A669007EECCB /* metadata-example-01-t-manual.reference in Resources */,
Expand All @@ -2100,6 +2154,7 @@
5B1AE2BF20B6A669007EECCB /* shapes-ellipse-02-t-manual.reference in Resources */,
5B1AE24220B6A669007EECCB /* coords-trans-06-t-manual.reference in Resources */,
5B1AE2A920B6A669007EECCB /* struct-frag-04-t-manual.svg in Resources */,
A74C82E7229E35D30085A832 /* pservers-grad-12-b-manual.svg in Resources */,
5B1AE25F20B6A669007EECCB /* coords-transformattr-05-f-manual.svg in Resources */,
57CAB1341D7832E000FD8E47 /* rect.svg in Resources */,
42D86F3C229E86300035DE11 /* README in Resources */,
Expand All @@ -2109,6 +2164,7 @@
5B1AE24020B6A669007EECCB /* coords-trans-01-b-manual.reference in Resources */,
5B1AE24B20B6A669007EECCB /* shapes-line-02-f-manual.svg in Resources */,
5B1AE2C920B6A669007EECCB /* paths-data-05-t-manual.svg in Resources */,
A74C82EF229E369A0085A832 /* pservers-grad-12-b-manual.reference in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
40 changes: 34 additions & 6 deletions MacawTests/MacawSVGTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,10 @@ class MacawSVGTests: XCTestCase {
func testPathsData10() {
validateJSON("paths-data-10-t-manual")
}

func testShapesGrammar01() {
validateJSON("shapes-grammar-01-f-manual")
}

func testPserversGrad01() {
validateJSON("pservers-grad-01-b-manual")
Expand All @@ -688,16 +692,40 @@ class MacawSVGTests: XCTestCase {
validateJSON("pservers-grad-02-b-manual")
}

func testPserversGrad03() {
validateJSON("pservers-grad-03-b-manual")
}

func testPserversGrad07() {
validateJSON("pservers-grad-07-b-manual")
}

func testShapesGrammar01() {
validateJSON("shapes-grammar-01-f-manual")
func testPserversGrad09() {
validateJSON("pservers-grad-09-b-manual")
}

func testPserversGrad03() {
validateJSON("pservers-grad-03-b-manual")

func testPserversGrad12() {
validateJSON("pservers-grad-12-b-manual")
}

func testPserversGrad13() {
validateJSON("pservers-grad-13-b-manual")
}

func testPserversGrad15() {
validateJSON("pservers-grad-15-b-manual")
}

func testPserversGrad22() {
validateJSON("pservers-grad-22-b-manual")
}

func testPserversGrad23() {
validateJSON("pservers-grad-23-f-manual")
}

func testPserversGrad24() {
validateJSON("pservers-grad-24-f-manual")
}

func testMaskingIntro01() {
Expand Down
Loading

0 comments on commit 9fd3924

Please sign in to comment.