~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/core/document/tests/bytearraydocumenttest.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <QtCore/QByteArray>
33
33
 
34
34
 
35
 
namespace Kasten1
 
35
namespace Kasten2
36
36
{
37
37
 
38
38
static const char Title[] = "title";
43
43
    ByteArrayDocument* document = new ByteArrayDocument(QLatin1String("New created for test."));
44
44
 
45
45
    QVERIFY( document != 0 );
46
 
    QCOMPARE( document->localSyncState(), Kasten1::LocalInSync );
 
46
    QCOMPARE( document->contentFlags(), Kasten2::ContentStateNormal );
47
47
 
48
48
    Okteta::PieceTableByteArrayModel *byteArray = qobject_cast<Okteta::PieceTableByteArrayModel*>( document->content() );
49
49
    QVERIFY( byteArray != 0 );
72
72
 
73
73
}
74
74
 
75
 
QTEST_MAIN( Kasten1::ByteArrayDocumentTest )
 
75
QTEST_MAIN( Kasten2::ByteArrayDocumentTest )