moved libmscore repeat test

This commit is contained in:
Igor Korsukov 2020-12-21 10:13:19 +02:00
parent a6433fa9d1
commit 1792166c3a
69 changed files with 5 additions and 20 deletions

View file

@ -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)

View file

@ -54,6 +54,7 @@ set(MODULE_TEST_SRC
${CMAKE_CURRENT_LIST_DIR}/tst_parts.cpp
${CMAKE_CURRENT_LIST_DIR}/tst_readwriteundoreset.cpp
${CMAKE_CURRENT_LIST_DIR}/tst_remove.cpp
# ${CMAKE_CURRENT_LIST_DIR}/tst_repeat.cpp fail
)
set(MODULE_TEST_LINK

View file

@ -10,13 +10,13 @@
// the file LICENCE.GPL
//=============================================================================
#include <QtTest/QtTest>
#include "mtest/testutils.h"
#include "testing/qtestsuite.h"
#include "testutils.h"
#include "libmscore/score.h"
#include "libmscore/measure.h"
#include "libmscore/repeatlist.h"
#define DIR QString("libmscore/repeat/")
static const QString REPEAT_DATA_DIR("repeat_data/");
using namespace Ms;
@ -142,7 +142,7 @@ void TestRepeat::initTestCase()
void TestRepeat::repeat(const char* f1, const QString& ref)
{
MasterScore* score = readScore(DIR + f1);
MasterScore* score = readScore(REPEAT_DATA_DIR + f1);
QVERIFY(score);
score->setExpandRepeats(true);
QStringList sl;