From ce626e5e919cabb32a7fa1be35025837196b8204 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Tue, 16 May 2023 01:32:37 +0300 Subject: js: represent QByteArray as JsArrayBuffer On macOS, Info.plist can (rarely) contain binary data which is parsed into a QByteArray. However, since byte arrays were discarded when converting from variant, such keys were lost e.g. when doing plist merging. Fix that by converting QByteArray to a JS ArrayBuffer object. Using such types is a bit awkward as seen in the testcase, but conforms JS type system. Change-Id: I7a680aa7943ba3bde1ddf4ac84e3485fb0ba01d8 Reviewed-by: Christian Kandeler --- .../testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist (limited to 'tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist') diff --git a/tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist b/tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist new file mode 100644 index 000000000..df0429f25 --- /dev/null +++ b/tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist @@ -0,0 +1,11 @@ + + + + + DataKey + + VGhlIGRhdGEgdmFsdWU= + StringKey + The string value + + -- cgit v1.2.1