Make shrink-wrapping test a ref-test instead of pixel-test
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jul 2015 06:38:40 +0000 (06:38 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jul 2015 06:38:40 +0000 (06:38 +0000)
commita4d6e821c4dd6166059924b7d3fe74e7ac4e150c
treeabbc4a4a1f2c2d1b1802aad89fa5015095973f6e
parent0b0959381848367b53c2a0965e79a2f31fc45ac4
Make shrink-wrapping test a ref-test instead of pixel-test
https://bugs.webkit.org/show_bug.cgi?id=147081

Reviewed by Sam Weinig.

Source/WebCore:

Nobody runs pixel tests.

* svg/SVGPathUtilities.cpp:
(WebCore::pathIteratorForBuildingString):
(WebCore::buildStringFromPath):
* svg/SVGPathUtilities.h:
Add a helper that turns a Path into a SVG path string.

* testing/Internals.cpp:
(WebCore::Internals::pathStringWithShrinkWrappedRects):
* testing/Internals.h:
* testing/Internals.idl:
Have the internals shrink-wrap method return an SVG path instead of a DOMPath.

LayoutTests:

* fast/shrink-wrap/rect-shrink-wrap-expected.html: Added.
* fast/shrink-wrap/rect-shrink-wrap-expected.png: Removed.
* fast/shrink-wrap/rect-shrink-wrap-expected.txt: Removed.
* fast/shrink-wrap/rect-shrink-wrap.html:
SVG all the things.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/shrink-wrap/rect-shrink-wrap-expected.html [new file with mode: 0644]
LayoutTests/fast/shrink-wrap/rect-shrink-wrap-expected.png [deleted file]
LayoutTests/fast/shrink-wrap/rect-shrink-wrap-expected.txt [deleted file]
LayoutTests/fast/shrink-wrap/rect-shrink-wrap.html
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGPathUtilities.cpp
Source/WebCore/svg/SVGPathUtilities.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl