blob: d9f436e7887885ccb78f46d7c7101ba5ca275df2 [file] [log] [blame]
import QtQuick 2.7
import Test 1.0
MyArrayBufferTestClass {
property bool ok: false
onByteArraySignal: {
var view = new DataView(arg);
ok = arg instanceof ArrayBuffer
&& arg.byteLength == 2
&& view.getUint8(0) == 42
&& view.getUint8(1) == 43;
}
Component.onCompleted: emitByteArraySignal(42, 2)
}