diff options
Diffstat (limited to 'tests/auto/quick/qquickcanvasitem/data/tst_contextTypeStored.qml')
-rw-r--r-- | tests/auto/quick/qquickcanvasitem/data/tst_contextTypeStored.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickcanvasitem/data/tst_contextTypeStored.qml b/tests/auto/quick/qquickcanvasitem/data/tst_contextTypeStored.qml new file mode 100644 index 0000000000..ff859c0d4d --- /dev/null +++ b/tests/auto/quick/qquickcanvasitem/data/tst_contextTypeStored.qml @@ -0,0 +1,25 @@ + +import QtQuick 2.0 +import QtTest 1.1 + +Canvas { + id: canvas + width: 1 + height: 1 + contextType: "2d" + + property var contextInPaint + + onPaint: { + contextInPaint = context; + } + + TestCase { + name: "ContextTypeStored" + when: windowShown + + function test_contextType() { + compare(canvas.contextType, "2d"); + } + } +} |