Skip to content

Commit

Permalink
disable test for qt <5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Jun 5, 2021
1 parent 1edf52f commit 3c8379c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/tests/scriptengine_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>al<lo1\nH>am<lo2\nH>al<lo3";

#if (QT_VERSION>=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";
Expand All @@ -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%<Y%>z', {'macro': true}); "
<< "Hallo1\nHaxllzo2\nHaxllzo3";
#endif
}
void ScriptEngineTest::script(){
QFETCH(QString, script);
Expand Down

0 comments on commit 3c8379c

Please sign in to comment.