Commit 1bd6cd0e authored by Volker Krause's avatar Volker Krause
Browse files

Don't attempt to dump raw binary in the script engine test

Qt6 can actually handle this correctly, Qt5 chokes on null bytes. Instead
just note we got binary data, that's good enough for this test.
parent 109faea9
Pipeline #182620 failed with stage
in 30 minutes and 18 seconds
......@@ -17,6 +17,16 @@ function dumpValue(value, depth)
if (depth == 0) {
return "[...]";
}
if (value instanceof ArrayBuffer) {
const view = new DataView(value);
for (let i = 0; i < view.byteLength; ++i) {
const c = view.getUInt8(i);
if (c < 0x20 && c != 0x0A && c != 0x0D) {
return "<binary: " + view.byteLength + " bytes>";
}
}
return value;
}
if (value.length != undefined) {
var arr = new Array();
for (var i = 0; i < value.length; ++i) {
......
......@@ -12,7 +12,7 @@
"name": ""
},
"pnr": "9E8DXL",
"rawData": "#UT010080000020,\u0002\u0014\u001a绥\u0005��\u001e\r\bh�p���;�\u001bb\u0002\u0014i�ӈ|\u0003W������������\u001f",
"rawData": "<binary: 442 bytes>",
"seatingType": "2"
}
},
......@@ -31,7 +31,7 @@
"name": ""
},
"pnr": "9E8DXL",
"rawData": "#UT010080000020,\u0002\u0014\u001a绥\u0005��\u001e\r\bh�p���;�\u001bb\u0002\u0014i�ӈ|\u0003W������������\u001f",
"rawData": "<binary: 442 bytes>",
"seatingType": "2"
},
"contextDateTime": "Fri Feb 17 15:18:00 2012 GMT+0100",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment