mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
Bug 781521 - Fix Message Manager blob test. r=Ms2ger
This commit is contained in:
parent
7acdfeb9a2
commit
fbf25c8433
@ -67,7 +67,10 @@
|
||||
|
||||
let mm = SpecialPowers.getBrowserFrameMessageManager(iframe);
|
||||
mm.addMessageListener("test:ipcClonedMessage", function(message) {
|
||||
is(message.json, messages[receivedMessageIndex++],
|
||||
// We need to wrap to access message.json, and unwrap to do the
|
||||
// identity check.
|
||||
is(SpecialPowers.unwrap(SpecialPowers.wrap(message).json),
|
||||
messages[receivedMessageIndex++],
|
||||
"Got correct round-tripped response");
|
||||
if (receivedMessageIndex == messages.length) {
|
||||
SimpleTest.finish();
|
||||
|
Loading…
Reference in New Issue
Block a user