summaryrefslogtreecommitdiff
path: root/tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2023-05-16 01:32:37 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2023-05-16 10:37:54 +0000
commitce626e5e919cabb32a7fa1be35025837196b8204 (patch)
treeb96320c45b1b2d460a37694977a4777169c30735 /tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist
parent4e8e1b2719b84a7371acafc311fc74b10ff36362 (diff)
downloadqbs-ce626e5e919cabb32a7fa1be35025837196b8204.tar.gz
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 <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist')
-rw-r--r--tests/auto/blackbox/testdata-apple/byteArrayInfoPlist/ByteArray-Info.plist11
1 files changed, 11 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>DataKey</key>
+ <!--The data value-->
+ <data>VGhlIGRhdGEgdmFsdWU=</data>
+ <key>StringKey</key>
+ <string>The string value</string>
+</dict>
+</plist>