Commit 04a06c9e authored by Eugene Ostroukhov's avatar Eugene Ostroukhov Committed by Commit Bot

[inspector] Make test byte order independent

Change-Id: If0fdc76170ad29b4d3dadddbb32bc87c307c04af
Reviewed-on: https://chromium-review.googlesource.com/881883Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Eugene Ostroukhov <eostroukhov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50817}
parent 95249bca
......@@ -54,33 +54,33 @@ Running test: testTypedArrayWithoutLength
Running test: testArrayBuffer
[[Int8Array]]
0 own number 1
1 own number 2
2 own number 3
3 own number 4
4 own number 5
5 own number 6
6 own number 7
7 own number 8
1 own number 1
2 own number 1
3 own number 1
4 own number 1
5 own number 1
6 own number 1
7 own number 1
__proto__ own object undefined
[[Uint8Array]]
0 own number 1
1 own number 2
2 own number 3
3 own number 4
4 own number 5
5 own number 6
6 own number 7
7 own number 8
1 own number 1
2 own number 1
3 own number 1
4 own number 1
5 own number 1
6 own number 1
7 own number 1
__proto__ own object undefined
[[Int16Array]]
0 own number 513
1 own number 1027
2 own number 1541
3 own number 2055
0 own number 257
1 own number 257
2 own number 257
3 own number 257
__proto__ own object undefined
[[Int32Array]]
0 own number 67305985
1 own number 134678021
0 own number 16843009
1 own number 16843009
__proto__ own object undefined
Running test: testArrayBufferWithBrokenUintCtor
......
......@@ -34,7 +34,7 @@ InspectorTest.runAsyncTestSuite([
},
async function testArrayBuffer() {
let objectId = await evaluateToObjectId('new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).buffer');
let objectId = await evaluateToObjectId('new Uint8Array([1, 1, 1, 1, 1, 1, 1, 1]).buffer');
let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true });
for (let prop of props.result.result) {
if (prop.name === '__proto__')
......@@ -49,7 +49,7 @@ InspectorTest.runAsyncTestSuite([
this.uint8array_old = this.Uint8Array;
this.Uint8Array = 42;
})()`);
await logExpressionProperties('new Int8Array([1, 2, 3, 4, 5, 6, 7]).buffer');
await logExpressionProperties('new Int8Array([1, 1, 1, 1, 1, 1, 1]).buffer');
await evaluateToObjectId(`(function() {
this.Uint8Array = this.uint8array_old;
delete this.uint8array_old;
......
Markdown is supported
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