Skip to content

Commit

Permalink
Adapt matrix decomposition in tests
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Schlitt <[email protected]>
  • Loading branch information
lukasrad02 and dasGoogle committed Jun 8, 2022
1 parent 3b8d795 commit 648ef20
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ atomTestCase
</g>
</svg>'
toBe:
'<svg stroke-width="2" version="1.1" viewBox="-52 -53 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="#00000000"><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#66899A"/><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#E1D85D" transform="matrix(0.4067366421222687,-0.9135454297065735,0.9135454297065735,0.4067366421222687,0.0,0.0)"/><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#80A3CF" transform="matrix(0.4067366421222687,0.9135454297065735,-0.9135454297065735,0.4067366421222687,0.0,0.0)"/><circle cx="0" cy="0" r="44" stroke="#4B541F"/></g><g fill="#66899A" stroke="#FFFFFF"><circle cx="0" cy="0" fill="#80A3CF" r="13"/><circle cx="0" cy="-44" r="9"/><circle cx="-40" cy="18" r="9"/><circle cx="40" cy="18" r="9"/></g></svg>'
'<svg stroke-width="2" version="1.1" viewBox="-52 -53 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="#00000000"><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#66899A"/><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#E1D85D" transform="rotate(-66)"/><ellipse cx="0" cy="0" rx="6" ry="44" stroke="#80A3CF" transform="rotate(66)"/><circle cx="0" cy="0" r="44" stroke="#4B541F"/></g><g fill="#66899A" stroke="#FFFFFF"><circle cx="0" cy="0" fill="#80A3CF" r="13"/><circle cx="0" cy="-44" r="9"/><circle cx="-40" cy="18" r="9"/><circle cx="40" cy="18" r="9"/></g></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ rotatedRectangleTestCase
<rect x="120" y="-40" width="30" height="40" stroke="red" fill="yellow" stroke-width="5" transform="rotate(45)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFF00" height="40" stroke="#FF0000" stroke-width="5" transform="matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.0,0.0)" width="30" x="120" y="-40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#FFFF00" height="40" stroke="#FF0000" stroke-width="5" transform="rotate(45)" width="30" x="120" y="-40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ transformRotatePointTestCase
<rect x="30" y="40" width="30" height="40" stroke="blue" fill="lime" stroke-width="5" transform="rotate(45 30 40)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,37.071067810058594,-9.497474670410156)" width="30" x="30" y="40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="translate(98.033,40.6066),rotate(45)" width="30" x="30" y="40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ transformScaleTestCase
<rect x="30" y="40" width="30" height="40" stroke="blue" fill="lime" stroke-width="5" transform="scale(2)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="matrix(2.0,0.0,0.0,2.0,0.0,0.0)" width="30" x="30" y="40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="scale(2,2)" width="30" x="30" y="40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ transformSkewXTestCase
<rect x="30" y="40" width="30" height="40" stroke="blue" fill="lime" stroke-width="5" transform="skewX(10)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="matrix(1.0,0.0,0.17632697522640228,1.0,0.0,0.0)" width="30" x="30" y="40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="rotate(-10),scale(0.98481,1.01543),skewY(9.70428)" width="30" x="30" y="40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ transformSkewYTestCase
<rect x="30" y="40" width="30" height="40" stroke="blue" fill="lime" stroke-width="5" transform="skewY(40)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="matrix(1.0,0.839099645614624,0.0,1.0,0.0,0.0)" width="30" x="30" y="40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="skewY(40)" width="30" x="30" y="40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ transformTranslateTestCase
<rect x="30" y="40" width="30" height="40" stroke="blue" fill="lime" stroke-width="5" transform="translate(-20 -30)"/>
</svg>'
toBe:
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="matrix(1.0,0.0,0.0,1.0,-20.0,-30.0)" width="30" x="30" y="40"/></svg>'
'<svg height="200" version="1.1" width="200" xmlns="http://www.w3.org/2000/svg"><rect fill="#00FF00" height="40" stroke="#0000FF" stroke-width="5" transform="translate(-20,-30)" width="30" x="30" y="40"/></svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"instance" : {
"assertExportOf:toBe:" : "aes 5/23/2022 10:59",
"assertTestCaseToBeCorrect:" : "aes 5/23/2022 11:27",
"atomTestCase" : "lra 5/28/2022 12:23",
"atomTestCase" : "lra 6/8/2022 18:49",
"circleTestCase" : "lra 5/28/2022 12:23",
"ellipseTestCase" : "lra 5/28/2022 12:23",
"groupOrderTestCase" : "lra 5/28/2022 12:24",
Expand All @@ -15,7 +15,7 @@
"polygonTestCase" : "lra 5/28/2022 12:24",
"polylineTestCase" : "lra 5/28/2022 12:24",
"rectangleTestCase" : "lra 5/28/2022 12:24",
"rotatedRectangleTestCase" : "lra 5/28/2022 12:25",
"rotatedRectangleTestCase" : "lra 6/8/2022 18:50",
"testExportAtom" : "aes 5/23/2022 16:07",
"testExportCircle" : "aes 5/23/2022 12:40",
"testExportEllipse" : "aes 5/23/2022 12:40",
Expand All @@ -39,11 +39,11 @@
"testExportViewBox" : "aes 5/23/2022 16:05",
"testSerializePolygonalPoints" : "aes 5/23/2022 10:49",
"textTestCase" : "lra 5/28/2022 12:25",
"transformRotatePointTestCase" : "lra 5/28/2022 12:25",
"transformScaleTestCase" : "lra 5/28/2022 12:25",
"transformSkewXTestCase" : "lra 5/28/2022 12:25",
"transformSkewYTestCase" : "lra 5/28/2022 12:25",
"transformTranslateTestCase" : "lra 5/28/2022 12:25",
"transformRotatePointTestCase" : "lra 6/8/2022 18:52",
"transformScaleTestCase" : "lra 6/8/2022 18:53",
"transformSkewXTestCase" : "lra 6/8/2022 18:58",
"transformSkewYTestCase" : "lra 6/8/2022 18:58",
"transformTranslateTestCase" : "lra 6/8/2022 18:59",
"tspanTestCase" : "lra 5/28/2022 12:25",
"viewBoxTestCase" : "aes 5/23/2022 16:06",
"widthHeightTestCase" : "aes 5/23/2022 12:42" } }

0 comments on commit 648ef20

Please sign in to comment.