summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestSprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/test/TestSprite.cpp')
-rw-r--r--sigmod/test/TestSprite.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/sigmod/test/TestSprite.cpp b/sigmod/test/TestSprite.cpp
index 188f224b..d0bab0f9 100644
--- a/sigmod/test/TestSprite.cpp
+++ b/sigmod/test/TestSprite.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,20 +19,22 @@
#include "TestSprite.h"
// Sigmod includes
-#include "../Sigmod.h"
+#include "../Game.h"
#include "../Sprite.h"
// Qt includes
#include <QtCore/QFile>
#include <QtTest/QTest>
+using namespace Sigmod;
+
void TestSprite::initTestCase()
{
TestSigmodObject::initTestCase();
- m_sprite1 = m_sigmod->newSprite();
- m_sprite2 = m_sigmod->newSprite();
- m_sprite3 = m_sigmod->newSprite();
+ m_sprite1 = m_game->newSprite();
+ m_sprite2 = m_game->newSprite();
+ m_sprite3 = m_game->newSprite();
}
void TestSprite::cleanupTestCase()
@@ -80,7 +82,7 @@ void TestSprite::validation()
void TestSprite::saving()
{
- QDomDocument xml = Sigmod::Object::xml(m_sprite1);
+ QDomDocument xml = Object::xml(m_sprite1);
QFile file("sprite.xml");
QVERIFY(file.open(QIODevice::WriteOnly));