From 3c8379c993114282e0b3e9886d7ac7ec8611247c Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Sat, 5 Jun 2021 20:47:37 +0200 Subject: [PATCH] disable test for qt <5.14 --- .github/workflows/cd.yml | 2 +- src/tests/scriptengine_t.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2f1dbacd2c..694143c94b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -138,7 +138,7 @@ jobs: run: sudo apt-get update - name: Dependencies - run: sudo apt-get install qtbase5-dev qt5-default qt5-qmake libqt5svg5-dev libqt5qml5-dev qttools5-dev libqt5svg5-dev libpoppler-qt5-dev pkg-config zlib1g-dev + run: sudo apt-get install qtbase5-dev qt5-default qt5-qmake libqt5svg5-dev qtdeclarative5-dev qttools5-dev libqt5svg5-dev libpoppler-qt5-dev pkg-config zlib1g-dev - name: Configure run: qmake texstudio.pro CONFIG-=debug diff --git a/src/tests/scriptengine_t.cpp b/src/tests/scriptengine_t.cpp index f3504782a4..4dc172c910 100644 --- a/src/tests/scriptengine_t.cpp +++ b/src/tests/scriptengine_t.cpp @@ -124,7 +124,7 @@ void ScriptEngineTest::script_data(){ QTest::newRow("Search/Replace Test function replacing 2") << "editor.setText(\"Hallo1\\nHamlo2\\nHallo3\", false); editor.replace(/a./, \"g\", function(c){return \">\"+c.selectedText()+\"<\";}); " << "H>alamal=QT_VERSION_CHECK(5,14,0)) QTest::newRow("replaceSelectedText 1") << "editor.setText(\"Hallo1\\nHallo2\\nHallo3\", false); editor.setCursor(editor.document().cursor(1,2,1,4)); editor.addCursorMirror(editor.document().cursor(2,2,2,4)); editor.replaceSelectedText('xYz'); " << "Hallo1\nHaxYzo2\nHaxYzo3"; @@ -136,6 +136,7 @@ void ScriptEngineTest::script_data(){ QTest::newRow("replaceSelectedText 3") << "editor.setText(\"Hallo1\\nHallo2\\nHallo3\", false); editor.setCursor(editor.document().cursor(1,2,1,4)); editor.addCursorMirror(editor.document().cursor(2,2,2,4)); editor.replaceSelectedText('x%z', {'macro': true}); " << "Hallo1\nHaxllzo2\nHaxllzo3"; +#endif } void ScriptEngineTest::script(){ QFETCH(QString, script);