blob: c615ea3073f1a623382b692f463941e8b19cf8e8 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
import QtQuick.Window 2.0
import QtTest 1.1
Item {
width: 100
height: 100
Rectangle {
id: box
color: "red"
}
Window {
id: childWindow
width: 100
height: 100
property bool rendered: false;
visible: true
onFrameSwapped: rendered = true;
ShaderEffectSource {
id: theSource
sourceItem: box
}
ShaderEffect {
property variant source: theSource;
anchors.fill: parent
}
}
TestCase {
name: "shadersource-from-other-window"
when: childWindow.rendered
function test_endresult() {
verify(true); // that we got here without problems...
}
}
}
|