diff options
author | Adam Cozzette <acozzette@google.com> | 2016-11-18 11:19:30 -0800 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2016-11-21 09:08:23 -0800 |
commit | 315350b2fa37201851ac298627e5547cfca64798 (patch) | |
tree | 01ebad4366802ebe7bf092c9fda7de719965ffe0 /js | |
parent | b4dd686ab484c7e8ab31b8624c4a70ae355fc614 (diff) | |
download | protobuf-315350b2fa37201851ac298627e5547cfca64798.tar.gz protobuf-315350b2fa37201851ac298627e5547cfca64798.tar.bz2 protobuf-315350b2fa37201851ac298627e5547cfca64798.zip |
Updated message_test.js so that it does not depend on fromObject
Diffstat (limited to 'js')
-rw-r--r-- | js/message_test.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/js/message_test.js b/js/message_test.js index 38ed1360..c029a04d 100644 --- a/js/message_test.js +++ b/js/message_test.js @@ -1049,13 +1049,7 @@ describe('Message test suite', function() { var nested = new proto.jspb.test.Deeply.Nested.Message(); nested.setCount(5); msg.setDeeplyNestedMessage(nested); - - // After a serialization-deserialization round trip we should get back the - // same data we started with. - var serialized = msg.toObject(); - var deserialized = - proto.jspb.test.ForeignNestedFieldMessage.fromObject(serialized); - assertEquals(5, deserialized.getDeeplyNestedMessage().getCount()); + assertEquals(5, msg.getDeeplyNestedMessage().getCount()); }); }); |