Fix tst_QTextEdit::fullWidthSelection2() for shadow build
authorKonstantin Ritt <ritt.ks@gmail.com>
Thu, 11 Oct 2012 01:00:11 +0000 (04:00 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 12 Oct 2012 05:44:34 +0000 (07:44 +0200)
Search for the test data files in the test data directory, not in the current dir.

Change-Id: I746e717bae575364102c1bb5c2888332d94c374f
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
tests/auto/widgets/widgets/qtextedit/tst_qtextedit.cpp

index 27369ad..cc718ea 100644 (file)
@@ -2038,7 +2038,7 @@ void tst_QTextEdit::fullWidthSelection2()
     selections.append(es);
     widget.setExtraSelections(selections);
 
-    compareWidgetAndImage(widget, "fullWidthSelection/nowrap_long.png");
+    compareWidgetAndImage(widget, m_fullWidthSelectionImagesFolder + "/nowrap_long.png");
 }
 #endif