Improve tst_qdeclarativetextedit.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 19 Dec 2012 12:47:10 +0000 (13:47 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 7 Jan 2013 10:31:06 +0000 (11:31 +0100)
commit9238c81f79545d549b7ad4c7c849076798213a90
tree7f9d31398bee57fa418da9eee194cf3107c38895
parenta58e0b397896bce698de928a7eba6d69fb8aa8ba
Improve tst_qdeclarativetextedit.

- Base on QDeclarativeDataTest to locate test data.
- Make small windows frameless to prevent errors from
  minimum size constraints of decorated windows on Windows.
- Add test messages printing the value of comparisons.
- Skip alignment tests if no reference image exists:

  Previously, the test would create an image file name
  "<testfile>-unknown-architecture", find out it does not
  exist, write out the 'actual' image under that name
  (clobbering the source directory) and compare to it,
  claiming success.

  The reference image name is now composed of platform and style
  name and the test is skipped if the file does not exist.

Task-number: QTBUG-28611
Change-Id: If1496e11db9638e7febd3af637ad55d7c6f11409
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp