diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2016-09-20 13:56:18 -0700 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2016-09-20 13:56:18 -0700 |
commit | 679381fba8b44d79a1e69d3ba1f9275f623fa62e (patch) | |
tree | adefaa04730f25b84e34ae6085694a8b04f20cdb /js/test.proto | |
parent | a2c65011c337b9ce2b6516966545cd471e4426c3 (diff) | |
download | protobuf-679381fba8b44d79a1e69d3ba1f9275f623fa62e.tar.gz protobuf-679381fba8b44d79a1e69d3ba1f9275f623fa62e.tar.bz2 protobuf-679381fba8b44d79a1e69d3ba1f9275f623fa62e.zip |
Fix for maps_test.js in JavaScript. (#2145)
Had to strip out some JSPB-format test code,
but also added some .proto test messages that
had been improperly stripped out.
Diffstat (limited to 'js/test.proto')
-rw-r--r-- | js/test.proto | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/test.proto b/js/test.proto index 937ffb89..48cb37e1 100644 --- a/js/test.proto +++ b/js/test.proto @@ -234,3 +234,29 @@ message TestEndsWithBytes { optional bytes data = 2; } +message TestMapFieldsNoBinary { + map<string, string> map_string_string = 1; + map<string, int32> map_string_int32 = 2; + map<string, int64> map_string_int64 = 3; + map<string, bool> map_string_bool = 4; + map<string, double> map_string_double = 5; + map<string, MapValueEnumNoBinary> map_string_enum = 6; + map<string, MapValueMessageNoBinary> map_string_msg = 7; + + map<int32, string> map_int32_string = 8; + map<int64, string> map_int64_string = 9; + map<bool, string> map_bool_string = 10; + + optional TestMapFieldsNoBinary test_map_fields = 11; + map<string, TestMapFieldsNoBinary> map_string_testmapfields = 12; +} + +enum MapValueEnumNoBinary { + MAP_VALUE_FOO_NOBINARY = 0; + MAP_VALUE_BAR_NOBINARY = 1; + MAP_VALUE_BAZ_NOBINARY = 2; +} + +message MapValueMessageNoBinary { + optional int32 foo = 1; +} |