summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/TEST_GUIDELINES
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2010-11-19 10:21:30 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2010-11-19 10:21:30 (GMT)
commitab13e9c099a505a821caaccc6ae252388e676083 (patch)
tree503fe8c32d30c0e408defc0d7c54d47eeb2d6cc0 /tests/auto/declarative/qmlvisual/TEST_GUIDELINES
parent4258dd04e25c8831be9e8a7dc45b52d34782cb35 (diff)
parent72378ce571bcb88d0519a1b02d0e543b5237d613 (diff)
downloadQt-ab13e9c099a505a821caaccc6ae252388e676083.zip
Qt-ab13e9c099a505a821caaccc6ae252388e676083.tar.gz
Qt-ab13e9c099a505a821caaccc6ae252388e676083.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-water-team into 4.7
Diffstat (limited to 'tests/auto/declarative/qmlvisual/TEST_GUIDELINES')
-rw-r--r--tests/auto/declarative/qmlvisual/TEST_GUIDELINES7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/TEST_GUIDELINES b/tests/auto/declarative/qmlvisual/TEST_GUIDELINES
new file mode 100644
index 0000000..cb53b6e
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/TEST_GUIDELINES
@@ -0,0 +1,7 @@
+Guidelines for creating new visual tests:
+
+1. Keep it small. All visual tests should be able to run on a device with a screen of at least 640x360 pixels. Smaller than that is even better, because images of this side need to be processed and saved for every test (and even committed to the repository).
+
+2. Keep it short. It is hoped that these tests can be run regularly, perhaps even for every commit, and if you add up ten seconds for every time someone commits a change to QML then we'll be sitting here for a long time. Completeness is more important than haste, but consider the most time efficient ways to achieve said completeness. Do not forget about snapshot mode (tst_qmlvisual -help for details on -recordsnapshot) when testing that a static scene looks right.
+
+3. Avoid text. Text is relatively unstable due to platform specific peculiarities. If you need to identify an area, consider a unique color as opposed to a unique text label. If you must use Text, TextEdit, or TextInput, use the test-friendlier versions in the 'shared' directory.