summaryrefslogtreecommitdiff
path: root/test/UnitRenderShape.cpp
diff options
context:
space:
mode:
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);