| OLD | NEW |
| 1 library googleapis.slides.v1.test; | 1 library googleapis.slides.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 checkAutoText(api.AutoText o) { | 98 checkAutoText(api.AutoText o) { |
| 99 buildCounterAutoText++; | 99 buildCounterAutoText++; |
| 100 if (buildCounterAutoText < 3) { | 100 if (buildCounterAutoText < 3) { |
| 101 unittest.expect(o.content, unittest.equals('foo')); | 101 unittest.expect(o.content, unittest.equals('foo')); |
| 102 checkTextStyle(o.style); | 102 checkTextStyle(o.style); |
| 103 unittest.expect(o.type, unittest.equals('foo')); | 103 unittest.expect(o.type, unittest.equals('foo')); |
| 104 } | 104 } |
| 105 buildCounterAutoText--; | 105 buildCounterAutoText--; |
| 106 } | 106 } |
| 107 | 107 |
| 108 buildUnnamed1457() { | 108 buildUnnamed1514() { |
| 109 var o = new core.List<api.Request>(); | 109 var o = new core.List<api.Request>(); |
| 110 o.add(buildRequest()); | 110 o.add(buildRequest()); |
| 111 o.add(buildRequest()); | 111 o.add(buildRequest()); |
| 112 return o; | 112 return o; |
| 113 } | 113 } |
| 114 | 114 |
| 115 checkUnnamed1457(core.List<api.Request> o) { | 115 checkUnnamed1514(core.List<api.Request> o) { |
| 116 unittest.expect(o, unittest.hasLength(2)); | 116 unittest.expect(o, unittest.hasLength(2)); |
| 117 checkRequest(o[0]); | 117 checkRequest(o[0]); |
| 118 checkRequest(o[1]); | 118 checkRequest(o[1]); |
| 119 } | 119 } |
| 120 | 120 |
| 121 core.int buildCounterBatchUpdatePresentationRequest = 0; | 121 core.int buildCounterBatchUpdatePresentationRequest = 0; |
| 122 buildBatchUpdatePresentationRequest() { | 122 buildBatchUpdatePresentationRequest() { |
| 123 var o = new api.BatchUpdatePresentationRequest(); | 123 var o = new api.BatchUpdatePresentationRequest(); |
| 124 buildCounterBatchUpdatePresentationRequest++; | 124 buildCounterBatchUpdatePresentationRequest++; |
| 125 if (buildCounterBatchUpdatePresentationRequest < 3) { | 125 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 126 o.requests = buildUnnamed1457(); | 126 o.requests = buildUnnamed1514(); |
| 127 o.writeControl = buildWriteControl(); |
| 127 } | 128 } |
| 128 buildCounterBatchUpdatePresentationRequest--; | 129 buildCounterBatchUpdatePresentationRequest--; |
| 129 return o; | 130 return o; |
| 130 } | 131 } |
| 131 | 132 |
| 132 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { | 133 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { |
| 133 buildCounterBatchUpdatePresentationRequest++; | 134 buildCounterBatchUpdatePresentationRequest++; |
| 134 if (buildCounterBatchUpdatePresentationRequest < 3) { | 135 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 135 checkUnnamed1457(o.requests); | 136 checkUnnamed1514(o.requests); |
| 137 checkWriteControl(o.writeControl); |
| 136 } | 138 } |
| 137 buildCounterBatchUpdatePresentationRequest--; | 139 buildCounterBatchUpdatePresentationRequest--; |
| 138 } | 140 } |
| 139 | 141 |
| 140 buildUnnamed1458() { | 142 buildUnnamed1515() { |
| 141 var o = new core.List<api.Response>(); | 143 var o = new core.List<api.Response>(); |
| 142 o.add(buildResponse()); | 144 o.add(buildResponse()); |
| 143 o.add(buildResponse()); | 145 o.add(buildResponse()); |
| 144 return o; | 146 return o; |
| 145 } | 147 } |
| 146 | 148 |
| 147 checkUnnamed1458(core.List<api.Response> o) { | 149 checkUnnamed1515(core.List<api.Response> o) { |
| 148 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
| 149 checkResponse(o[0]); | 151 checkResponse(o[0]); |
| 150 checkResponse(o[1]); | 152 checkResponse(o[1]); |
| 151 } | 153 } |
| 152 | 154 |
| 153 core.int buildCounterBatchUpdatePresentationResponse = 0; | 155 core.int buildCounterBatchUpdatePresentationResponse = 0; |
| 154 buildBatchUpdatePresentationResponse() { | 156 buildBatchUpdatePresentationResponse() { |
| 155 var o = new api.BatchUpdatePresentationResponse(); | 157 var o = new api.BatchUpdatePresentationResponse(); |
| 156 buildCounterBatchUpdatePresentationResponse++; | 158 buildCounterBatchUpdatePresentationResponse++; |
| 157 if (buildCounterBatchUpdatePresentationResponse < 3) { | 159 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 158 o.presentationId = "foo"; | 160 o.presentationId = "foo"; |
| 159 o.replies = buildUnnamed1458(); | 161 o.replies = buildUnnamed1515(); |
| 160 } | 162 } |
| 161 buildCounterBatchUpdatePresentationResponse--; | 163 buildCounterBatchUpdatePresentationResponse--; |
| 162 return o; | 164 return o; |
| 163 } | 165 } |
| 164 | 166 |
| 165 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { | 167 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { |
| 166 buildCounterBatchUpdatePresentationResponse++; | 168 buildCounterBatchUpdatePresentationResponse++; |
| 167 if (buildCounterBatchUpdatePresentationResponse < 3) { | 169 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 168 unittest.expect(o.presentationId, unittest.equals('foo')); | 170 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 169 checkUnnamed1458(o.replies); | 171 checkUnnamed1515(o.replies); |
| 170 } | 172 } |
| 171 buildCounterBatchUpdatePresentationResponse--; | 173 buildCounterBatchUpdatePresentationResponse--; |
| 172 } | 174 } |
| 173 | 175 |
| 174 core.int buildCounterBullet = 0; | 176 core.int buildCounterBullet = 0; |
| 175 buildBullet() { | 177 buildBullet() { |
| 176 var o = new api.Bullet(); | 178 var o = new api.Bullet(); |
| 177 buildCounterBullet++; | 179 buildCounterBullet++; |
| 178 if (buildCounterBullet < 3) { | 180 if (buildCounterBullet < 3) { |
| 179 o.bulletStyle = buildTextStyle(); | 181 o.bulletStyle = buildTextStyle(); |
| 180 o.glyph = "foo"; | 182 o.glyph = "foo"; |
| 181 o.listId = "foo"; | 183 o.listId = "foo"; |
| 182 o.nestingLevel = 42; | 184 o.nestingLevel = 42; |
| 183 } | 185 } |
| 184 buildCounterBullet--; | 186 buildCounterBullet--; |
| 185 return o; | 187 return o; |
| 186 } | 188 } |
| 187 | 189 |
| 188 checkBullet(api.Bullet o) { | 190 checkBullet(api.Bullet o) { |
| 189 buildCounterBullet++; | 191 buildCounterBullet++; |
| 190 if (buildCounterBullet < 3) { | 192 if (buildCounterBullet < 3) { |
| 191 checkTextStyle(o.bulletStyle); | 193 checkTextStyle(o.bulletStyle); |
| 192 unittest.expect(o.glyph, unittest.equals('foo')); | 194 unittest.expect(o.glyph, unittest.equals('foo')); |
| 193 unittest.expect(o.listId, unittest.equals('foo')); | 195 unittest.expect(o.listId, unittest.equals('foo')); |
| 194 unittest.expect(o.nestingLevel, unittest.equals(42)); | 196 unittest.expect(o.nestingLevel, unittest.equals(42)); |
| 195 } | 197 } |
| 196 buildCounterBullet--; | 198 buildCounterBullet--; |
| 197 } | 199 } |
| 198 | 200 |
| 199 buildUnnamed1459() { | 201 buildUnnamed1516() { |
| 200 var o = new core.List<api.ThemeColorPair>(); | 202 var o = new core.List<api.ThemeColorPair>(); |
| 201 o.add(buildThemeColorPair()); | 203 o.add(buildThemeColorPair()); |
| 202 o.add(buildThemeColorPair()); | 204 o.add(buildThemeColorPair()); |
| 203 return o; | 205 return o; |
| 204 } | 206 } |
| 205 | 207 |
| 206 checkUnnamed1459(core.List<api.ThemeColorPair> o) { | 208 checkUnnamed1516(core.List<api.ThemeColorPair> o) { |
| 207 unittest.expect(o, unittest.hasLength(2)); | 209 unittest.expect(o, unittest.hasLength(2)); |
| 208 checkThemeColorPair(o[0]); | 210 checkThemeColorPair(o[0]); |
| 209 checkThemeColorPair(o[1]); | 211 checkThemeColorPair(o[1]); |
| 210 } | 212 } |
| 211 | 213 |
| 212 core.int buildCounterColorScheme = 0; | 214 core.int buildCounterColorScheme = 0; |
| 213 buildColorScheme() { | 215 buildColorScheme() { |
| 214 var o = new api.ColorScheme(); | 216 var o = new api.ColorScheme(); |
| 215 buildCounterColorScheme++; | 217 buildCounterColorScheme++; |
| 216 if (buildCounterColorScheme < 3) { | 218 if (buildCounterColorScheme < 3) { |
| 217 o.colors = buildUnnamed1459(); | 219 o.colors = buildUnnamed1516(); |
| 218 } | 220 } |
| 219 buildCounterColorScheme--; | 221 buildCounterColorScheme--; |
| 220 return o; | 222 return o; |
| 221 } | 223 } |
| 222 | 224 |
| 223 checkColorScheme(api.ColorScheme o) { | 225 checkColorScheme(api.ColorScheme o) { |
| 224 buildCounterColorScheme++; | 226 buildCounterColorScheme++; |
| 225 if (buildCounterColorScheme < 3) { | 227 if (buildCounterColorScheme < 3) { |
| 226 checkUnnamed1459(o.colors); | 228 checkUnnamed1516(o.colors); |
| 227 } | 229 } |
| 228 buildCounterColorScheme--; | 230 buildCounterColorScheme--; |
| 229 } | 231 } |
| 230 | 232 |
| 231 core.int buildCounterColorStop = 0; | 233 core.int buildCounterColorStop = 0; |
| 232 buildColorStop() { | 234 buildColorStop() { |
| 233 var o = new api.ColorStop(); | 235 var o = new api.ColorStop(); |
| 234 buildCounterColorStop++; | 236 buildCounterColorStop++; |
| 235 if (buildCounterColorStop < 3) { | 237 if (buildCounterColorStop < 3) { |
| 236 o.alpha = 42.0; | 238 o.alpha = 42.0; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 } | 443 } |
| 442 | 444 |
| 443 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { | 445 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { |
| 444 buildCounterCreateSheetsChartResponse++; | 446 buildCounterCreateSheetsChartResponse++; |
| 445 if (buildCounterCreateSheetsChartResponse < 3) { | 447 if (buildCounterCreateSheetsChartResponse < 3) { |
| 446 unittest.expect(o.objectId, unittest.equals('foo')); | 448 unittest.expect(o.objectId, unittest.equals('foo')); |
| 447 } | 449 } |
| 448 buildCounterCreateSheetsChartResponse--; | 450 buildCounterCreateSheetsChartResponse--; |
| 449 } | 451 } |
| 450 | 452 |
| 451 buildUnnamed1460() { | 453 buildUnnamed1517() { |
| 452 var o = new core.List<api.LayoutPlaceholderIdMapping>(); | 454 var o = new core.List<api.LayoutPlaceholderIdMapping>(); |
| 453 o.add(buildLayoutPlaceholderIdMapping()); | 455 o.add(buildLayoutPlaceholderIdMapping()); |
| 454 o.add(buildLayoutPlaceholderIdMapping()); | 456 o.add(buildLayoutPlaceholderIdMapping()); |
| 455 return o; | 457 return o; |
| 456 } | 458 } |
| 457 | 459 |
| 458 checkUnnamed1460(core.List<api.LayoutPlaceholderIdMapping> o) { | 460 checkUnnamed1517(core.List<api.LayoutPlaceholderIdMapping> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); | 461 unittest.expect(o, unittest.hasLength(2)); |
| 460 checkLayoutPlaceholderIdMapping(o[0]); | 462 checkLayoutPlaceholderIdMapping(o[0]); |
| 461 checkLayoutPlaceholderIdMapping(o[1]); | 463 checkLayoutPlaceholderIdMapping(o[1]); |
| 462 } | 464 } |
| 463 | 465 |
| 464 core.int buildCounterCreateSlideRequest = 0; | 466 core.int buildCounterCreateSlideRequest = 0; |
| 465 buildCreateSlideRequest() { | 467 buildCreateSlideRequest() { |
| 466 var o = new api.CreateSlideRequest(); | 468 var o = new api.CreateSlideRequest(); |
| 467 buildCounterCreateSlideRequest++; | 469 buildCounterCreateSlideRequest++; |
| 468 if (buildCounterCreateSlideRequest < 3) { | 470 if (buildCounterCreateSlideRequest < 3) { |
| 469 o.insertionIndex = 42; | 471 o.insertionIndex = 42; |
| 470 o.objectId = "foo"; | 472 o.objectId = "foo"; |
| 471 o.placeholderIdMappings = buildUnnamed1460(); | 473 o.placeholderIdMappings = buildUnnamed1517(); |
| 472 o.slideLayoutReference = buildLayoutReference(); | 474 o.slideLayoutReference = buildLayoutReference(); |
| 473 } | 475 } |
| 474 buildCounterCreateSlideRequest--; | 476 buildCounterCreateSlideRequest--; |
| 475 return o; | 477 return o; |
| 476 } | 478 } |
| 477 | 479 |
| 478 checkCreateSlideRequest(api.CreateSlideRequest o) { | 480 checkCreateSlideRequest(api.CreateSlideRequest o) { |
| 479 buildCounterCreateSlideRequest++; | 481 buildCounterCreateSlideRequest++; |
| 480 if (buildCounterCreateSlideRequest < 3) { | 482 if (buildCounterCreateSlideRequest < 3) { |
| 481 unittest.expect(o.insertionIndex, unittest.equals(42)); | 483 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 482 unittest.expect(o.objectId, unittest.equals('foo')); | 484 unittest.expect(o.objectId, unittest.equals('foo')); |
| 483 checkUnnamed1460(o.placeholderIdMappings); | 485 checkUnnamed1517(o.placeholderIdMappings); |
| 484 checkLayoutReference(o.slideLayoutReference); | 486 checkLayoutReference(o.slideLayoutReference); |
| 485 } | 487 } |
| 486 buildCounterCreateSlideRequest--; | 488 buildCounterCreateSlideRequest--; |
| 487 } | 489 } |
| 488 | 490 |
| 489 core.int buildCounterCreateSlideResponse = 0; | 491 core.int buildCounterCreateSlideResponse = 0; |
| 490 buildCreateSlideResponse() { | 492 buildCreateSlideResponse() { |
| 491 var o = new api.CreateSlideResponse(); | 493 var o = new api.CreateSlideResponse(); |
| 492 buildCounterCreateSlideResponse++; | 494 buildCounterCreateSlideResponse++; |
| 493 if (buildCounterCreateSlideResponse < 3) { | 495 if (buildCounterCreateSlideResponse < 3) { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 743 |
| 742 checkDimension(api.Dimension o) { | 744 checkDimension(api.Dimension o) { |
| 743 buildCounterDimension++; | 745 buildCounterDimension++; |
| 744 if (buildCounterDimension < 3) { | 746 if (buildCounterDimension < 3) { |
| 745 unittest.expect(o.magnitude, unittest.equals(42.0)); | 747 unittest.expect(o.magnitude, unittest.equals(42.0)); |
| 746 unittest.expect(o.unit, unittest.equals('foo')); | 748 unittest.expect(o.unit, unittest.equals('foo')); |
| 747 } | 749 } |
| 748 buildCounterDimension--; | 750 buildCounterDimension--; |
| 749 } | 751 } |
| 750 | 752 |
| 751 buildUnnamed1461() { | 753 buildUnnamed1518() { |
| 752 var o = new core.Map<core.String, core.String>(); | 754 var o = new core.Map<core.String, core.String>(); |
| 753 o["x"] = "foo"; | 755 o["x"] = "foo"; |
| 754 o["y"] = "foo"; | 756 o["y"] = "foo"; |
| 755 return o; | 757 return o; |
| 756 } | 758 } |
| 757 | 759 |
| 758 checkUnnamed1461(core.Map<core.String, core.String> o) { | 760 checkUnnamed1518(core.Map<core.String, core.String> o) { |
| 759 unittest.expect(o, unittest.hasLength(2)); | 761 unittest.expect(o, unittest.hasLength(2)); |
| 760 unittest.expect(o["x"], unittest.equals('foo')); | 762 unittest.expect(o["x"], unittest.equals('foo')); |
| 761 unittest.expect(o["y"], unittest.equals('foo')); | 763 unittest.expect(o["y"], unittest.equals('foo')); |
| 762 } | 764 } |
| 763 | 765 |
| 764 core.int buildCounterDuplicateObjectRequest = 0; | 766 core.int buildCounterDuplicateObjectRequest = 0; |
| 765 buildDuplicateObjectRequest() { | 767 buildDuplicateObjectRequest() { |
| 766 var o = new api.DuplicateObjectRequest(); | 768 var o = new api.DuplicateObjectRequest(); |
| 767 buildCounterDuplicateObjectRequest++; | 769 buildCounterDuplicateObjectRequest++; |
| 768 if (buildCounterDuplicateObjectRequest < 3) { | 770 if (buildCounterDuplicateObjectRequest < 3) { |
| 769 o.objectId = "foo"; | 771 o.objectId = "foo"; |
| 770 o.objectIds = buildUnnamed1461(); | 772 o.objectIds = buildUnnamed1518(); |
| 771 } | 773 } |
| 772 buildCounterDuplicateObjectRequest--; | 774 buildCounterDuplicateObjectRequest--; |
| 773 return o; | 775 return o; |
| 774 } | 776 } |
| 775 | 777 |
| 776 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { | 778 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { |
| 777 buildCounterDuplicateObjectRequest++; | 779 buildCounterDuplicateObjectRequest++; |
| 778 if (buildCounterDuplicateObjectRequest < 3) { | 780 if (buildCounterDuplicateObjectRequest < 3) { |
| 779 unittest.expect(o.objectId, unittest.equals('foo')); | 781 unittest.expect(o.objectId, unittest.equals('foo')); |
| 780 checkUnnamed1461(o.objectIds); | 782 checkUnnamed1518(o.objectIds); |
| 781 } | 783 } |
| 782 buildCounterDuplicateObjectRequest--; | 784 buildCounterDuplicateObjectRequest--; |
| 783 } | 785 } |
| 784 | 786 |
| 785 core.int buildCounterDuplicateObjectResponse = 0; | 787 core.int buildCounterDuplicateObjectResponse = 0; |
| 786 buildDuplicateObjectResponse() { | 788 buildDuplicateObjectResponse() { |
| 787 var o = new api.DuplicateObjectResponse(); | 789 var o = new api.DuplicateObjectResponse(); |
| 788 buildCounterDuplicateObjectResponse++; | 790 buildCounterDuplicateObjectResponse++; |
| 789 if (buildCounterDuplicateObjectResponse < 3) { | 791 if (buildCounterDuplicateObjectResponse < 3) { |
| 790 o.objectId = "foo"; | 792 o.objectId = "foo"; |
| 791 } | 793 } |
| 792 buildCounterDuplicateObjectResponse--; | 794 buildCounterDuplicateObjectResponse--; |
| 793 return o; | 795 return o; |
| 794 } | 796 } |
| 795 | 797 |
| 796 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { | 798 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { |
| 797 buildCounterDuplicateObjectResponse++; | 799 buildCounterDuplicateObjectResponse++; |
| 798 if (buildCounterDuplicateObjectResponse < 3) { | 800 if (buildCounterDuplicateObjectResponse < 3) { |
| 799 unittest.expect(o.objectId, unittest.equals('foo')); | 801 unittest.expect(o.objectId, unittest.equals('foo')); |
| 800 } | 802 } |
| 801 buildCounterDuplicateObjectResponse--; | 803 buildCounterDuplicateObjectResponse--; |
| 802 } | 804 } |
| 803 | 805 |
| 804 buildUnnamed1462() { | 806 buildUnnamed1519() { |
| 805 var o = new core.List<api.PageElement>(); | 807 var o = new core.List<api.PageElement>(); |
| 806 o.add(buildPageElement()); | 808 o.add(buildPageElement()); |
| 807 o.add(buildPageElement()); | 809 o.add(buildPageElement()); |
| 808 return o; | 810 return o; |
| 809 } | 811 } |
| 810 | 812 |
| 811 checkUnnamed1462(core.List<api.PageElement> o) { | 813 checkUnnamed1519(core.List<api.PageElement> o) { |
| 812 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
| 813 checkPageElement(o[0]); | 815 checkPageElement(o[0]); |
| 814 checkPageElement(o[1]); | 816 checkPageElement(o[1]); |
| 815 } | 817 } |
| 816 | 818 |
| 817 core.int buildCounterGroup = 0; | 819 core.int buildCounterGroup = 0; |
| 818 buildGroup() { | 820 buildGroup() { |
| 819 var o = new api.Group(); | 821 var o = new api.Group(); |
| 820 buildCounterGroup++; | 822 buildCounterGroup++; |
| 821 if (buildCounterGroup < 3) { | 823 if (buildCounterGroup < 3) { |
| 822 o.children = buildUnnamed1462(); | 824 o.children = buildUnnamed1519(); |
| 823 } | 825 } |
| 824 buildCounterGroup--; | 826 buildCounterGroup--; |
| 825 return o; | 827 return o; |
| 826 } | 828 } |
| 827 | 829 |
| 828 checkGroup(api.Group o) { | 830 checkGroup(api.Group o) { |
| 829 buildCounterGroup++; | 831 buildCounterGroup++; |
| 830 if (buildCounterGroup < 3) { | 832 if (buildCounterGroup < 3) { |
| 831 checkUnnamed1462(o.children); | 833 checkUnnamed1519(o.children); |
| 832 } | 834 } |
| 833 buildCounterGroup--; | 835 buildCounterGroup--; |
| 834 } | 836 } |
| 835 | 837 |
| 836 core.int buildCounterImage = 0; | 838 core.int buildCounterImage = 0; |
| 837 buildImage() { | 839 buildImage() { |
| 838 var o = new api.Image(); | 840 var o = new api.Image(); |
| 839 buildCounterImage++; | 841 buildCounterImage++; |
| 840 if (buildCounterImage < 3) { | 842 if (buildCounterImage < 3) { |
| 841 o.contentUrl = "foo"; | 843 o.contentUrl = "foo"; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 buildCounterLink++; | 1118 buildCounterLink++; |
| 1117 if (buildCounterLink < 3) { | 1119 if (buildCounterLink < 3) { |
| 1118 unittest.expect(o.pageObjectId, unittest.equals('foo')); | 1120 unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| 1119 unittest.expect(o.relativeLink, unittest.equals('foo')); | 1121 unittest.expect(o.relativeLink, unittest.equals('foo')); |
| 1120 unittest.expect(o.slideIndex, unittest.equals(42)); | 1122 unittest.expect(o.slideIndex, unittest.equals(42)); |
| 1121 unittest.expect(o.url, unittest.equals('foo')); | 1123 unittest.expect(o.url, unittest.equals('foo')); |
| 1122 } | 1124 } |
| 1123 buildCounterLink--; | 1125 buildCounterLink--; |
| 1124 } | 1126 } |
| 1125 | 1127 |
| 1126 buildUnnamed1463() { | 1128 buildUnnamed1520() { |
| 1127 var o = new core.Map<core.String, api.NestingLevel>(); | 1129 var o = new core.Map<core.String, api.NestingLevel>(); |
| 1128 o["x"] = buildNestingLevel(); | 1130 o["x"] = buildNestingLevel(); |
| 1129 o["y"] = buildNestingLevel(); | 1131 o["y"] = buildNestingLevel(); |
| 1130 return o; | 1132 return o; |
| 1131 } | 1133 } |
| 1132 | 1134 |
| 1133 checkUnnamed1463(core.Map<core.String, api.NestingLevel> o) { | 1135 checkUnnamed1520(core.Map<core.String, api.NestingLevel> o) { |
| 1134 unittest.expect(o, unittest.hasLength(2)); | 1136 unittest.expect(o, unittest.hasLength(2)); |
| 1135 checkNestingLevel(o["x"]); | 1137 checkNestingLevel(o["x"]); |
| 1136 checkNestingLevel(o["y"]); | 1138 checkNestingLevel(o["y"]); |
| 1137 } | 1139 } |
| 1138 | 1140 |
| 1139 core.int buildCounterList = 0; | 1141 core.int buildCounterList = 0; |
| 1140 buildList() { | 1142 buildList() { |
| 1141 var o = new api.List(); | 1143 var o = new api.List(); |
| 1142 buildCounterList++; | 1144 buildCounterList++; |
| 1143 if (buildCounterList < 3) { | 1145 if (buildCounterList < 3) { |
| 1144 o.listId = "foo"; | 1146 o.listId = "foo"; |
| 1145 o.nestingLevel = buildUnnamed1463(); | 1147 o.nestingLevel = buildUnnamed1520(); |
| 1146 } | 1148 } |
| 1147 buildCounterList--; | 1149 buildCounterList--; |
| 1148 return o; | 1150 return o; |
| 1149 } | 1151 } |
| 1150 | 1152 |
| 1151 checkList(api.List o) { | 1153 checkList(api.List o) { |
| 1152 buildCounterList++; | 1154 buildCounterList++; |
| 1153 if (buildCounterList < 3) { | 1155 if (buildCounterList < 3) { |
| 1154 unittest.expect(o.listId, unittest.equals('foo')); | 1156 unittest.expect(o.listId, unittest.equals('foo')); |
| 1155 checkUnnamed1463(o.nestingLevel); | 1157 checkUnnamed1520(o.nestingLevel); |
| 1156 } | 1158 } |
| 1157 buildCounterList--; | 1159 buildCounterList--; |
| 1158 } | 1160 } |
| 1159 | 1161 |
| 1160 core.int buildCounterNestingLevel = 0; | 1162 core.int buildCounterNestingLevel = 0; |
| 1161 buildNestingLevel() { | 1163 buildNestingLevel() { |
| 1162 var o = new api.NestingLevel(); | 1164 var o = new api.NestingLevel(); |
| 1163 buildCounterNestingLevel++; | 1165 buildCounterNestingLevel++; |
| 1164 if (buildCounterNestingLevel < 3) { | 1166 if (buildCounterNestingLevel < 3) { |
| 1165 o.bulletStyle = buildTextStyle(); | 1167 o.bulletStyle = buildTextStyle(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 } | 1274 } |
| 1273 | 1275 |
| 1274 checkOutlineFill(api.OutlineFill o) { | 1276 checkOutlineFill(api.OutlineFill o) { |
| 1275 buildCounterOutlineFill++; | 1277 buildCounterOutlineFill++; |
| 1276 if (buildCounterOutlineFill < 3) { | 1278 if (buildCounterOutlineFill < 3) { |
| 1277 checkSolidFill(o.solidFill); | 1279 checkSolidFill(o.solidFill); |
| 1278 } | 1280 } |
| 1279 buildCounterOutlineFill--; | 1281 buildCounterOutlineFill--; |
| 1280 } | 1282 } |
| 1281 | 1283 |
| 1282 buildUnnamed1464() { | 1284 buildUnnamed1521() { |
| 1283 var o = new core.List<api.PageElement>(); | 1285 var o = new core.List<api.PageElement>(); |
| 1284 o.add(buildPageElement()); | 1286 o.add(buildPageElement()); |
| 1285 o.add(buildPageElement()); | 1287 o.add(buildPageElement()); |
| 1286 return o; | 1288 return o; |
| 1287 } | 1289 } |
| 1288 | 1290 |
| 1289 checkUnnamed1464(core.List<api.PageElement> o) { | 1291 checkUnnamed1521(core.List<api.PageElement> o) { |
| 1290 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
| 1291 checkPageElement(o[0]); | 1293 checkPageElement(o[0]); |
| 1292 checkPageElement(o[1]); | 1294 checkPageElement(o[1]); |
| 1293 } | 1295 } |
| 1294 | 1296 |
| 1295 core.int buildCounterPage = 0; | 1297 core.int buildCounterPage = 0; |
| 1296 buildPage() { | 1298 buildPage() { |
| 1297 var o = new api.Page(); | 1299 var o = new api.Page(); |
| 1298 buildCounterPage++; | 1300 buildCounterPage++; |
| 1299 if (buildCounterPage < 3) { | 1301 if (buildCounterPage < 3) { |
| 1300 o.layoutProperties = buildLayoutProperties(); | 1302 o.layoutProperties = buildLayoutProperties(); |
| 1301 o.notesProperties = buildNotesProperties(); | 1303 o.notesProperties = buildNotesProperties(); |
| 1302 o.objectId = "foo"; | 1304 o.objectId = "foo"; |
| 1303 o.pageElements = buildUnnamed1464(); | 1305 o.pageElements = buildUnnamed1521(); |
| 1304 o.pageProperties = buildPageProperties(); | 1306 o.pageProperties = buildPageProperties(); |
| 1305 o.pageType = "foo"; | 1307 o.pageType = "foo"; |
| 1308 o.revisionId = "foo"; |
| 1306 o.slideProperties = buildSlideProperties(); | 1309 o.slideProperties = buildSlideProperties(); |
| 1307 } | 1310 } |
| 1308 buildCounterPage--; | 1311 buildCounterPage--; |
| 1309 return o; | 1312 return o; |
| 1310 } | 1313 } |
| 1311 | 1314 |
| 1312 checkPage(api.Page o) { | 1315 checkPage(api.Page o) { |
| 1313 buildCounterPage++; | 1316 buildCounterPage++; |
| 1314 if (buildCounterPage < 3) { | 1317 if (buildCounterPage < 3) { |
| 1315 checkLayoutProperties(o.layoutProperties); | 1318 checkLayoutProperties(o.layoutProperties); |
| 1316 checkNotesProperties(o.notesProperties); | 1319 checkNotesProperties(o.notesProperties); |
| 1317 unittest.expect(o.objectId, unittest.equals('foo')); | 1320 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1318 checkUnnamed1464(o.pageElements); | 1321 checkUnnamed1521(o.pageElements); |
| 1319 checkPageProperties(o.pageProperties); | 1322 checkPageProperties(o.pageProperties); |
| 1320 unittest.expect(o.pageType, unittest.equals('foo')); | 1323 unittest.expect(o.pageType, unittest.equals('foo')); |
| 1324 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1321 checkSlideProperties(o.slideProperties); | 1325 checkSlideProperties(o.slideProperties); |
| 1322 } | 1326 } |
| 1323 buildCounterPage--; | 1327 buildCounterPage--; |
| 1324 } | 1328 } |
| 1325 | 1329 |
| 1326 core.int buildCounterPageBackgroundFill = 0; | 1330 core.int buildCounterPageBackgroundFill = 0; |
| 1327 buildPageBackgroundFill() { | 1331 buildPageBackgroundFill() { |
| 1328 var o = new api.PageBackgroundFill(); | 1332 var o = new api.PageBackgroundFill(); |
| 1329 buildCounterPageBackgroundFill++; | 1333 buildCounterPageBackgroundFill++; |
| 1330 if (buildCounterPageBackgroundFill < 3) { | 1334 if (buildCounterPageBackgroundFill < 3) { |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 checkPlaceholder(api.Placeholder o) { | 1509 checkPlaceholder(api.Placeholder o) { |
| 1506 buildCounterPlaceholder++; | 1510 buildCounterPlaceholder++; |
| 1507 if (buildCounterPlaceholder < 3) { | 1511 if (buildCounterPlaceholder < 3) { |
| 1508 unittest.expect(o.index, unittest.equals(42)); | 1512 unittest.expect(o.index, unittest.equals(42)); |
| 1509 unittest.expect(o.parentObjectId, unittest.equals('foo')); | 1513 unittest.expect(o.parentObjectId, unittest.equals('foo')); |
| 1510 unittest.expect(o.type, unittest.equals('foo')); | 1514 unittest.expect(o.type, unittest.equals('foo')); |
| 1511 } | 1515 } |
| 1512 buildCounterPlaceholder--; | 1516 buildCounterPlaceholder--; |
| 1513 } | 1517 } |
| 1514 | 1518 |
| 1515 buildUnnamed1465() { | 1519 buildUnnamed1522() { |
| 1516 var o = new core.List<api.Page>(); | 1520 var o = new core.List<api.Page>(); |
| 1517 o.add(buildPage()); | 1521 o.add(buildPage()); |
| 1518 o.add(buildPage()); | 1522 o.add(buildPage()); |
| 1519 return o; | 1523 return o; |
| 1520 } | 1524 } |
| 1521 | 1525 |
| 1522 checkUnnamed1465(core.List<api.Page> o) { | 1526 checkUnnamed1522(core.List<api.Page> o) { |
| 1523 unittest.expect(o, unittest.hasLength(2)); | 1527 unittest.expect(o, unittest.hasLength(2)); |
| 1524 checkPage(o[0]); | 1528 checkPage(o[0]); |
| 1525 checkPage(o[1]); | 1529 checkPage(o[1]); |
| 1526 } | 1530 } |
| 1527 | 1531 |
| 1528 buildUnnamed1466() { | 1532 buildUnnamed1523() { |
| 1529 var o = new core.List<api.Page>(); | 1533 var o = new core.List<api.Page>(); |
| 1530 o.add(buildPage()); | 1534 o.add(buildPage()); |
| 1531 o.add(buildPage()); | 1535 o.add(buildPage()); |
| 1532 return o; | 1536 return o; |
| 1533 } | 1537 } |
| 1534 | 1538 |
| 1535 checkUnnamed1466(core.List<api.Page> o) { | 1539 checkUnnamed1523(core.List<api.Page> o) { |
| 1536 unittest.expect(o, unittest.hasLength(2)); | 1540 unittest.expect(o, unittest.hasLength(2)); |
| 1537 checkPage(o[0]); | 1541 checkPage(o[0]); |
| 1538 checkPage(o[1]); | 1542 checkPage(o[1]); |
| 1539 } | 1543 } |
| 1540 | 1544 |
| 1541 buildUnnamed1467() { | 1545 buildUnnamed1524() { |
| 1542 var o = new core.List<api.Page>(); | 1546 var o = new core.List<api.Page>(); |
| 1543 o.add(buildPage()); | 1547 o.add(buildPage()); |
| 1544 o.add(buildPage()); | 1548 o.add(buildPage()); |
| 1545 return o; | 1549 return o; |
| 1546 } | 1550 } |
| 1547 | 1551 |
| 1548 checkUnnamed1467(core.List<api.Page> o) { | 1552 checkUnnamed1524(core.List<api.Page> o) { |
| 1549 unittest.expect(o, unittest.hasLength(2)); | 1553 unittest.expect(o, unittest.hasLength(2)); |
| 1550 checkPage(o[0]); | 1554 checkPage(o[0]); |
| 1551 checkPage(o[1]); | 1555 checkPage(o[1]); |
| 1552 } | 1556 } |
| 1553 | 1557 |
| 1554 core.int buildCounterPresentation = 0; | 1558 core.int buildCounterPresentation = 0; |
| 1555 buildPresentation() { | 1559 buildPresentation() { |
| 1556 var o = new api.Presentation(); | 1560 var o = new api.Presentation(); |
| 1557 buildCounterPresentation++; | 1561 buildCounterPresentation++; |
| 1558 if (buildCounterPresentation < 3) { | 1562 if (buildCounterPresentation < 3) { |
| 1559 o.layouts = buildUnnamed1465(); | 1563 o.layouts = buildUnnamed1522(); |
| 1560 o.locale = "foo"; | 1564 o.locale = "foo"; |
| 1561 o.masters = buildUnnamed1466(); | 1565 o.masters = buildUnnamed1523(); |
| 1562 o.notesMaster = buildPage(); | 1566 o.notesMaster = buildPage(); |
| 1563 o.pageSize = buildSize(); | 1567 o.pageSize = buildSize(); |
| 1564 o.presentationId = "foo"; | 1568 o.presentationId = "foo"; |
| 1565 o.slides = buildUnnamed1467(); | 1569 o.revisionId = "foo"; |
| 1570 o.slides = buildUnnamed1524(); |
| 1566 o.title = "foo"; | 1571 o.title = "foo"; |
| 1567 } | 1572 } |
| 1568 buildCounterPresentation--; | 1573 buildCounterPresentation--; |
| 1569 return o; | 1574 return o; |
| 1570 } | 1575 } |
| 1571 | 1576 |
| 1572 checkPresentation(api.Presentation o) { | 1577 checkPresentation(api.Presentation o) { |
| 1573 buildCounterPresentation++; | 1578 buildCounterPresentation++; |
| 1574 if (buildCounterPresentation < 3) { | 1579 if (buildCounterPresentation < 3) { |
| 1575 checkUnnamed1465(o.layouts); | 1580 checkUnnamed1522(o.layouts); |
| 1576 unittest.expect(o.locale, unittest.equals('foo')); | 1581 unittest.expect(o.locale, unittest.equals('foo')); |
| 1577 checkUnnamed1466(o.masters); | 1582 checkUnnamed1523(o.masters); |
| 1578 checkPage(o.notesMaster); | 1583 checkPage(o.notesMaster); |
| 1579 checkSize(o.pageSize); | 1584 checkSize(o.pageSize); |
| 1580 unittest.expect(o.presentationId, unittest.equals('foo')); | 1585 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 1581 checkUnnamed1467(o.slides); | 1586 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1587 checkUnnamed1524(o.slides); |
| 1582 unittest.expect(o.title, unittest.equals('foo')); | 1588 unittest.expect(o.title, unittest.equals('foo')); |
| 1583 } | 1589 } |
| 1584 buildCounterPresentation--; | 1590 buildCounterPresentation--; |
| 1585 } | 1591 } |
| 1586 | 1592 |
| 1587 core.int buildCounterRange = 0; | 1593 core.int buildCounterRange = 0; |
| 1588 buildRange() { | 1594 buildRange() { |
| 1589 var o = new api.Range(); | 1595 var o = new api.Range(); |
| 1590 buildCounterRange++; | 1596 buildCounterRange++; |
| 1591 if (buildCounterRange < 3) { | 1597 if (buildCounterRange < 3) { |
| 1592 o.endIndex = 42; | 1598 o.endIndex = 42; |
| 1593 o.startIndex = 42; | 1599 o.startIndex = 42; |
| 1594 o.type = "foo"; | 1600 o.type = "foo"; |
| 1595 } | 1601 } |
| 1596 buildCounterRange--; | 1602 buildCounterRange--; |
| 1597 return o; | 1603 return o; |
| 1598 } | 1604 } |
| 1599 | 1605 |
| 1600 checkRange(api.Range o) { | 1606 checkRange(api.Range o) { |
| 1601 buildCounterRange++; | 1607 buildCounterRange++; |
| 1602 if (buildCounterRange < 3) { | 1608 if (buildCounterRange < 3) { |
| 1603 unittest.expect(o.endIndex, unittest.equals(42)); | 1609 unittest.expect(o.endIndex, unittest.equals(42)); |
| 1604 unittest.expect(o.startIndex, unittest.equals(42)); | 1610 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1605 unittest.expect(o.type, unittest.equals('foo')); | 1611 unittest.expect(o.type, unittest.equals('foo')); |
| 1606 } | 1612 } |
| 1607 buildCounterRange--; | 1613 buildCounterRange--; |
| 1608 } | 1614 } |
| 1609 | 1615 |
| 1610 buildUnnamed1468() { | 1616 buildUnnamed1525() { |
| 1611 var o = new core.List<api.ColorStop>(); | 1617 var o = new core.List<api.ColorStop>(); |
| 1612 o.add(buildColorStop()); | 1618 o.add(buildColorStop()); |
| 1613 o.add(buildColorStop()); | 1619 o.add(buildColorStop()); |
| 1614 return o; | 1620 return o; |
| 1615 } | 1621 } |
| 1616 | 1622 |
| 1617 checkUnnamed1468(core.List<api.ColorStop> o) { | 1623 checkUnnamed1525(core.List<api.ColorStop> o) { |
| 1618 unittest.expect(o, unittest.hasLength(2)); | 1624 unittest.expect(o, unittest.hasLength(2)); |
| 1619 checkColorStop(o[0]); | 1625 checkColorStop(o[0]); |
| 1620 checkColorStop(o[1]); | 1626 checkColorStop(o[1]); |
| 1621 } | 1627 } |
| 1622 | 1628 |
| 1623 core.int buildCounterRecolor = 0; | 1629 core.int buildCounterRecolor = 0; |
| 1624 buildRecolor() { | 1630 buildRecolor() { |
| 1625 var o = new api.Recolor(); | 1631 var o = new api.Recolor(); |
| 1626 buildCounterRecolor++; | 1632 buildCounterRecolor++; |
| 1627 if (buildCounterRecolor < 3) { | 1633 if (buildCounterRecolor < 3) { |
| 1628 o.name = "foo"; | 1634 o.name = "foo"; |
| 1629 o.recolorStops = buildUnnamed1468(); | 1635 o.recolorStops = buildUnnamed1525(); |
| 1630 } | 1636 } |
| 1631 buildCounterRecolor--; | 1637 buildCounterRecolor--; |
| 1632 return o; | 1638 return o; |
| 1633 } | 1639 } |
| 1634 | 1640 |
| 1635 checkRecolor(api.Recolor o) { | 1641 checkRecolor(api.Recolor o) { |
| 1636 buildCounterRecolor++; | 1642 buildCounterRecolor++; |
| 1637 if (buildCounterRecolor < 3) { | 1643 if (buildCounterRecolor < 3) { |
| 1638 unittest.expect(o.name, unittest.equals('foo')); | 1644 unittest.expect(o.name, unittest.equals('foo')); |
| 1639 checkUnnamed1468(o.recolorStops); | 1645 checkUnnamed1525(o.recolorStops); |
| 1640 } | 1646 } |
| 1641 buildCounterRecolor--; | 1647 buildCounterRecolor--; |
| 1642 } | 1648 } |
| 1643 | 1649 |
| 1644 core.int buildCounterRefreshSheetsChartRequest = 0; | 1650 core.int buildCounterRefreshSheetsChartRequest = 0; |
| 1645 buildRefreshSheetsChartRequest() { | 1651 buildRefreshSheetsChartRequest() { |
| 1646 var o = new api.RefreshSheetsChartRequest(); | 1652 var o = new api.RefreshSheetsChartRequest(); |
| 1647 buildCounterRefreshSheetsChartRequest++; | 1653 buildCounterRefreshSheetsChartRequest++; |
| 1648 if (buildCounterRefreshSheetsChartRequest < 3) { | 1654 if (buildCounterRefreshSheetsChartRequest < 3) { |
| 1649 o.objectId = "foo"; | 1655 o.objectId = "foo"; |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2175 | 2181 |
| 2176 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { | 2182 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { |
| 2177 buildCounterSubstringMatchCriteria++; | 2183 buildCounterSubstringMatchCriteria++; |
| 2178 if (buildCounterSubstringMatchCriteria < 3) { | 2184 if (buildCounterSubstringMatchCriteria < 3) { |
| 2179 unittest.expect(o.matchCase, unittest.isTrue); | 2185 unittest.expect(o.matchCase, unittest.isTrue); |
| 2180 unittest.expect(o.text, unittest.equals('foo')); | 2186 unittest.expect(o.text, unittest.equals('foo')); |
| 2181 } | 2187 } |
| 2182 buildCounterSubstringMatchCriteria--; | 2188 buildCounterSubstringMatchCriteria--; |
| 2183 } | 2189 } |
| 2184 | 2190 |
| 2185 buildUnnamed1469() { | 2191 buildUnnamed1526() { |
| 2186 var o = new core.List<api.TableColumnProperties>(); | 2192 var o = new core.List<api.TableColumnProperties>(); |
| 2187 o.add(buildTableColumnProperties()); | 2193 o.add(buildTableColumnProperties()); |
| 2188 o.add(buildTableColumnProperties()); | 2194 o.add(buildTableColumnProperties()); |
| 2189 return o; | 2195 return o; |
| 2190 } | 2196 } |
| 2191 | 2197 |
| 2192 checkUnnamed1469(core.List<api.TableColumnProperties> o) { | 2198 checkUnnamed1526(core.List<api.TableColumnProperties> o) { |
| 2193 unittest.expect(o, unittest.hasLength(2)); | 2199 unittest.expect(o, unittest.hasLength(2)); |
| 2194 checkTableColumnProperties(o[0]); | 2200 checkTableColumnProperties(o[0]); |
| 2195 checkTableColumnProperties(o[1]); | 2201 checkTableColumnProperties(o[1]); |
| 2196 } | 2202 } |
| 2197 | 2203 |
| 2198 buildUnnamed1470() { | 2204 buildUnnamed1527() { |
| 2199 var o = new core.List<api.TableRow>(); | 2205 var o = new core.List<api.TableRow>(); |
| 2200 o.add(buildTableRow()); | 2206 o.add(buildTableRow()); |
| 2201 o.add(buildTableRow()); | 2207 o.add(buildTableRow()); |
| 2202 return o; | 2208 return o; |
| 2203 } | 2209 } |
| 2204 | 2210 |
| 2205 checkUnnamed1470(core.List<api.TableRow> o) { | 2211 checkUnnamed1527(core.List<api.TableRow> o) { |
| 2206 unittest.expect(o, unittest.hasLength(2)); | 2212 unittest.expect(o, unittest.hasLength(2)); |
| 2207 checkTableRow(o[0]); | 2213 checkTableRow(o[0]); |
| 2208 checkTableRow(o[1]); | 2214 checkTableRow(o[1]); |
| 2209 } | 2215 } |
| 2210 | 2216 |
| 2211 core.int buildCounterTable = 0; | 2217 core.int buildCounterTable = 0; |
| 2212 buildTable() { | 2218 buildTable() { |
| 2213 var o = new api.Table(); | 2219 var o = new api.Table(); |
| 2214 buildCounterTable++; | 2220 buildCounterTable++; |
| 2215 if (buildCounterTable < 3) { | 2221 if (buildCounterTable < 3) { |
| 2216 o.columns = 42; | 2222 o.columns = 42; |
| 2217 o.rows = 42; | 2223 o.rows = 42; |
| 2218 o.tableColumns = buildUnnamed1469(); | 2224 o.tableColumns = buildUnnamed1526(); |
| 2219 o.tableRows = buildUnnamed1470(); | 2225 o.tableRows = buildUnnamed1527(); |
| 2220 } | 2226 } |
| 2221 buildCounterTable--; | 2227 buildCounterTable--; |
| 2222 return o; | 2228 return o; |
| 2223 } | 2229 } |
| 2224 | 2230 |
| 2225 checkTable(api.Table o) { | 2231 checkTable(api.Table o) { |
| 2226 buildCounterTable++; | 2232 buildCounterTable++; |
| 2227 if (buildCounterTable < 3) { | 2233 if (buildCounterTable < 3) { |
| 2228 unittest.expect(o.columns, unittest.equals(42)); | 2234 unittest.expect(o.columns, unittest.equals(42)); |
| 2229 unittest.expect(o.rows, unittest.equals(42)); | 2235 unittest.expect(o.rows, unittest.equals(42)); |
| 2230 checkUnnamed1469(o.tableColumns); | 2236 checkUnnamed1526(o.tableColumns); |
| 2231 checkUnnamed1470(o.tableRows); | 2237 checkUnnamed1527(o.tableRows); |
| 2232 } | 2238 } |
| 2233 buildCounterTable--; | 2239 buildCounterTable--; |
| 2234 } | 2240 } |
| 2235 | 2241 |
| 2236 core.int buildCounterTableCell = 0; | 2242 core.int buildCounterTableCell = 0; |
| 2237 buildTableCell() { | 2243 buildTableCell() { |
| 2238 var o = new api.TableCell(); | 2244 var o = new api.TableCell(); |
| 2239 buildCounterTableCell++; | 2245 buildCounterTableCell++; |
| 2240 if (buildCounterTableCell < 3) { | 2246 if (buildCounterTableCell < 3) { |
| 2241 o.columnSpan = 42; | 2247 o.columnSpan = 42; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 checkTableRange(api.TableRange o) { | 2362 checkTableRange(api.TableRange o) { |
| 2357 buildCounterTableRange++; | 2363 buildCounterTableRange++; |
| 2358 if (buildCounterTableRange < 3) { | 2364 if (buildCounterTableRange < 3) { |
| 2359 unittest.expect(o.columnSpan, unittest.equals(42)); | 2365 unittest.expect(o.columnSpan, unittest.equals(42)); |
| 2360 checkTableCellLocation(o.location); | 2366 checkTableCellLocation(o.location); |
| 2361 unittest.expect(o.rowSpan, unittest.equals(42)); | 2367 unittest.expect(o.rowSpan, unittest.equals(42)); |
| 2362 } | 2368 } |
| 2363 buildCounterTableRange--; | 2369 buildCounterTableRange--; |
| 2364 } | 2370 } |
| 2365 | 2371 |
| 2366 buildUnnamed1471() { | 2372 buildUnnamed1528() { |
| 2367 var o = new core.List<api.TableCell>(); | 2373 var o = new core.List<api.TableCell>(); |
| 2368 o.add(buildTableCell()); | 2374 o.add(buildTableCell()); |
| 2369 o.add(buildTableCell()); | 2375 o.add(buildTableCell()); |
| 2370 return o; | 2376 return o; |
| 2371 } | 2377 } |
| 2372 | 2378 |
| 2373 checkUnnamed1471(core.List<api.TableCell> o) { | 2379 checkUnnamed1528(core.List<api.TableCell> o) { |
| 2374 unittest.expect(o, unittest.hasLength(2)); | 2380 unittest.expect(o, unittest.hasLength(2)); |
| 2375 checkTableCell(o[0]); | 2381 checkTableCell(o[0]); |
| 2376 checkTableCell(o[1]); | 2382 checkTableCell(o[1]); |
| 2377 } | 2383 } |
| 2378 | 2384 |
| 2379 core.int buildCounterTableRow = 0; | 2385 core.int buildCounterTableRow = 0; |
| 2380 buildTableRow() { | 2386 buildTableRow() { |
| 2381 var o = new api.TableRow(); | 2387 var o = new api.TableRow(); |
| 2382 buildCounterTableRow++; | 2388 buildCounterTableRow++; |
| 2383 if (buildCounterTableRow < 3) { | 2389 if (buildCounterTableRow < 3) { |
| 2384 o.rowHeight = buildDimension(); | 2390 o.rowHeight = buildDimension(); |
| 2385 o.tableCells = buildUnnamed1471(); | 2391 o.tableCells = buildUnnamed1528(); |
| 2386 } | 2392 } |
| 2387 buildCounterTableRow--; | 2393 buildCounterTableRow--; |
| 2388 return o; | 2394 return o; |
| 2389 } | 2395 } |
| 2390 | 2396 |
| 2391 checkTableRow(api.TableRow o) { | 2397 checkTableRow(api.TableRow o) { |
| 2392 buildCounterTableRow++; | 2398 buildCounterTableRow++; |
| 2393 if (buildCounterTableRow < 3) { | 2399 if (buildCounterTableRow < 3) { |
| 2394 checkDimension(o.rowHeight); | 2400 checkDimension(o.rowHeight); |
| 2395 checkUnnamed1471(o.tableCells); | 2401 checkUnnamed1528(o.tableCells); |
| 2396 } | 2402 } |
| 2397 buildCounterTableRow--; | 2403 buildCounterTableRow--; |
| 2398 } | 2404 } |
| 2399 | 2405 |
| 2400 buildUnnamed1472() { | 2406 buildUnnamed1529() { |
| 2401 var o = new core.Map<core.String, api.List>(); | 2407 var o = new core.Map<core.String, api.List>(); |
| 2402 o["x"] = buildList(); | 2408 o["x"] = buildList(); |
| 2403 o["y"] = buildList(); | 2409 o["y"] = buildList(); |
| 2404 return o; | 2410 return o; |
| 2405 } | 2411 } |
| 2406 | 2412 |
| 2407 checkUnnamed1472(core.Map<core.String, api.List> o) { | 2413 checkUnnamed1529(core.Map<core.String, api.List> o) { |
| 2408 unittest.expect(o, unittest.hasLength(2)); | 2414 unittest.expect(o, unittest.hasLength(2)); |
| 2409 checkList(o["x"]); | 2415 checkList(o["x"]); |
| 2410 checkList(o["y"]); | 2416 checkList(o["y"]); |
| 2411 } | 2417 } |
| 2412 | 2418 |
| 2413 buildUnnamed1473() { | 2419 buildUnnamed1530() { |
| 2414 var o = new core.List<api.TextElement>(); | 2420 var o = new core.List<api.TextElement>(); |
| 2415 o.add(buildTextElement()); | 2421 o.add(buildTextElement()); |
| 2416 o.add(buildTextElement()); | 2422 o.add(buildTextElement()); |
| 2417 return o; | 2423 return o; |
| 2418 } | 2424 } |
| 2419 | 2425 |
| 2420 checkUnnamed1473(core.List<api.TextElement> o) { | 2426 checkUnnamed1530(core.List<api.TextElement> o) { |
| 2421 unittest.expect(o, unittest.hasLength(2)); | 2427 unittest.expect(o, unittest.hasLength(2)); |
| 2422 checkTextElement(o[0]); | 2428 checkTextElement(o[0]); |
| 2423 checkTextElement(o[1]); | 2429 checkTextElement(o[1]); |
| 2424 } | 2430 } |
| 2425 | 2431 |
| 2426 core.int buildCounterTextContent = 0; | 2432 core.int buildCounterTextContent = 0; |
| 2427 buildTextContent() { | 2433 buildTextContent() { |
| 2428 var o = new api.TextContent(); | 2434 var o = new api.TextContent(); |
| 2429 buildCounterTextContent++; | 2435 buildCounterTextContent++; |
| 2430 if (buildCounterTextContent < 3) { | 2436 if (buildCounterTextContent < 3) { |
| 2431 o.lists = buildUnnamed1472(); | 2437 o.lists = buildUnnamed1529(); |
| 2432 o.textElements = buildUnnamed1473(); | 2438 o.textElements = buildUnnamed1530(); |
| 2433 } | 2439 } |
| 2434 buildCounterTextContent--; | 2440 buildCounterTextContent--; |
| 2435 return o; | 2441 return o; |
| 2436 } | 2442 } |
| 2437 | 2443 |
| 2438 checkTextContent(api.TextContent o) { | 2444 checkTextContent(api.TextContent o) { |
| 2439 buildCounterTextContent++; | 2445 buildCounterTextContent++; |
| 2440 if (buildCounterTextContent < 3) { | 2446 if (buildCounterTextContent < 3) { |
| 2441 checkUnnamed1472(o.lists); | 2447 checkUnnamed1529(o.lists); |
| 2442 checkUnnamed1473(o.textElements); | 2448 checkUnnamed1530(o.textElements); |
| 2443 } | 2449 } |
| 2444 buildCounterTextContent--; | 2450 buildCounterTextContent--; |
| 2445 } | 2451 } |
| 2446 | 2452 |
| 2447 core.int buildCounterTextElement = 0; | 2453 core.int buildCounterTextElement = 0; |
| 2448 buildTextElement() { | 2454 buildTextElement() { |
| 2449 var o = new api.TextElement(); | 2455 var o = new api.TextElement(); |
| 2450 buildCounterTextElement++; | 2456 buildCounterTextElement++; |
| 2451 if (buildCounterTextElement < 3) { | 2457 if (buildCounterTextElement < 3) { |
| 2452 o.autoText = buildAutoText(); | 2458 o.autoText = buildAutoText(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 o.baselineOffset = "foo"; | 2507 o.baselineOffset = "foo"; |
| 2502 o.bold = true; | 2508 o.bold = true; |
| 2503 o.fontFamily = "foo"; | 2509 o.fontFamily = "foo"; |
| 2504 o.fontSize = buildDimension(); | 2510 o.fontSize = buildDimension(); |
| 2505 o.foregroundColor = buildOptionalColor(); | 2511 o.foregroundColor = buildOptionalColor(); |
| 2506 o.italic = true; | 2512 o.italic = true; |
| 2507 o.link = buildLink(); | 2513 o.link = buildLink(); |
| 2508 o.smallCaps = true; | 2514 o.smallCaps = true; |
| 2509 o.strikethrough = true; | 2515 o.strikethrough = true; |
| 2510 o.underline = true; | 2516 o.underline = true; |
| 2517 o.weightedFontFamily = buildWeightedFontFamily(); |
| 2511 } | 2518 } |
| 2512 buildCounterTextStyle--; | 2519 buildCounterTextStyle--; |
| 2513 return o; | 2520 return o; |
| 2514 } | 2521 } |
| 2515 | 2522 |
| 2516 checkTextStyle(api.TextStyle o) { | 2523 checkTextStyle(api.TextStyle o) { |
| 2517 buildCounterTextStyle++; | 2524 buildCounterTextStyle++; |
| 2518 if (buildCounterTextStyle < 3) { | 2525 if (buildCounterTextStyle < 3) { |
| 2519 checkOptionalColor(o.backgroundColor); | 2526 checkOptionalColor(o.backgroundColor); |
| 2520 unittest.expect(o.baselineOffset, unittest.equals('foo')); | 2527 unittest.expect(o.baselineOffset, unittest.equals('foo')); |
| 2521 unittest.expect(o.bold, unittest.isTrue); | 2528 unittest.expect(o.bold, unittest.isTrue); |
| 2522 unittest.expect(o.fontFamily, unittest.equals('foo')); | 2529 unittest.expect(o.fontFamily, unittest.equals('foo')); |
| 2523 checkDimension(o.fontSize); | 2530 checkDimension(o.fontSize); |
| 2524 checkOptionalColor(o.foregroundColor); | 2531 checkOptionalColor(o.foregroundColor); |
| 2525 unittest.expect(o.italic, unittest.isTrue); | 2532 unittest.expect(o.italic, unittest.isTrue); |
| 2526 checkLink(o.link); | 2533 checkLink(o.link); |
| 2527 unittest.expect(o.smallCaps, unittest.isTrue); | 2534 unittest.expect(o.smallCaps, unittest.isTrue); |
| 2528 unittest.expect(o.strikethrough, unittest.isTrue); | 2535 unittest.expect(o.strikethrough, unittest.isTrue); |
| 2529 unittest.expect(o.underline, unittest.isTrue); | 2536 unittest.expect(o.underline, unittest.isTrue); |
| 2537 checkWeightedFontFamily(o.weightedFontFamily); |
| 2530 } | 2538 } |
| 2531 buildCounterTextStyle--; | 2539 buildCounterTextStyle--; |
| 2532 } | 2540 } |
| 2533 | 2541 |
| 2534 core.int buildCounterThemeColorPair = 0; | 2542 core.int buildCounterThemeColorPair = 0; |
| 2535 buildThemeColorPair() { | 2543 buildThemeColorPair() { |
| 2536 var o = new api.ThemeColorPair(); | 2544 var o = new api.ThemeColorPair(); |
| 2537 buildCounterThemeColorPair++; | 2545 buildCounterThemeColorPair++; |
| 2538 if (buildCounterThemeColorPair < 3) { | 2546 if (buildCounterThemeColorPair < 3) { |
| 2539 o.color = buildRgbColor(); | 2547 o.color = buildRgbColor(); |
| 2540 o.type = "foo"; | 2548 o.type = "foo"; |
| 2541 } | 2549 } |
| 2542 buildCounterThemeColorPair--; | 2550 buildCounterThemeColorPair--; |
| 2543 return o; | 2551 return o; |
| 2544 } | 2552 } |
| 2545 | 2553 |
| 2546 checkThemeColorPair(api.ThemeColorPair o) { | 2554 checkThemeColorPair(api.ThemeColorPair o) { |
| 2547 buildCounterThemeColorPair++; | 2555 buildCounterThemeColorPair++; |
| 2548 if (buildCounterThemeColorPair < 3) { | 2556 if (buildCounterThemeColorPair < 3) { |
| 2549 checkRgbColor(o.color); | 2557 checkRgbColor(o.color); |
| 2550 unittest.expect(o.type, unittest.equals('foo')); | 2558 unittest.expect(o.type, unittest.equals('foo')); |
| 2551 } | 2559 } |
| 2552 buildCounterThemeColorPair--; | 2560 buildCounterThemeColorPair--; |
| 2553 } | 2561 } |
| 2554 | 2562 |
| 2563 core.int buildCounterThumbnail = 0; |
| 2564 buildThumbnail() { |
| 2565 var o = new api.Thumbnail(); |
| 2566 buildCounterThumbnail++; |
| 2567 if (buildCounterThumbnail < 3) { |
| 2568 o.contentUrl = "foo"; |
| 2569 o.height = 42; |
| 2570 o.width = 42; |
| 2571 } |
| 2572 buildCounterThumbnail--; |
| 2573 return o; |
| 2574 } |
| 2575 |
| 2576 checkThumbnail(api.Thumbnail o) { |
| 2577 buildCounterThumbnail++; |
| 2578 if (buildCounterThumbnail < 3) { |
| 2579 unittest.expect(o.contentUrl, unittest.equals('foo')); |
| 2580 unittest.expect(o.height, unittest.equals(42)); |
| 2581 unittest.expect(o.width, unittest.equals(42)); |
| 2582 } |
| 2583 buildCounterThumbnail--; |
| 2584 } |
| 2585 |
| 2555 core.int buildCounterUpdateImagePropertiesRequest = 0; | 2586 core.int buildCounterUpdateImagePropertiesRequest = 0; |
| 2556 buildUpdateImagePropertiesRequest() { | 2587 buildUpdateImagePropertiesRequest() { |
| 2557 var o = new api.UpdateImagePropertiesRequest(); | 2588 var o = new api.UpdateImagePropertiesRequest(); |
| 2558 buildCounterUpdateImagePropertiesRequest++; | 2589 buildCounterUpdateImagePropertiesRequest++; |
| 2559 if (buildCounterUpdateImagePropertiesRequest < 3) { | 2590 if (buildCounterUpdateImagePropertiesRequest < 3) { |
| 2560 o.fields = "foo"; | 2591 o.fields = "foo"; |
| 2561 o.imageProperties = buildImageProperties(); | 2592 o.imageProperties = buildImageProperties(); |
| 2562 o.objectId = "foo"; | 2593 o.objectId = "foo"; |
| 2563 } | 2594 } |
| 2564 buildCounterUpdateImagePropertiesRequest--; | 2595 buildCounterUpdateImagePropertiesRequest--; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2687 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { | 2718 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { |
| 2688 buildCounterUpdateShapePropertiesRequest++; | 2719 buildCounterUpdateShapePropertiesRequest++; |
| 2689 if (buildCounterUpdateShapePropertiesRequest < 3) { | 2720 if (buildCounterUpdateShapePropertiesRequest < 3) { |
| 2690 unittest.expect(o.fields, unittest.equals('foo')); | 2721 unittest.expect(o.fields, unittest.equals('foo')); |
| 2691 unittest.expect(o.objectId, unittest.equals('foo')); | 2722 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2692 checkShapeProperties(o.shapeProperties); | 2723 checkShapeProperties(o.shapeProperties); |
| 2693 } | 2724 } |
| 2694 buildCounterUpdateShapePropertiesRequest--; | 2725 buildCounterUpdateShapePropertiesRequest--; |
| 2695 } | 2726 } |
| 2696 | 2727 |
| 2697 buildUnnamed1474() { | 2728 buildUnnamed1531() { |
| 2698 var o = new core.List<core.String>(); | 2729 var o = new core.List<core.String>(); |
| 2699 o.add("foo"); | 2730 o.add("foo"); |
| 2700 o.add("foo"); | 2731 o.add("foo"); |
| 2701 return o; | 2732 return o; |
| 2702 } | 2733 } |
| 2703 | 2734 |
| 2704 checkUnnamed1474(core.List<core.String> o) { | 2735 checkUnnamed1531(core.List<core.String> o) { |
| 2705 unittest.expect(o, unittest.hasLength(2)); | 2736 unittest.expect(o, unittest.hasLength(2)); |
| 2706 unittest.expect(o[0], unittest.equals('foo')); | 2737 unittest.expect(o[0], unittest.equals('foo')); |
| 2707 unittest.expect(o[1], unittest.equals('foo')); | 2738 unittest.expect(o[1], unittest.equals('foo')); |
| 2708 } | 2739 } |
| 2709 | 2740 |
| 2710 core.int buildCounterUpdateSlidesPositionRequest = 0; | 2741 core.int buildCounterUpdateSlidesPositionRequest = 0; |
| 2711 buildUpdateSlidesPositionRequest() { | 2742 buildUpdateSlidesPositionRequest() { |
| 2712 var o = new api.UpdateSlidesPositionRequest(); | 2743 var o = new api.UpdateSlidesPositionRequest(); |
| 2713 buildCounterUpdateSlidesPositionRequest++; | 2744 buildCounterUpdateSlidesPositionRequest++; |
| 2714 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2745 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2715 o.insertionIndex = 42; | 2746 o.insertionIndex = 42; |
| 2716 o.slideObjectIds = buildUnnamed1474(); | 2747 o.slideObjectIds = buildUnnamed1531(); |
| 2717 } | 2748 } |
| 2718 buildCounterUpdateSlidesPositionRequest--; | 2749 buildCounterUpdateSlidesPositionRequest--; |
| 2719 return o; | 2750 return o; |
| 2720 } | 2751 } |
| 2721 | 2752 |
| 2722 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { | 2753 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { |
| 2723 buildCounterUpdateSlidesPositionRequest++; | 2754 buildCounterUpdateSlidesPositionRequest++; |
| 2724 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2755 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2725 unittest.expect(o.insertionIndex, unittest.equals(42)); | 2756 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 2726 checkUnnamed1474(o.slideObjectIds); | 2757 checkUnnamed1531(o.slideObjectIds); |
| 2727 } | 2758 } |
| 2728 buildCounterUpdateSlidesPositionRequest--; | 2759 buildCounterUpdateSlidesPositionRequest--; |
| 2729 } | 2760 } |
| 2730 | 2761 |
| 2731 core.int buildCounterUpdateTableCellPropertiesRequest = 0; | 2762 core.int buildCounterUpdateTableCellPropertiesRequest = 0; |
| 2732 buildUpdateTableCellPropertiesRequest() { | 2763 buildUpdateTableCellPropertiesRequest() { |
| 2733 var o = new api.UpdateTableCellPropertiesRequest(); | 2764 var o = new api.UpdateTableCellPropertiesRequest(); |
| 2734 buildCounterUpdateTableCellPropertiesRequest++; | 2765 buildCounterUpdateTableCellPropertiesRequest++; |
| 2735 if (buildCounterUpdateTableCellPropertiesRequest < 3) { | 2766 if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| 2736 o.fields = "foo"; | 2767 o.fields = "foo"; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 } | 2871 } |
| 2841 | 2872 |
| 2842 checkVideoProperties(api.VideoProperties o) { | 2873 checkVideoProperties(api.VideoProperties o) { |
| 2843 buildCounterVideoProperties++; | 2874 buildCounterVideoProperties++; |
| 2844 if (buildCounterVideoProperties < 3) { | 2875 if (buildCounterVideoProperties < 3) { |
| 2845 checkOutline(o.outline); | 2876 checkOutline(o.outline); |
| 2846 } | 2877 } |
| 2847 buildCounterVideoProperties--; | 2878 buildCounterVideoProperties--; |
| 2848 } | 2879 } |
| 2849 | 2880 |
| 2881 core.int buildCounterWeightedFontFamily = 0; |
| 2882 buildWeightedFontFamily() { |
| 2883 var o = new api.WeightedFontFamily(); |
| 2884 buildCounterWeightedFontFamily++; |
| 2885 if (buildCounterWeightedFontFamily < 3) { |
| 2886 o.fontFamily = "foo"; |
| 2887 o.weight = 42; |
| 2888 } |
| 2889 buildCounterWeightedFontFamily--; |
| 2890 return o; |
| 2891 } |
| 2892 |
| 2893 checkWeightedFontFamily(api.WeightedFontFamily o) { |
| 2894 buildCounterWeightedFontFamily++; |
| 2895 if (buildCounterWeightedFontFamily < 3) { |
| 2896 unittest.expect(o.fontFamily, unittest.equals('foo')); |
| 2897 unittest.expect(o.weight, unittest.equals(42)); |
| 2898 } |
| 2899 buildCounterWeightedFontFamily--; |
| 2900 } |
| 2901 |
| 2850 core.int buildCounterWordArt = 0; | 2902 core.int buildCounterWordArt = 0; |
| 2851 buildWordArt() { | 2903 buildWordArt() { |
| 2852 var o = new api.WordArt(); | 2904 var o = new api.WordArt(); |
| 2853 buildCounterWordArt++; | 2905 buildCounterWordArt++; |
| 2854 if (buildCounterWordArt < 3) { | 2906 if (buildCounterWordArt < 3) { |
| 2855 o.renderedText = "foo"; | 2907 o.renderedText = "foo"; |
| 2856 } | 2908 } |
| 2857 buildCounterWordArt--; | 2909 buildCounterWordArt--; |
| 2858 return o; | 2910 return o; |
| 2859 } | 2911 } |
| 2860 | 2912 |
| 2861 checkWordArt(api.WordArt o) { | 2913 checkWordArt(api.WordArt o) { |
| 2862 buildCounterWordArt++; | 2914 buildCounterWordArt++; |
| 2863 if (buildCounterWordArt < 3) { | 2915 if (buildCounterWordArt < 3) { |
| 2864 unittest.expect(o.renderedText, unittest.equals('foo')); | 2916 unittest.expect(o.renderedText, unittest.equals('foo')); |
| 2865 } | 2917 } |
| 2866 buildCounterWordArt--; | 2918 buildCounterWordArt--; |
| 2867 } | 2919 } |
| 2868 | 2920 |
| 2921 core.int buildCounterWriteControl = 0; |
| 2922 buildWriteControl() { |
| 2923 var o = new api.WriteControl(); |
| 2924 buildCounterWriteControl++; |
| 2925 if (buildCounterWriteControl < 3) { |
| 2926 o.requiredRevisionId = "foo"; |
| 2927 } |
| 2928 buildCounterWriteControl--; |
| 2929 return o; |
| 2930 } |
| 2931 |
| 2932 checkWriteControl(api.WriteControl o) { |
| 2933 buildCounterWriteControl++; |
| 2934 if (buildCounterWriteControl < 3) { |
| 2935 unittest.expect(o.requiredRevisionId, unittest.equals('foo')); |
| 2936 } |
| 2937 buildCounterWriteControl--; |
| 2938 } |
| 2939 |
| 2869 | 2940 |
| 2870 main() { | 2941 main() { |
| 2871 unittest.group("obj-schema-AffineTransform", () { | 2942 unittest.group("obj-schema-AffineTransform", () { |
| 2872 unittest.test("to-json--from-json", () { | 2943 unittest.test("to-json--from-json", () { |
| 2873 var o = buildAffineTransform(); | 2944 var o = buildAffineTransform(); |
| 2874 var od = new api.AffineTransform.fromJson(o.toJson()); | 2945 var od = new api.AffineTransform.fromJson(o.toJson()); |
| 2875 checkAffineTransform(od); | 2946 checkAffineTransform(od); |
| 2876 }); | 2947 }); |
| 2877 }); | 2948 }); |
| 2878 | 2949 |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3725 | 3796 |
| 3726 unittest.group("obj-schema-ThemeColorPair", () { | 3797 unittest.group("obj-schema-ThemeColorPair", () { |
| 3727 unittest.test("to-json--from-json", () { | 3798 unittest.test("to-json--from-json", () { |
| 3728 var o = buildThemeColorPair(); | 3799 var o = buildThemeColorPair(); |
| 3729 var od = new api.ThemeColorPair.fromJson(o.toJson()); | 3800 var od = new api.ThemeColorPair.fromJson(o.toJson()); |
| 3730 checkThemeColorPair(od); | 3801 checkThemeColorPair(od); |
| 3731 }); | 3802 }); |
| 3732 }); | 3803 }); |
| 3733 | 3804 |
| 3734 | 3805 |
| 3806 unittest.group("obj-schema-Thumbnail", () { |
| 3807 unittest.test("to-json--from-json", () { |
| 3808 var o = buildThumbnail(); |
| 3809 var od = new api.Thumbnail.fromJson(o.toJson()); |
| 3810 checkThumbnail(od); |
| 3811 }); |
| 3812 }); |
| 3813 |
| 3814 |
| 3735 unittest.group("obj-schema-UpdateImagePropertiesRequest", () { | 3815 unittest.group("obj-schema-UpdateImagePropertiesRequest", () { |
| 3736 unittest.test("to-json--from-json", () { | 3816 unittest.test("to-json--from-json", () { |
| 3737 var o = buildUpdateImagePropertiesRequest(); | 3817 var o = buildUpdateImagePropertiesRequest(); |
| 3738 var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); | 3818 var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); |
| 3739 checkUpdateImagePropertiesRequest(od); | 3819 checkUpdateImagePropertiesRequest(od); |
| 3740 }); | 3820 }); |
| 3741 }); | 3821 }); |
| 3742 | 3822 |
| 3743 | 3823 |
| 3744 unittest.group("obj-schema-UpdateLinePropertiesRequest", () { | 3824 unittest.group("obj-schema-UpdateLinePropertiesRequest", () { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3833 | 3913 |
| 3834 unittest.group("obj-schema-VideoProperties", () { | 3914 unittest.group("obj-schema-VideoProperties", () { |
| 3835 unittest.test("to-json--from-json", () { | 3915 unittest.test("to-json--from-json", () { |
| 3836 var o = buildVideoProperties(); | 3916 var o = buildVideoProperties(); |
| 3837 var od = new api.VideoProperties.fromJson(o.toJson()); | 3917 var od = new api.VideoProperties.fromJson(o.toJson()); |
| 3838 checkVideoProperties(od); | 3918 checkVideoProperties(od); |
| 3839 }); | 3919 }); |
| 3840 }); | 3920 }); |
| 3841 | 3921 |
| 3842 | 3922 |
| 3923 unittest.group("obj-schema-WeightedFontFamily", () { |
| 3924 unittest.test("to-json--from-json", () { |
| 3925 var o = buildWeightedFontFamily(); |
| 3926 var od = new api.WeightedFontFamily.fromJson(o.toJson()); |
| 3927 checkWeightedFontFamily(od); |
| 3928 }); |
| 3929 }); |
| 3930 |
| 3931 |
| 3843 unittest.group("obj-schema-WordArt", () { | 3932 unittest.group("obj-schema-WordArt", () { |
| 3844 unittest.test("to-json--from-json", () { | 3933 unittest.test("to-json--from-json", () { |
| 3845 var o = buildWordArt(); | 3934 var o = buildWordArt(); |
| 3846 var od = new api.WordArt.fromJson(o.toJson()); | 3935 var od = new api.WordArt.fromJson(o.toJson()); |
| 3847 checkWordArt(od); | 3936 checkWordArt(od); |
| 3848 }); | 3937 }); |
| 3849 }); | 3938 }); |
| 3850 | 3939 |
| 3851 | 3940 |
| 3941 unittest.group("obj-schema-WriteControl", () { |
| 3942 unittest.test("to-json--from-json", () { |
| 3943 var o = buildWriteControl(); |
| 3944 var od = new api.WriteControl.fromJson(o.toJson()); |
| 3945 checkWriteControl(od); |
| 3946 }); |
| 3947 }); |
| 3948 |
| 3949 |
| 3852 unittest.group("resource-PresentationsResourceApi", () { | 3950 unittest.group("resource-PresentationsResourceApi", () { |
| 3853 unittest.test("method--batchUpdate", () { | 3951 unittest.test("method--batchUpdate", () { |
| 3854 | 3952 |
| 3855 var mock = new HttpServerMock(); | 3953 var mock = new HttpServerMock(); |
| 3856 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; | 3954 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 3857 var arg_request = buildBatchUpdatePresentationRequest(); | 3955 var arg_request = buildBatchUpdatePresentationRequest(); |
| 3858 var arg_presentationId = "foo"; | 3956 var arg_presentationId = "foo"; |
| 3859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3957 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3860 var obj = new api.BatchUpdatePresentationRequest.fromJson(json); | 3958 var obj = new api.BatchUpdatePresentationRequest.fromJson(json); |
| 3861 checkBatchUpdatePresentationRequest(obj); | 3959 checkBatchUpdatePresentationRequest(obj); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4049 "content-type" : "application/json; charset=utf-8", | 4147 "content-type" : "application/json; charset=utf-8", |
| 4050 }; | 4148 }; |
| 4051 var resp = convert.JSON.encode(buildPage()); | 4149 var resp = convert.JSON.encode(buildPage()); |
| 4052 return new async.Future.value(stringResponse(200, h, resp)); | 4150 return new async.Future.value(stringResponse(200, h, resp)); |
| 4053 }), true); | 4151 }), true); |
| 4054 res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync(((
api.Page response) { | 4152 res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync(((
api.Page response) { |
| 4055 checkPage(response); | 4153 checkPage(response); |
| 4056 }))); | 4154 }))); |
| 4057 }); | 4155 }); |
| 4058 | 4156 |
| 4157 unittest.test("method--getThumbnail", () { |
| 4158 |
| 4159 var mock = new HttpServerMock(); |
| 4160 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; |
| 4161 var arg_presentationId = "foo"; |
| 4162 var arg_pageObjectId = "foo"; |
| 4163 var arg_thumbnailProperties_mimeType = "foo"; |
| 4164 var arg_thumbnailProperties_thumbnailSize = "foo"; |
| 4165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4166 var path = (req.url).path; |
| 4167 var pathOffset = 0; |
| 4168 var index; |
| 4169 var subPart; |
| 4170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4171 pathOffset += 1; |
| 4172 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); |
| 4173 pathOffset += 17; |
| 4174 index = path.indexOf("/pages/", pathOffset); |
| 4175 unittest.expect(index >= 0, unittest.isTrue); |
| 4176 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4177 pathOffset = index; |
| 4178 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 4179 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/pages/")); |
| 4180 pathOffset += 7; |
| 4181 index = path.indexOf("/thumbnail", pathOffset); |
| 4182 unittest.expect(index >= 0, unittest.isTrue); |
| 4183 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4184 pathOffset = index; |
| 4185 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); |
| 4186 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/thumbnail")); |
| 4187 pathOffset += 10; |
| 4188 |
| 4189 var query = (req.url).query; |
| 4190 var queryOffset = 0; |
| 4191 var queryMap = {}; |
| 4192 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4193 parseBool(n) { |
| 4194 if (n == "true") return true; |
| 4195 if (n == "false") return false; |
| 4196 if (n == null) return null; |
| 4197 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4198 } |
| 4199 if (query.length > 0) { |
| 4200 for (var part in query.split("&")) { |
| 4201 var keyvalue = part.split("="); |
| 4202 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4203 } |
| 4204 } |
| 4205 unittest.expect(queryMap["thumbnailProperties.mimeType"].first, unittest
.equals(arg_thumbnailProperties_mimeType)); |
| 4206 unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, uni
ttest.equals(arg_thumbnailProperties_thumbnailSize)); |
| 4207 |
| 4208 |
| 4209 var h = { |
| 4210 "content-type" : "application/json; charset=utf-8", |
| 4211 }; |
| 4212 var resp = convert.JSON.encode(buildThumbnail()); |
| 4213 return new async.Future.value(stringResponse(200, h, resp)); |
| 4214 }), true); |
| 4215 res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties
_mimeType: arg_thumbnailProperties_mimeType, thumbnailProperties_thumbnailSize:
arg_thumbnailProperties_thumbnailSize).then(unittest.expectAsync(((api.Thumbnail
response) { |
| 4216 checkThumbnail(response); |
| 4217 }))); |
| 4218 }); |
| 4219 |
| 4059 }); | 4220 }); |
| 4060 | 4221 |
| 4061 | 4222 |
| 4062 } | 4223 } |
| 4063 | 4224 |
| OLD | NEW |