summaryrefslogtreecommitdiff
path: root/test/UnitRenderShape.cpp
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-02-26 20:17:12 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-02-26 21:38:09 +0100
commit8265fab93f5b818a33edf5b952c0764be3b93a60 (patch)
tree2f1df2181eaadb024d042f87f6c6cad6217fefc9 /test/UnitRenderShape.cpp
parent6fdad3ba94ddbc35791b89da475d11446fea420f (diff)
test: remove redundant shape related C++ test.
This test case is covered by cypress tests. See shape_properties_spec.js. Those tests will fail if SVG rendering is broken. Change-Id: I1a3434f9696c6a323a23ded0b1b2816d74373c7a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89590 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'test/UnitRenderShape.cpp')
-rw-r--r--test/UnitRenderShape.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/UnitRenderShape.cpp b/test/UnitRenderShape.cpp
index b15e94358..9167ec5af 100644
--- a/test/UnitRenderShape.cpp
+++ b/test/UnitRenderShape.cpp
@@ -71,7 +71,6 @@ void stripDescriptions(std::vector<char>& svg)
class UnitRenderShape : public UnitWSD
{
TestResult testRenderShapeSelectionImpress();
- TestResult testRenderShapeSelectionWriter();
TestResult testRenderShapeSelectionWriterImage();
public:
@@ -121,39 +120,6 @@ UnitBase::TestResult UnitRenderShape::testRenderShapeSelectionImpress()
return TestResult::Ok;
}
-UnitBase::TestResult UnitRenderShape::testRenderShapeSelectionWriter()
-{
- const char* testname = "testRenderShapeSelectionWriter ";
- try
- {
- std::string documentPath, documentURL;
- helpers::getDocumentPathAndURL("shape.odt", documentPath, documentURL, testname);
-
- std::shared_ptr<LOOLWebSocket> socket = helpers::loadDocAndGetSocket(
- Poco::URI(helpers::getTestServerURI()), documentURL, testname);
-
- // Select the shape with SHIFT + F4
- helpers::sendKeyPress(socket, 0, 771 | helpers::SpecialKey::skShift, testname);
- std::this_thread::sleep_for(std::chrono::milliseconds(250));
- helpers::sendTextFrame(socket, "rendershapeselection mimetype=image/svg+xml", testname);
- std::vector<char> responseSVG
- = helpers::getResponseMessage(socket, "shapeselectioncontent:", testname);
- CPPUNIT_ASSERT(!responseSVG.empty());
- auto it = std::find(responseSVG.begin(), responseSVG.end(), '\n');
- if (it != responseSVG.end())
- responseSVG.erase(responseSVG.begin(), ++it);
-
- stripDescriptions(responseSVG);
-
- CPPUNIT_ASSERT(helpers::svgMatch(testname, responseSVG, "shapes_writer.svg"));
- }
- catch (const Poco::Exception& exc)
- {
- CPPUNIT_FAIL(exc.displayText());
- }
- return TestResult::Ok;
-}
-
UnitBase::TestResult UnitRenderShape::testRenderShapeSelectionWriterImage()
{
const char* testname = "testRenderShapeSelectionWriterImage ";
@@ -194,10 +160,6 @@ void UnitRenderShape::invokeTest()
if (result != TestResult::Ok)
exitTest(result);
- result = testRenderShapeSelectionWriter();
- if (result != TestResult::Ok)
- exitTest(result);
-
result = testRenderShapeSelectionWriterImage();
if (result != TestResult::Ok)
exitTest(result);