Fix phantomjs tests
phantom and some other browsers check whether a TypedArray has equivalent data outside of the "view" area and fail deep equality tests when there is a difference.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -309,7 +309,7 @@ | ... | @@ -309,7 +309,7 @@ |
309 | equal(events[0].frames.length, 1, 'parsed a frame'); | 309 | equal(events[0].frames.length, 1, 'parsed a frame'); |
310 | equal(events[0].frames[0].id, 'PRIV', 'frame id is PRIV'); | 310 | equal(events[0].frames[0].id, 'PRIV', 'frame id is PRIV'); |
311 | equal(events[0].frames[0].owner, 'priv-owner@example.com', 'parsed the owner'); | 311 | equal(events[0].frames[0].owner, 'priv-owner@example.com', 'parsed the owner'); |
312 | deepEqual(events[0].frames[0].privateData, | 312 | deepEqual(new Uint8Array(events[0].frames[0].privateData), |
313 | new Uint8Array(payload), | 313 | new Uint8Array(payload), |
314 | 'parsed the frame private data'); | 314 | 'parsed the frame private data'); |
315 | 315 | ... | ... |
-
Please register or sign in to post a comment