• Home
  • Raw
  • Download

Lines Matching refs:proto

86     var empty1 = new proto.jspb.test.Empty([]);
87 var empty2 = new proto.jspb.test.Empty([]);
93 var response = new proto.jspb.test.EnumContainer([]);
94 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO);
95 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum());
99 var data = new proto.jspb.test.DefaultValues([]);
107 var foo = new proto.jspb.test.Complex(data1);
108 var bar = new proto.jspb.test.Complex(data2);
140 var foo = new proto.jspb.test.Complex([
143 var bar = new proto.jspb.test.Complex([
163 var msg = new proto.jspb.test.OuterMessage.Complex();
171 new proto.jspb.test.SpecialCases(['normal', 'default', 'function',
184 var response = new proto.jspb.test.DefaultValues();
199 response = new proto.jspb.test.DefaultValues();
208 return new proto.jspb.test.DefaultValues(values);
274 var foo = new proto.jspb.test.OptionalFields(data);
297 var p1 = new proto.jspb.test.HasExtensions(['hi', 'diff', {}]);
298 var p2 = new proto.jspb.test.HasExtensions(['hi', 'what',
309 var s1 = new proto.jspb.test.Simple1(['hi']);
310 assertTrue(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['hi'])));
311 assertFalse(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['bye'])));
312 var s1b = new proto.jspb.test.Simple1(['hi', ['hello']]);
314 new proto.jspb.test.Simple1(['hi', ['hello']])));
316 new proto.jspb.test.Simple1(['hi', ['hello', undefined,
319 new proto.jspb.test.Simple1(['no', ['hello']])));
321 var s2 = new proto.jspb.test.Simple2(['hi']);
326 var s1 = new proto.jspb.test.Simple1(['hi', [], null]);
328 new proto.jspb.test.Simple1(['hi', []])));
330 var s1b = new proto.jspb.test.Simple1(['hi', [], true]);
332 new proto.jspb.test.Simple1(['hi', [], 1])));
340 var c1a = new proto.jspb.test.Complex(data1);
341 var c1b = new proto.jspb.test.Complex(data1);
342 var c2 = new proto.jspb.test.Complex(data2);
343 var c3 = new proto.jspb.test.Complex(data3);
344 var s1 = new proto.jspb.test.Simple1(data4);
354 new proto.jspb.test.HasExtensions([]),
355 new proto.jspb.test.HasExtensions([{}])
358 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
359 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])
362 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
363 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'b'}]}])
366 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
367 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])
370 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
371 new proto.jspb.test.HasExtensions([,,, {100: [{200: 'a'}]}])
374 new proto.jspb.test.HasExtensions([,,, {100: [{200: 'a'}]}]),
375 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])
378 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
379 new proto.jspb.test.HasExtensions(['hi',,, {100: [{200: 'a'}]}])
382 new proto.jspb.test.HasExtensions(['hi',,, {100: [{200: 'a'}]}]),
383 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])
408 var p1 = new proto.jspb.test.Simple1(['k', ['v']]);
409 var p2 = new proto.jspb.test.Simple1(['k1', ['v1', 'v2']]);
411 proto.jspb.test.Simple1.prototype.getAString,
412 proto.jspb.test.Simple1.prototype.toObject);
416 proto.jspb.test.Simple1.prototype.getAString);
424 var original = new proto.jspb.test.TestClone();
426 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
427 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
428 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
433 var extension = new proto.jspb.test.CloneExtension();
435 original.setExtension(proto.jspb.test.IsExtension.extField, extension);
441 var simple4 = new proto.jspb.test.Simple1(['a1', ['b1', 'c1']]);
442 var simple5 = new proto.jspb.test.Simple1(['a2', ['b2', 'c2']]);
443 var simple6 = new proto.jspb.test.Simple1(['a3', ['b3', 'c3']]);
452 var newExtension = new proto.jspb.test.CloneExtension();
454 clone.setExtension(proto.jspb.test.CloneExtension.extField, newExtension);
466 var original = new proto.jspb.test.TestClone();
468 var dest = new proto.jspb.test.TestClone();
470 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
471 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
472 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
473 var destSimple1 = new proto.jspb.test.Simple1(['ox1', ['oy1', 'oz1']]);
474 var destSimple2 = new proto.jspb.test.Simple1(['ox2', ['oy2', 'oz2']]);
475 var destSimple3 = new proto.jspb.test.Simple1(['ox3', ['oy3', 'oz3']]);
484 var extension = new proto.jspb.test.CloneExtension();
486 original.setExtension(proto.jspb.test.CloneExtension.extField, extension);
492 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
505 dest.getExtension(proto.jspb.test.CloneExtension.extField).
508 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
510 proto.jspb.test.CloneExtension.extField).getExt());
514 var a = new proto.jspb.test.TestClone();
515 var b = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
524 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
525 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
526 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
527 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
528 extendable.setExtension(proto.jspb.test.IndirectExtension.simple,
530 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
531 extendable.setExtension(proto.jspb.test.IndirectExtension.repeatedStrList,
533 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
534 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2']]);
536 proto.jspb.test.IndirectExtension.repeatedSimpleList,
539 extendable.getExtension(proto.jspb.test.IsExtension.extField));
541 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
543 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
545 proto.jspb.test.IndirectExtension.repeatedStrList));
547 proto.jspb.test.IndirectExtension.repeatedSimpleList));
549 extendable.setExtension(proto.jspb.test.IndirectExtension.simple, null);
551 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
552 extendable.setExtension(proto.jspb.test.IndirectExtension.str, null);
553 assertNull(extendable.getExtension(proto.jspb.test.IndirectExtension.str));
557 assertUndefined(proto.jspb.test.IndirectExtension['ignored']);
558 assertUndefined(proto.jspb.test.HasExtensions['ignoredFloating']);
563 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
564 var extension = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
565 extendable.setExtension(proto.jspb.test.simple1, extension);
567 extendable.getExtension(proto.jspb.test.simple1));
570 extension = new proto.jspb.test.ExtensionMessage(['s1']);
571 extendable = new proto.jspb.test.TestExtensionsMessage([16]);
572 extendable.setExtension(proto.jspb.test.floatingMsgField, extension);
573 extendable.setExtension(proto.jspb.test.floatingStrField, 's2');
575 extendable.getExtension(proto.jspb.test.floatingMsgField));
577 extendable.getExtension(proto.jspb.test.floatingStrField));
578 assertNotUndefined(proto.jspb.exttest.floatingMsgField);
579 assertNotUndefined(proto.jspb.exttest.floatingMsgFieldTwo);
580 assertNotUndefined(proto.jspb.exttest.beta.floatingStrField);
584 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
585 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2'], true]);
586 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
587 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
588 extendable.setExtension(proto.jspb.test.IndirectExtension.simple,
590 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
591 extendable.setExtension(proto.jspb.test.IndirectExtension.repeatedStrList,
593 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2'], true]);
594 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2'], false]);
596 proto.jspb.test.IndirectExtension.repeatedSimpleList,
618 extendable.getExtension(proto.jspb.test.IsExtension.extField)
625 extendable.getExtension(proto.jspb.test.IndirectExtension.simple)
645 var msg = new proto.jspb.test.HasExtensions([]);
650 var msg = new proto.jspb.test.Empty([{1: 'hi'}]);
656 var msg = new proto.jspb.test.Empty([1, {4: 'hi'}]);
662 var msg = new proto.jspb.test.Empty([1, 2, 3, {1: 'hi'}]);
669 new proto.jspb.test.HasExtensions(['str1', {'a_key': 'an_object'}]);
674 var data = new proto.jspb.test.HasExtensions(['str1', {100: ['ext1']}]);
681 var data = new proto.jspb.test.HasExtensions(['str1', {100: ['ext1']}]);
683 var extension = data.getExtension(proto.jspb.test.IsExtension.extField);
689 var data = new proto.jspb.test.HasExtensions();
690 var extensionMessage = new proto.jspb.test.IsExtension(['is_extension']);
691 data.setExtension(proto.jspb.test.IsExtension.extField, extensionMessage);
694 data.getExtension(proto.jspb.test.IsExtension.extField));
703 var group = new proto.jspb.test.TestGroup();
704 var someGroup = new proto.jspb.test.TestGroup.RepeatedGroup();
721 var group1 = new proto.jspb.test.TestGroup1();
728 var message = new proto.jspb.test.Complex(data);
733 var message = new proto.jspb.test.TestReservedNames();
735 message.setExtension(proto.jspb.test.TestReservedNamesExtension.foo, 12);
738 proto.jspb.test.TestReservedNamesExtension.foo));
743 var message = new proto.jspb.test.TestMessageWithOneof([]);
745 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
749 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.
755 var message = new proto.jspb.test.TestMessageWithOneof([,, 'x']);
760 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
765 var message = new proto.jspb.test.TestMessageWithOneof([,, 'x',, 'y']);
770 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PTHREE,
775 var message = new proto.jspb.test.TestMessageWithOneof;
795 var other = new proto.jspb.test.TestMessageWithOneof;
796 var message = new proto.jspb.test.TestMessageWithOneof;
820 var message = new proto.jspb.test.TestMessageWithOneof;
822 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
828 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
833 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
839 var message = new proto.jspb.test.TestMessageWithOneof;
843 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase
851 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.AONE,
858 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
865 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase
871 var message = new proto.jspb.test.TestMessageWithOneof;
877 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase
887 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BONE,
896 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
905 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase
912 new proto.jspb.test.TestMessageWithOneof(new Array(9).concat(567));
916 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.AONE,
920 new proto.jspb.test.TestMessageWithOneof(new Array(10).concat(890));
924 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
928 new proto.jspb.test.TestMessageWithOneof(new Array(9).concat(567, 890));
932 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
941 new proto.jspb.test.TestMessageWithOneof(new Array(11).concat(567));
945 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BONE,
949 new proto.jspb.test.TestMessageWithOneof(new Array(12).concat(890));
953 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
956 message = new proto.jspb.test.TestMessageWithOneof(
961 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
966 var message = new proto.jspb.test.TestMessageWithOneof;
968 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.
972 var other = new proto.jspb.test.TestMessageWithOneof;
977 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.RONE,
984 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.RTWO,
990 var message = new proto.jspb.test.TestMessageWithOneof;
995 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
1004 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PTHREE,
1016 var message = new proto.jspb.test.FloatingPointFields([