aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/shadersource/tst_SourceItem.qml
blob: 18e685b9b8955da10333e3a9af80adc70d3c8151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQuick 2.0
import QtTest 1.1

Item {
    id: root

    Rectangle {
        id: box
        color: "red"
    }

    ShaderEffectSource {
        id: theSource
    }

    TestCase {
        name: "shadersource-something-to-null"
        function test_null() {
            theSource.sourceItem = box
            theSource.sourceItem = null
            verify(true); // that we got here without problems...
        }
    }
}