~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/ui/tests/kis_doc2_test.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "kis_undo_store.h"
27
27
#include "kis_factory2.h"
28
28
#include <KoDocumentEntry.h>
 
29
#include "kis_part2.h"
29
30
#include <KoMainWindow.h>
30
31
 
31
32
class KisCommandHistoryListenerFake : public KisCommandHistoryListener
87
88
 
88
89
void KisDoc2Test::testUndoRedoNotify()
89
90
{
90
 
    KisDoc2 doc;
 
91
    KisPart2 *p = new KisPart2();
 
92
    KisDoc2 doc(p);
 
93
    p->setDocument(&doc);
 
94
 
91
95
    doc.initEmpty();
92
96
 
93
97
    KUndo2Command *testCommand1 = new TestCommand();
159
163
 
160
164
    Q_ASSERT(!fname.isEmpty());
161
165
    Q_ASSERT(!fname2.isEmpty());
162
 
    KisDoc2 doc;
 
166
    KisPart2 *p = new KisPart2();
 
167
    KisDoc2 doc(p);
 
168
    p->setDocument(&doc);
 
169
 
163
170
    doc.loadNativeFormat(fname);
164
171
    doc.loadNativeFormat(fname2);
165
172
}