• Home
  • Raw
  • Download

Lines Matching refs:jspb

84     var empty1 = new proto.jspb.test.Empty([]);
85 var empty2 = new proto.jspb.test.Empty([]);
91 var response = new proto.jspb.test.EnumContainer([]);
92 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO);
93 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum());
97 var data = new proto.jspb.test.DefaultValues([]);
105 var foo = new proto.jspb.test.Complex(data1);
106 var bar = new proto.jspb.test.Complex(data2);
138 var foo = new proto.jspb.test.Complex([
141 var bar = new proto.jspb.test.Complex([
161 var msg = new proto.jspb.test.OuterMessage.Complex();
169 new proto.jspb.test.SpecialCases(['normal', 'default', 'function',
182 var response = new proto.jspb.test.DefaultValues();
197 response = new proto.jspb.test.DefaultValues();
206 return new proto.jspb.test.DefaultValues(values);
253 assertEquals(jspb.Message.registry_['res'], proto.jspb.test.SomeResponse);
261 var foo = new proto.jspb.test.OptionalFields(data);
283 foo = new proto.jspb.test.OptionalFields(data);
299 foo = new proto.jspb.test.OptionalFields(data);
316 var p1 = new proto.jspb.test.HasExtensions(['hi', 'diff', {}]);
317 var p2 = new proto.jspb.test.HasExtensions(['hi', 'what',
320 (jspb.Message.difference(p1, p2));
328 var s1 = new proto.jspb.test.Simple1(['hi']);
329 assertTrue(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['hi'])));
330 assertFalse(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['bye'])));
331 var s1b = new proto.jspb.test.Simple1(['hi', ['hello']]);
332 assertTrue(jspb.Message.equals(s1b,
333 new proto.jspb.test.Simple1(['hi', ['hello']])));
334 assertTrue(jspb.Message.equals(s1b,
335 new proto.jspb.test.Simple1(['hi', ['hello', undefined,
337 assertFalse(jspb.Message.equals(s1b,
338 new proto.jspb.test.Simple1(['no', ['hello']])));
340 var s2 = new proto.jspb.test.Simple2(['hi']);
341 assertFalse(jspb.Message.equals(s1, s2));
345 var s1 = new proto.jspb.test.Simple1(['hi', [], null]);
346 assertTrue(jspb.Message.equals(s1,
347 new proto.jspb.test.Simple1(['hi', []])));
349 var s1b = new proto.jspb.test.Simple1(['hi', [], true]);
350 assertTrue(jspb.Message.equals(s1b,
351 new proto.jspb.test.Simple1(['hi', [], 1])));
359 var c1a = new proto.jspb.test.Complex(data1);
360 var c1b = new proto.jspb.test.Complex(data1);
361 var c2 = new proto.jspb.test.Complex(data2);
362 var c3 = new proto.jspb.test.Complex(data3);
363 var s1 = new proto.jspb.test.Simple1(data4);
365 assertTrue(jspb.Message.equals(c1a, c1b));
366 assertFalse(jspb.Message.equals(c1a, c2));
367 assertFalse(jspb.Message.equals(c2, c3));
368 assertFalse(jspb.Message.equals(c1a, s1));
372 assertTrue(jspb.Message.equals(
373 new proto.jspb.test.HasExtensions([]),
374 new proto.jspb.test.HasExtensions([{}])
376 assertTrue(jspb.Message.equals(
377 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
378 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])
380 assertFalse(jspb.Message.equals(
381 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
382 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'b'}]}])
384 assertTrue(jspb.Message.equals(
385 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
386 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])
388 assertTrue(jspb.Message.equals(
389 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
390 new proto.jspb.test.HasExtensions([,,, {100: [{200: 'a'}]}])
392 assertTrue(jspb.Message.equals(
393 new proto.jspb.test.HasExtensions([,,, {100: [{200: 'a'}]}]),
394 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])
396 assertTrue(jspb.Message.equals(
397 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
398 new proto.jspb.test.HasExtensions(['hi',,, {100: [{200: 'a'}]}])
400 assertTrue(jspb.Message.equals(
401 new proto.jspb.test.HasExtensions(['hi',,, {100: [{200: 'a'}]}]),
402 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])
407 assertTrue(jspb.Message.compareFields([], [{}]));
408 assertTrue(jspb.Message.compareFields([,,, {}], []));
409 assertTrue(jspb.Message.compareFields([,,, {}], [,, {}]));
410 assertTrue(jspb.Message.compareFields(
412 assertFalse(jspb.Message.compareFields(
414 assertTrue(jspb.Message.compareFields(
416 assertTrue(jspb.Message.compareFields(
418 assertTrue(jspb.Message.compareFields(
420 assertTrue(jspb.Message.compareFields(
422 assertTrue(jspb.Message.compareFields(
427 var p1 = new proto.jspb.test.Simple1(['k', ['v']]);
428 var p2 = new proto.jspb.test.Simple1(['k1', ['v1', 'v2']]);
429 var soymap = jspb.Message.toMap([p1, p2],
430 proto.jspb.test.Simple1.prototype.getAString,
431 proto.jspb.test.Simple1.prototype.toObject);
434 var protomap = jspb.Message.toMap([p1, p2],
435 proto.jspb.test.Simple1.prototype.getAString);
441 var original = new proto.jspb.test.TestClone();
443 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
444 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
445 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
448 var extension = new proto.jspb.test.CloneExtension();
450 original.setExtension(proto.jspb.test.IsExtension.extField, extension);
456 var simple4 = new proto.jspb.test.Simple1(['a1', ['b1', 'c1']]);
457 var simple5 = new proto.jspb.test.Simple1(['a2', ['b2', 'c2']]);
458 var simple6 = new proto.jspb.test.Simple1(['a3', ['b3', 'c3']]);
461 var newExtension = new proto.jspb.test.CloneExtension();
463 clone.setExtension(proto.jspb.test.CloneExtension.extField, newExtension);
473 var original = new proto.jspb.test.TestClone();
475 var dest = new proto.jspb.test.TestClone();
477 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
478 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
479 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
480 var destSimple1 = new proto.jspb.test.Simple1(['ox1', ['oy1', 'oz1']]);
481 var destSimple2 = new proto.jspb.test.Simple1(['ox2', ['oy2', 'oz2']]);
482 var destSimple3 = new proto.jspb.test.Simple1(['ox3', ['oy3', 'oz3']]);
487 var extension = new proto.jspb.test.CloneExtension();
489 original.setExtension(proto.jspb.test.CloneExtension.extField, extension);
491 jspb.Message.copyInto(original, dest);
495 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
499 dest.getExtension(proto.jspb.test.CloneExtension.extField).
502 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
504 proto.jspb.test.CloneExtension.extField).getExt());
508 var a = new proto.jspb.test.TestClone();
509 var b = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
512 jspb.Message.copyInto(a, b);
518 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
519 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
520 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
521 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
522 extendable.setExtension(proto.jspb.test.IndirectExtension.simple,
524 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
525 extendable.setExtension(proto.jspb.test.IndirectExtension.repeatedStrList,
527 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
528 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2']]);
530 proto.jspb.test.IndirectExtension.repeatedSimpleList,
533 extendable.getExtension(proto.jspb.test.IsExtension.extField));
535 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
537 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
539 proto.jspb.test.IndirectExtension.repeatedStrList));
541 proto.jspb.test.IndirectExtension.repeatedSimpleList));
543 extendable.setExtension(proto.jspb.test.IndirectExtension.simple, null);
545 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
546 extendable.setExtension(proto.jspb.test.IndirectExtension.str, null);
547 assertNull(extendable.getExtension(proto.jspb.test.IndirectExtension.str));
551 assertUndefined(proto.jspb.test.IndirectExtension['ignored']);
552 assertUndefined(proto.jspb.test.HasExtensions['ignoredFloating']);
557 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
558 var extension = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
559 extendable.setExtension(proto.jspb.test.simple1, extension);
561 extendable.getExtension(proto.jspb.test.simple1));
564 extension = new proto.jspb.test.ExtensionMessage(['s1']);
565 extendable = new proto.jspb.test.TestExtensionsMessage([16]);
566 extendable.setExtension(proto.jspb.test.floatingMsgField, extension);
567 extendable.setExtension(proto.jspb.test.floatingStrField, 's2');
569 extendable.getExtension(proto.jspb.test.floatingMsgField));
571 extendable.getExtension(proto.jspb.test.floatingStrField));
572 assertNotUndefined(proto.jspb.exttest.floatingMsgField);
573 assertNotUndefined(proto.jspb.exttest.floatingMsgFieldTwo);
574 assertNotUndefined(proto.jspb.exttest.beta.floatingStrField);
578 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
579 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2'], true]);
580 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
581 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
582 extendable.setExtension(proto.jspb.test.IndirectExtension.simple,
584 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
585 extendable.setExtension(proto.jspb.test.IndirectExtension.repeatedStrList,
587 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2'], true]);
588 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2'], false]);
590 proto.jspb.test.IndirectExtension.repeatedSimpleList,
612 extendable.getExtension(proto.jspb.test.IsExtension.extField)
619 extendable.getExtension(proto.jspb.test.IndirectExtension.simple)
639 var msg = new proto.jspb.test.HasExtensions([]);
640 if (jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS) {
649 var msg = new proto.jspb.test.Empty([{1: 'hi'}]);
655 var msg = new proto.jspb.test.Empty([1, {4: 'hi'}]);
661 var msg = new proto.jspb.test.Empty([1, 2, 3, {1: 'hi'}]);
666 var data = new proto.jspb.test.HasExtensions(['str1',
672 var data = new proto.jspb.test.HasExtensions(['str1', {100: ['ext1']}]);
679 var data = new proto.jspb.test.HasExtensions(['str1', {100: ['ext1']}]);
681 var extension = data.getExtension(proto.jspb.test.IsExtension.extField);
687 var data = new proto.jspb.test.HasExtensions();
688 var extensionMessage = new proto.jspb.test.IsExtension(['is_extension']);
689 data.setExtension(proto.jspb.test.IsExtension.extField, extensionMessage);
692 data.getExtension(proto.jspb.test.IsExtension.extField));
701 var group = new proto.jspb.test.TestGroup();
702 var someGroup = new proto.jspb.test.TestGroup.RepeatedGroup();
719 var group1 = new proto.jspb.test.TestGroup1();
726 var message = new proto.jspb.test.Complex(data);
731 var message = new proto.jspb.test.TestReservedNames();
733 message.setExtension(proto.jspb.test.TestReservedNamesExtension.foo, 12);
736 proto.jspb.test.TestReservedNamesExtension.foo));
741 var message = new proto.jspb.test.TestMessageWithOneof([]);
743 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
747 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.
753 var message = new proto.jspb.test.TestMessageWithOneof([,, 'x']);
758 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
763 var message = new proto.jspb.test.TestMessageWithOneof([,, 'x',, 'y']);
768 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PTHREE,
773 var message = new proto.jspb.test.TestMessageWithOneof;
787 var other = new proto.jspb.test.TestMessageWithOneof;
788 var message = new proto.jspb.test.TestMessageWithOneof;
806 var message = new proto.jspb.test.TestMessageWithOneof;
808 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
814 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
819 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.
825 var message = new proto.jspb.test.TestMessageWithOneof;
829 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase
837 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.AONE,
844 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
851 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase
857 var message = new proto.jspb.test.TestMessageWithOneof;
861 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase
869 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BONE,
876 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
883 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase
890 new proto.jspb.test.TestMessageWithOneof(new Array(9).concat(567));
894 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.AONE,
898 new proto.jspb.test.TestMessageWithOneof(new Array(10).concat(890));
902 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
906 new proto.jspb.test.TestMessageWithOneof(new Array(9).concat(567, 890));
910 proto.jspb.test.TestMessageWithOneof.DefaultOneofACase.ATWO,
919 new proto.jspb.test.TestMessageWithOneof(new Array(11).concat(567));
923 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BONE,
927 new proto.jspb.test.TestMessageWithOneof(new Array(12).concat(890));
931 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
934 message = new proto.jspb.test.TestMessageWithOneof(
939 proto.jspb.test.TestMessageWithOneof.DefaultOneofBCase.BTWO,
944 var message = new proto.jspb.test.TestMessageWithOneof;
946 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.
950 var other = new proto.jspb.test.TestMessageWithOneof;
955 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.RONE,
962 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase.RTWO,
968 var message = new proto.jspb.test.TestMessageWithOneof;
973 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
982 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PTHREE,
994 var message = new proto.jspb.test.FloatingPointFields([