summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-05-20 04:22:24 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-05-20 04:22:24 (GMT)
commitcae5ae70dab4272e5b7313ea101ce32eb6c22240 (patch)
tree2c9ab3f5165be42a90a1ac6f478bbc2be0579044
parentc37a7442d298ccec251b9178a31b1f0c8f199676 (diff)
downloadQt-cae5ae70dab4272e5b7313ea101ce32eb6c22240.zip
Qt-cae5ae70dab4272e5b7313ea101ce32eb6c22240.tar.gz
Qt-cae5ae70dab4272e5b7313ea101ce32eb6c22240.tar.bz2
Improve testcase
As the default was AllUppercase, the tests weren't actually testing anything other than that assigning enums had no errors
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/data/enums.5.qml10
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/testtypes.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/data/enums.5.qml b/tests/auto/declarative/qdeclarativevaluetypes/data/enums.5.qml
new file mode 100644
index 0000000..a66e9d6
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativevaluetypes/data/enums.5.qml
@@ -0,0 +1,10 @@
+import Test 1.0
+import Qt 4.7 as MyQt
+
+MyTypeObject {
+ MyQt.Component.onCompleted: {
+ font.capitalization = MyQt.Font.AllUppercase
+ }
+}
+
+
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h b/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h
index 1da9990..7ed3993 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h
+++ b/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h
@@ -99,7 +99,7 @@ public:
m_font.setOverline(true);
m_font.setStrikeOut(true);
m_font.setPointSize(29);
- m_font.setCapitalization(QFont::AllUppercase);
+ m_font.setCapitalization(QFont::AllLowercase);
m_font.setLetterSpacing(QFont::AbsoluteSpacing, 10.2);
m_font.setWordSpacing(19.7);
}