aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/arraybuffer_property_set.qml
blob: e8a51273caffcc3cbe78686dda899113bf384baf (plain)
1
2
3
4
5
6
7
8
9
10
11
import QtQuick 2.7
import Test 1.0

MyArrayBufferTestClass {
    property bool ok: false
    onByteArraySignal: ok = byteArrayProperty instanceof ArrayBuffer
    Component.onCompleted: {
        byteArrayProperty = new ArrayBuffer(42);
        ok = byteArrayProperty instanceof ArrayBuffer && byteArrayProperty.byteLength == 42;
    }
}