Skip to content

Commit

Permalink
Added back in binary serialization round-trip in message_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
acozzette committed Nov 21, 2016
1 parent 40f3586 commit fda876a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/message_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,13 @@ describe('Message test suite', function() {
nested.setCount(5);
msg.setDeeplyNestedMessage(nested);
assertEquals(5, msg.getDeeplyNestedMessage().getCount());

// After a serialization-deserialization round trip we should get back the
// same data we started with.
var serialized = msg.serializeBinary();
var deserialized =
proto.jspb.test.ForeignNestedFieldMessage.deserializeBinary(serialized);
assertEquals(5, deserialized.getDeeplyNestedMessage().getCount());
});

});

0 comments on commit fda876a

Please sign in to comment.