Kaydet (Commit) dc3959ce authored tarafından Varun Dhall's avatar Varun Dhall Kaydeden (comit) Michael Stahl

Added Test for checking new Writer document modified state

Change-Id: I2dfc80c05a982038bf374eae975fac8294bf4dc8
Reviewed-on: https://gerrit.libreoffice.org/19879Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst f115b0cf
......@@ -56,6 +56,7 @@
#include <ftnidx.hxx>
#include <txtftn.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentState.hxx>
#include <unofldmid.h>
#include "UndoManager.hxx"
#include <textsh.hxx>
......@@ -141,6 +142,7 @@ public:
void testUnoParagraph();
void testTdf60967();
void testSearchWithTransliterate();
void testNewDocModifiedState();
void testTdf77342();
void testTdf74230();
void testTdf74363();
......@@ -219,6 +221,7 @@ public:
CPPUNIT_TEST(testUnoParagraph);
CPPUNIT_TEST(testTdf60967);
CPPUNIT_TEST(testSearchWithTransliterate);
CPPUNIT_TEST(testNewDocModifiedState);
CPPUNIT_TEST(testTdf77342);
CPPUNIT_TEST(testTdf74230);
CPPUNIT_TEST(testTdf74363);
......@@ -1726,6 +1729,16 @@ void SwUiWriterTest::testSearchWithTransliterate()
CPPUNIT_ASSERT_EQUAL(1,(int)case2);
}
void SwUiWriterTest::testNewDocModifiedState()
{
//creating a new doc
SwDoc* pDoc = new SwDoc();
//getting the state of the document via IDocumentState
IDocumentState& rState(pDoc->getIDocumentState());
//the state should not be modified, no modifications yet
CPPUNIT_ASSERT(!(rState.IsModified()));
}
void SwUiWriterTest::testTdf77342()
{
SwDoc* pDoc = createDoc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment