aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/gifs/tst_gifs.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-12-04 15:51:00 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-09 12:52:41 +0000
commita64ace2171485156cd052d941dd34873b0a31520 (patch)
tree29eab980c74495e52f9e67d16dba1a571b3aa273 /tests/manual/gifs/tst_gifs.cpp
parent9d8a6e06fc06ed0adfed84385ab6357245a46a37 (diff)
Fix some issues with GifRecorder
- Try to ensure that the correct region is recorded. Sometimes, on specific machines, I've seen the region being offset by a vertical distance of 24 pixels (the size of the title bar). - Try to ensure that the window has time to render before we start recording with byzanz. Change-Id: Ia4c354ba436ed21af0e83303a98faa616be63325 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/manual/gifs/tst_gifs.cpp')
-rw-r--r--tests/manual/gifs/tst_gifs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/gifs/tst_gifs.cpp b/tests/manual/gifs/tst_gifs.cpp
index bd0cc61f..7f2a985c 100644
--- a/tests/manual/gifs/tst_gifs.cpp
+++ b/tests/manual/gifs/tst_gifs.cpp
@@ -165,7 +165,7 @@ void tst_Gifs::slider()
GifRecorder gifRecorder;
gifRecorder.setDataDirPath(dataDirPath);
gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
+ gifRecorder.setRecordingDuration(5);
gifRecorder.setHighQuality(true);
gifRecorder.setQmlFileName("qtlabscontrols-slider.qml");
@@ -202,7 +202,7 @@ void tst_Gifs::rangeSlider()
GifRecorder gifRecorder;
gifRecorder.setDataDirPath(dataDirPath);
gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
+ gifRecorder.setRecordingDuration(7);
gifRecorder.setHighQuality(true);
gifRecorder.setQmlFileName("qtlabscontrols-rangeslider.qml");