summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA-Team <ateam@pad.test.qt.nokia.com>2010-11-06 23:00:11 (GMT)
committerA-Team <ateam@pad.test.qt.nokia.com>2010-11-06 23:00:11 (GMT)
commit146f97525ca49822bb684e1e4d9e62ff5484da36 (patch)
treea69f1e18652dbd5a6eb63df2f6395309c87b7af2
parent84de3d47a2fd5400920ad570b443b6bb95c8c766 (diff)
parent983bfa4a069b8bf51913be461c6a79c71fa18792 (diff)
downloadQt-146f97525ca49822bb684e1e4d9e62ff5484da36.zip
Qt-146f97525ca49822bb684e1e4d9e62ff5484da36.tar.gz
Qt-146f97525ca49822bb684e1e4d9e62ff5484da36.tar.bz2
Merge branch '4.7-upstream' into 4.7-doc
-rw-r--r--tests/auto/qtextedit/tst_qtextedit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qtextedit/tst_qtextedit.cpp b/tests/auto/qtextedit/tst_qtextedit.cpp
index 321aa22..d1832d8 100644
--- a/tests/auto/qtextedit/tst_qtextedit.cpp
+++ b/tests/auto/qtextedit/tst_qtextedit.cpp
@@ -2163,6 +2163,9 @@ void tst_QTextEdit::noWrapBackgrounds()
QTextEdit edit;
edit.setLineWrapMode(QTextEdit::NoWrap);
+ // hide the cursor in order to make the image comparison below reliable
+ edit.setCursorWidth(0);
+
QTextFrame *root = edit.document()->rootFrame();
QTextFrameFormat frameFormat = root->frameFormat();
frameFormat.setLeftMargin(2);
@@ -2178,8 +2181,6 @@ void tst_QTextEdit::noWrapBackgrounds()
layout->addWidget(&edit);
topLevel.show();
- QTest::qWait(1000);
-
QImage img = QPixmap::grabWidget(edit.viewport()).toImage();
QCOMPARE(img, img.mirrored(true, false));
}