[texstudio] Fixed the testcase patch
hannes
hannes at fedoraproject.org
Thu Feb 16 20:52:15 UTC 2012
commit c6ae6f0800461daaeafa5de8468d727a70fe9ae1
Author: hannes <hannes at fedoraproject.org>
Date: Thu Feb 16 20:52:29 2012 +0000
Fixed the testcase patch
texstudio-2.3-testcase.patch | 44 +++++++++++++++++++++++++++--------------
1 files changed, 29 insertions(+), 15 deletions(-)
---
diff --git a/texstudio-2.3-testcase.patch b/texstudio-2.3-testcase.patch
index da87fd3..2acc17e 100644
--- a/texstudio-2.3-testcase.patch
+++ b/texstudio-2.3-testcase.patch
@@ -1,15 +1,29 @@
---- a/tests/qsearchreplacepanel_t.cpp 2012/01/23 01:30:39 2413
-+++ b/tests/qsearchreplacepanel_t.cpp 2012/02/15 21:59:09 2551
-@@ -213,9 +213,9 @@
- widget->cFind->lineEdit()->cursorForward(false,search.length());
- QTest::keyClick(widget->cFind->lineEdit(),search[search.length()-1].toLatin1());
- }
-- QDocumentCursor s=ed->cursor().selectionStart();
-- QEQUAL2(s.lineNumber(), cy, search+" "+ed->cursor().selectedText()+" "+QString::number(loop));
-- QEQUAL2(s.columnNumber(), cx, search+" "+ed->cursor().selectedText());
-+ QDocumentCursor c=ed->cursor().selectionStart();
-+ QEQUAL2(c.lineNumber(), cy, search+" "+ed->cursor().selectedText()+" "+QString::number(loop));
-+ QEQUAL2(c.columnNumber(), cx, search+" "+ed->cursor().selectedText());
- QEQUAL2(ed->cursor().selectedText(), res, search+" "+ed->cursor().selectedText());
- //searching shouldn't change highlighted selection
- QCEMULTIEQUAL(getHighlightedSelection(ed), panel->getSearchScope(), ed->document()->cursor(scopey1,scopex1,scopey2,scopex2));
+From cb478565396b325a0860747a3c9c90789b13aea1 Mon Sep 17 00:00:00 2001
+From: hannes <hannes at fedoraproject.org>
+Date: Thu, 16 Feb 2012 20:49:50 +0000
+Subject: [PATCH] Fix the testcase build failure
+
+---
+ tests/qsearchreplacepanel_t.cpp | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/qsearchreplacepanel_t.cpp b/tests/qsearchreplacepanel_t.cpp
+index e043f8b..22d6013 100644
+--- a/tests/qsearchreplacepanel_t.cpp
++++ b/tests/qsearchreplacepanel_t.cpp
+@@ -213,9 +213,9 @@ void QSearchReplacePanelTest::incrementalsearch(){
+ widget->cFind->lineEdit()->cursorForward(false,search.length());
+ QTest::keyClick(widget->cFind->lineEdit(),search[search.length()-1].toLatin1());
+ }
+- QDocumentCursor s=ed->cursor().selectionStart();
+- QEQUAL2(s.lineNumber(), cy, search+" "+ed->cursor().selectedText()+" "+QString::number(loop));
+- QEQUAL2(s.columnNumber(), cx, search+" "+ed->cursor().selectedText());
++ QDocumentCursor c=ed->cursor().selectionStart();
++ QEQUAL2(c.lineNumber(), cy, search+" "+ed->cursor().selectedText()+" "+QString::number(loop));
++ QEQUAL2(c.columnNumber(), cx, search+" "+ed->cursor().selectedText());
+ QEQUAL2(ed->cursor().selectedText(), res, search+" "+ed->cursor().selectedText());
+ //searching shouldn't change highlighted selection
+ QCEMULTIEQUAL(getHighlightedSelection(ed), panel->getSearchScope(), ed->document()->cursor(scopey1,scopex1,scopey2,scopex2));
+--
+1.7.7.6
+
More information about the scm-commits
mailing list