Bug 781521 - Fix Message Manager blob test. r=Ms2ger

This commit is contained in:
Bobby Holley 2012-08-14 20:54:33 -07:00
parent 7acdfeb9a2
commit fbf25c8433

View File

@ -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();