moved libmscore repeat test
This commit is contained in:
parent
a6433fa9d1
commit
1792166c3a
69 changed files with 5 additions and 20 deletions
|
@ -1,16 +0,0 @@
|
||||||
#=============================================================================
|
|
||||||
# MuseScore
|
|
||||||
# Music Composition & Notation
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Werner Schweer
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License version 2
|
|
||||||
# as published by the Free Software Foundation and appearing in
|
|
||||||
# the file LICENSE.GPL
|
|
||||||
#=============================================================================
|
|
||||||
|
|
||||||
set(TARGET tst_repeat)
|
|
||||||
|
|
||||||
include(${PROJECT_SOURCE_DIR}/mtest/cmake.inc)
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ set(MODULE_TEST_SRC
|
||||||
${CMAKE_CURRENT_LIST_DIR}/tst_parts.cpp
|
${CMAKE_CURRENT_LIST_DIR}/tst_parts.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/tst_readwriteundoreset.cpp
|
${CMAKE_CURRENT_LIST_DIR}/tst_readwriteundoreset.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/tst_remove.cpp
|
${CMAKE_CURRENT_LIST_DIR}/tst_remove.cpp
|
||||||
|
# ${CMAKE_CURRENT_LIST_DIR}/tst_repeat.cpp fail
|
||||||
)
|
)
|
||||||
|
|
||||||
set(MODULE_TEST_LINK
|
set(MODULE_TEST_LINK
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
// the file LICENCE.GPL
|
// the file LICENCE.GPL
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
#include "testing/qtestsuite.h"
|
||||||
#include "mtest/testutils.h"
|
#include "testutils.h"
|
||||||
#include "libmscore/score.h"
|
#include "libmscore/score.h"
|
||||||
#include "libmscore/measure.h"
|
#include "libmscore/measure.h"
|
||||||
#include "libmscore/repeatlist.h"
|
#include "libmscore/repeatlist.h"
|
||||||
|
|
||||||
#define DIR QString("libmscore/repeat/")
|
static const QString REPEAT_DATA_DIR("repeat_data/");
|
||||||
|
|
||||||
using namespace Ms;
|
using namespace Ms;
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ void TestRepeat::initTestCase()
|
||||||
|
|
||||||
void TestRepeat::repeat(const char* f1, const QString& ref)
|
void TestRepeat::repeat(const char* f1, const QString& ref)
|
||||||
{
|
{
|
||||||
MasterScore* score = readScore(DIR + f1);
|
MasterScore* score = readScore(REPEAT_DATA_DIR + f1);
|
||||||
QVERIFY(score);
|
QVERIFY(score);
|
||||||
score->setExpandRepeats(true);
|
score->setExpandRepeats(true);
|
||||||
QStringList sl;
|
QStringList sl;
|
Loading…
Reference in a new issue