| 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; | |
| 5 import "dart:async" as async; | 4 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; |
| 7 | 6 |
| 8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | |
| 10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; |
| 11 | 9 |
| 12 import 'package:googleapis/slides/v1.dart' as api; | 10 import 'package:googleapis/slides/v1.dart' as api; |
| 13 | 11 |
| 14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 13 core.Function _callback; |
| 16 core.bool _expectJson; | 14 core.bool _expectJson; |
| 17 | 15 |
| 18 void register(core.Function callback, core.bool expectJson) { | 16 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 17 _callback = callback; |
| 20 _expectJson = expectJson; | 18 _expectJson = expectJson; |
| 21 } | 19 } |
| 22 | 20 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { | 22 if (_expectJson) { |
| 25 return request.finalize() | 23 return request |
| 24 .finalize() |
| 26 .transform(convert.UTF8.decoder) | 25 .transform(convert.UTF8.decoder) |
| 27 .join('') | 26 .join('') |
| 28 .then((core.String jsonString) { | 27 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { | 28 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); | 29 return _callback(request, null); |
| 31 } else { | 30 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); | 31 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } | 32 } |
| 34 }); | 33 }); |
| 35 } else { | 34 } else { |
| 36 var stream = request.finalize(); | 35 var stream = request.finalize(); |
| 37 if (stream == null) { | 36 if (stream == null) { |
| 38 return _callback(request, []); | 37 return _callback(request, []); |
| 39 } else { | 38 } else { |
| 40 return stream.toBytes().then((data) { | 39 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 40 return _callback(request, data); |
| 42 }); | 41 }); |
| 43 } | 42 } |
| 44 } | 43 } |
| 45 } | 44 } |
| 46 } | 45 } |
| 47 | 46 |
| 48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, |
| 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 48 core.Map<core.String, core.String> headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 50 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 51 } |
| 53 | 52 |
| 54 core.int buildCounterAffineTransform = 0; | 53 core.int buildCounterAffineTransform = 0; |
| 55 buildAffineTransform() { | 54 buildAffineTransform() { |
| 56 var o = new api.AffineTransform(); | 55 var o = new api.AffineTransform(); |
| 57 buildCounterAffineTransform++; | 56 buildCounterAffineTransform++; |
| 58 if (buildCounterAffineTransform < 3) { | 57 if (buildCounterAffineTransform < 3) { |
| 59 o.scaleX = 42.0; | 58 o.scaleX = 42.0; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 checkAutoText(api.AutoText o) { | 97 checkAutoText(api.AutoText o) { |
| 99 buildCounterAutoText++; | 98 buildCounterAutoText++; |
| 100 if (buildCounterAutoText < 3) { | 99 if (buildCounterAutoText < 3) { |
| 101 unittest.expect(o.content, unittest.equals('foo')); | 100 unittest.expect(o.content, unittest.equals('foo')); |
| 102 checkTextStyle(o.style); | 101 checkTextStyle(o.style); |
| 103 unittest.expect(o.type, unittest.equals('foo')); | 102 unittest.expect(o.type, unittest.equals('foo')); |
| 104 } | 103 } |
| 105 buildCounterAutoText--; | 104 buildCounterAutoText--; |
| 106 } | 105 } |
| 107 | 106 |
| 108 buildUnnamed1730() { | 107 buildUnnamed1728() { |
| 109 var o = new core.List<api.Request>(); | 108 var o = new core.List<api.Request>(); |
| 110 o.add(buildRequest()); | 109 o.add(buildRequest()); |
| 111 o.add(buildRequest()); | 110 o.add(buildRequest()); |
| 112 return o; | 111 return o; |
| 113 } | 112 } |
| 114 | 113 |
| 115 checkUnnamed1730(core.List<api.Request> o) { | 114 checkUnnamed1728(core.List<api.Request> o) { |
| 116 unittest.expect(o, unittest.hasLength(2)); | 115 unittest.expect(o, unittest.hasLength(2)); |
| 117 checkRequest(o[0]); | 116 checkRequest(o[0]); |
| 118 checkRequest(o[1]); | 117 checkRequest(o[1]); |
| 119 } | 118 } |
| 120 | 119 |
| 121 core.int buildCounterBatchUpdatePresentationRequest = 0; | 120 core.int buildCounterBatchUpdatePresentationRequest = 0; |
| 122 buildBatchUpdatePresentationRequest() { | 121 buildBatchUpdatePresentationRequest() { |
| 123 var o = new api.BatchUpdatePresentationRequest(); | 122 var o = new api.BatchUpdatePresentationRequest(); |
| 124 buildCounterBatchUpdatePresentationRequest++; | 123 buildCounterBatchUpdatePresentationRequest++; |
| 125 if (buildCounterBatchUpdatePresentationRequest < 3) { | 124 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 126 o.requests = buildUnnamed1730(); | 125 o.requests = buildUnnamed1728(); |
| 127 o.writeControl = buildWriteControl(); | 126 o.writeControl = buildWriteControl(); |
| 128 } | 127 } |
| 129 buildCounterBatchUpdatePresentationRequest--; | 128 buildCounterBatchUpdatePresentationRequest--; |
| 130 return o; | 129 return o; |
| 131 } | 130 } |
| 132 | 131 |
| 133 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { | 132 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { |
| 134 buildCounterBatchUpdatePresentationRequest++; | 133 buildCounterBatchUpdatePresentationRequest++; |
| 135 if (buildCounterBatchUpdatePresentationRequest < 3) { | 134 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 136 checkUnnamed1730(o.requests); | 135 checkUnnamed1728(o.requests); |
| 137 checkWriteControl(o.writeControl); | 136 checkWriteControl(o.writeControl); |
| 138 } | 137 } |
| 139 buildCounterBatchUpdatePresentationRequest--; | 138 buildCounterBatchUpdatePresentationRequest--; |
| 140 } | 139 } |
| 141 | 140 |
| 142 buildUnnamed1731() { | 141 buildUnnamed1729() { |
| 143 var o = new core.List<api.Response>(); | 142 var o = new core.List<api.Response>(); |
| 144 o.add(buildResponse()); | 143 o.add(buildResponse()); |
| 145 o.add(buildResponse()); | 144 o.add(buildResponse()); |
| 146 return o; | 145 return o; |
| 147 } | 146 } |
| 148 | 147 |
| 149 checkUnnamed1731(core.List<api.Response> o) { | 148 checkUnnamed1729(core.List<api.Response> o) { |
| 150 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 151 checkResponse(o[0]); | 150 checkResponse(o[0]); |
| 152 checkResponse(o[1]); | 151 checkResponse(o[1]); |
| 153 } | 152 } |
| 154 | 153 |
| 155 core.int buildCounterBatchUpdatePresentationResponse = 0; | 154 core.int buildCounterBatchUpdatePresentationResponse = 0; |
| 156 buildBatchUpdatePresentationResponse() { | 155 buildBatchUpdatePresentationResponse() { |
| 157 var o = new api.BatchUpdatePresentationResponse(); | 156 var o = new api.BatchUpdatePresentationResponse(); |
| 158 buildCounterBatchUpdatePresentationResponse++; | 157 buildCounterBatchUpdatePresentationResponse++; |
| 159 if (buildCounterBatchUpdatePresentationResponse < 3) { | 158 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 160 o.presentationId = "foo"; | 159 o.presentationId = "foo"; |
| 161 o.replies = buildUnnamed1731(); | 160 o.replies = buildUnnamed1729(); |
| 162 } | 161 } |
| 163 buildCounterBatchUpdatePresentationResponse--; | 162 buildCounterBatchUpdatePresentationResponse--; |
| 164 return o; | 163 return o; |
| 165 } | 164 } |
| 166 | 165 |
| 167 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { | 166 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { |
| 168 buildCounterBatchUpdatePresentationResponse++; | 167 buildCounterBatchUpdatePresentationResponse++; |
| 169 if (buildCounterBatchUpdatePresentationResponse < 3) { | 168 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 170 unittest.expect(o.presentationId, unittest.equals('foo')); | 169 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 171 checkUnnamed1731(o.replies); | 170 checkUnnamed1729(o.replies); |
| 172 } | 171 } |
| 173 buildCounterBatchUpdatePresentationResponse--; | 172 buildCounterBatchUpdatePresentationResponse--; |
| 174 } | 173 } |
| 175 | 174 |
| 176 core.int buildCounterBullet = 0; | 175 core.int buildCounterBullet = 0; |
| 177 buildBullet() { | 176 buildBullet() { |
| 178 var o = new api.Bullet(); | 177 var o = new api.Bullet(); |
| 179 buildCounterBullet++; | 178 buildCounterBullet++; |
| 180 if (buildCounterBullet < 3) { | 179 if (buildCounterBullet < 3) { |
| 181 o.bulletStyle = buildTextStyle(); | 180 o.bulletStyle = buildTextStyle(); |
| 182 o.glyph = "foo"; | 181 o.glyph = "foo"; |
| 183 o.listId = "foo"; | 182 o.listId = "foo"; |
| 184 o.nestingLevel = 42; | 183 o.nestingLevel = 42; |
| 185 } | 184 } |
| 186 buildCounterBullet--; | 185 buildCounterBullet--; |
| 187 return o; | 186 return o; |
| 188 } | 187 } |
| 189 | 188 |
| 190 checkBullet(api.Bullet o) { | 189 checkBullet(api.Bullet o) { |
| 191 buildCounterBullet++; | 190 buildCounterBullet++; |
| 192 if (buildCounterBullet < 3) { | 191 if (buildCounterBullet < 3) { |
| 193 checkTextStyle(o.bulletStyle); | 192 checkTextStyle(o.bulletStyle); |
| 194 unittest.expect(o.glyph, unittest.equals('foo')); | 193 unittest.expect(o.glyph, unittest.equals('foo')); |
| 195 unittest.expect(o.listId, unittest.equals('foo')); | 194 unittest.expect(o.listId, unittest.equals('foo')); |
| 196 unittest.expect(o.nestingLevel, unittest.equals(42)); | 195 unittest.expect(o.nestingLevel, unittest.equals(42)); |
| 197 } | 196 } |
| 198 buildCounterBullet--; | 197 buildCounterBullet--; |
| 199 } | 198 } |
| 200 | 199 |
| 201 buildUnnamed1732() { | 200 buildUnnamed1730() { |
| 202 var o = new core.List<api.ThemeColorPair>(); | 201 var o = new core.List<api.ThemeColorPair>(); |
| 203 o.add(buildThemeColorPair()); | 202 o.add(buildThemeColorPair()); |
| 204 o.add(buildThemeColorPair()); | 203 o.add(buildThemeColorPair()); |
| 205 return o; | 204 return o; |
| 206 } | 205 } |
| 207 | 206 |
| 208 checkUnnamed1732(core.List<api.ThemeColorPair> o) { | 207 checkUnnamed1730(core.List<api.ThemeColorPair> o) { |
| 209 unittest.expect(o, unittest.hasLength(2)); | 208 unittest.expect(o, unittest.hasLength(2)); |
| 210 checkThemeColorPair(o[0]); | 209 checkThemeColorPair(o[0]); |
| 211 checkThemeColorPair(o[1]); | 210 checkThemeColorPair(o[1]); |
| 212 } | 211 } |
| 213 | 212 |
| 214 core.int buildCounterColorScheme = 0; | 213 core.int buildCounterColorScheme = 0; |
| 215 buildColorScheme() { | 214 buildColorScheme() { |
| 216 var o = new api.ColorScheme(); | 215 var o = new api.ColorScheme(); |
| 217 buildCounterColorScheme++; | 216 buildCounterColorScheme++; |
| 218 if (buildCounterColorScheme < 3) { | 217 if (buildCounterColorScheme < 3) { |
| 219 o.colors = buildUnnamed1732(); | 218 o.colors = buildUnnamed1730(); |
| 220 } | 219 } |
| 221 buildCounterColorScheme--; | 220 buildCounterColorScheme--; |
| 222 return o; | 221 return o; |
| 223 } | 222 } |
| 224 | 223 |
| 225 checkColorScheme(api.ColorScheme o) { | 224 checkColorScheme(api.ColorScheme o) { |
| 226 buildCounterColorScheme++; | 225 buildCounterColorScheme++; |
| 227 if (buildCounterColorScheme < 3) { | 226 if (buildCounterColorScheme < 3) { |
| 228 checkUnnamed1732(o.colors); | 227 checkUnnamed1730(o.colors); |
| 229 } | 228 } |
| 230 buildCounterColorScheme--; | 229 buildCounterColorScheme--; |
| 231 } | 230 } |
| 232 | 231 |
| 233 core.int buildCounterColorStop = 0; | 232 core.int buildCounterColorStop = 0; |
| 234 buildColorStop() { | 233 buildColorStop() { |
| 235 var o = new api.ColorStop(); | 234 var o = new api.ColorStop(); |
| 236 buildCounterColorStop++; | 235 buildCounterColorStop++; |
| 237 if (buildCounterColorStop < 3) { | 236 if (buildCounterColorStop < 3) { |
| 238 o.alpha = 42.0; | 237 o.alpha = 42.0; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 442 } |
| 444 | 443 |
| 445 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { | 444 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { |
| 446 buildCounterCreateSheetsChartResponse++; | 445 buildCounterCreateSheetsChartResponse++; |
| 447 if (buildCounterCreateSheetsChartResponse < 3) { | 446 if (buildCounterCreateSheetsChartResponse < 3) { |
| 448 unittest.expect(o.objectId, unittest.equals('foo')); | 447 unittest.expect(o.objectId, unittest.equals('foo')); |
| 449 } | 448 } |
| 450 buildCounterCreateSheetsChartResponse--; | 449 buildCounterCreateSheetsChartResponse--; |
| 451 } | 450 } |
| 452 | 451 |
| 453 buildUnnamed1733() { | 452 buildUnnamed1731() { |
| 454 var o = new core.List<api.LayoutPlaceholderIdMapping>(); | 453 var o = new core.List<api.LayoutPlaceholderIdMapping>(); |
| 455 o.add(buildLayoutPlaceholderIdMapping()); | 454 o.add(buildLayoutPlaceholderIdMapping()); |
| 456 o.add(buildLayoutPlaceholderIdMapping()); | 455 o.add(buildLayoutPlaceholderIdMapping()); |
| 457 return o; | 456 return o; |
| 458 } | 457 } |
| 459 | 458 |
| 460 checkUnnamed1733(core.List<api.LayoutPlaceholderIdMapping> o) { | 459 checkUnnamed1731(core.List<api.LayoutPlaceholderIdMapping> o) { |
| 461 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
| 462 checkLayoutPlaceholderIdMapping(o[0]); | 461 checkLayoutPlaceholderIdMapping(o[0]); |
| 463 checkLayoutPlaceholderIdMapping(o[1]); | 462 checkLayoutPlaceholderIdMapping(o[1]); |
| 464 } | 463 } |
| 465 | 464 |
| 466 core.int buildCounterCreateSlideRequest = 0; | 465 core.int buildCounterCreateSlideRequest = 0; |
| 467 buildCreateSlideRequest() { | 466 buildCreateSlideRequest() { |
| 468 var o = new api.CreateSlideRequest(); | 467 var o = new api.CreateSlideRequest(); |
| 469 buildCounterCreateSlideRequest++; | 468 buildCounterCreateSlideRequest++; |
| 470 if (buildCounterCreateSlideRequest < 3) { | 469 if (buildCounterCreateSlideRequest < 3) { |
| 471 o.insertionIndex = 42; | 470 o.insertionIndex = 42; |
| 472 o.objectId = "foo"; | 471 o.objectId = "foo"; |
| 473 o.placeholderIdMappings = buildUnnamed1733(); | 472 o.placeholderIdMappings = buildUnnamed1731(); |
| 474 o.slideLayoutReference = buildLayoutReference(); | 473 o.slideLayoutReference = buildLayoutReference(); |
| 475 } | 474 } |
| 476 buildCounterCreateSlideRequest--; | 475 buildCounterCreateSlideRequest--; |
| 477 return o; | 476 return o; |
| 478 } | 477 } |
| 479 | 478 |
| 480 checkCreateSlideRequest(api.CreateSlideRequest o) { | 479 checkCreateSlideRequest(api.CreateSlideRequest o) { |
| 481 buildCounterCreateSlideRequest++; | 480 buildCounterCreateSlideRequest++; |
| 482 if (buildCounterCreateSlideRequest < 3) { | 481 if (buildCounterCreateSlideRequest < 3) { |
| 483 unittest.expect(o.insertionIndex, unittest.equals(42)); | 482 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 484 unittest.expect(o.objectId, unittest.equals('foo')); | 483 unittest.expect(o.objectId, unittest.equals('foo')); |
| 485 checkUnnamed1733(o.placeholderIdMappings); | 484 checkUnnamed1731(o.placeholderIdMappings); |
| 486 checkLayoutReference(o.slideLayoutReference); | 485 checkLayoutReference(o.slideLayoutReference); |
| 487 } | 486 } |
| 488 buildCounterCreateSlideRequest--; | 487 buildCounterCreateSlideRequest--; |
| 489 } | 488 } |
| 490 | 489 |
| 491 core.int buildCounterCreateSlideResponse = 0; | 490 core.int buildCounterCreateSlideResponse = 0; |
| 492 buildCreateSlideResponse() { | 491 buildCreateSlideResponse() { |
| 493 var o = new api.CreateSlideResponse(); | 492 var o = new api.CreateSlideResponse(); |
| 494 buildCounterCreateSlideResponse++; | 493 buildCounterCreateSlideResponse++; |
| 495 if (buildCounterCreateSlideResponse < 3) { | 494 if (buildCounterCreateSlideResponse < 3) { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 | 742 |
| 744 checkDimension(api.Dimension o) { | 743 checkDimension(api.Dimension o) { |
| 745 buildCounterDimension++; | 744 buildCounterDimension++; |
| 746 if (buildCounterDimension < 3) { | 745 if (buildCounterDimension < 3) { |
| 747 unittest.expect(o.magnitude, unittest.equals(42.0)); | 746 unittest.expect(o.magnitude, unittest.equals(42.0)); |
| 748 unittest.expect(o.unit, unittest.equals('foo')); | 747 unittest.expect(o.unit, unittest.equals('foo')); |
| 749 } | 748 } |
| 750 buildCounterDimension--; | 749 buildCounterDimension--; |
| 751 } | 750 } |
| 752 | 751 |
| 753 buildUnnamed1734() { | 752 buildUnnamed1732() { |
| 754 var o = new core.Map<core.String, core.String>(); | 753 var o = new core.Map<core.String, core.String>(); |
| 755 o["x"] = "foo"; | 754 o["x"] = "foo"; |
| 756 o["y"] = "foo"; | 755 o["y"] = "foo"; |
| 757 return o; | 756 return o; |
| 758 } | 757 } |
| 759 | 758 |
| 760 checkUnnamed1734(core.Map<core.String, core.String> o) { | 759 checkUnnamed1732(core.Map<core.String, core.String> o) { |
| 761 unittest.expect(o, unittest.hasLength(2)); | 760 unittest.expect(o, unittest.hasLength(2)); |
| 762 unittest.expect(o["x"], unittest.equals('foo')); | 761 unittest.expect(o["x"], unittest.equals('foo')); |
| 763 unittest.expect(o["y"], unittest.equals('foo')); | 762 unittest.expect(o["y"], unittest.equals('foo')); |
| 764 } | 763 } |
| 765 | 764 |
| 766 core.int buildCounterDuplicateObjectRequest = 0; | 765 core.int buildCounterDuplicateObjectRequest = 0; |
| 767 buildDuplicateObjectRequest() { | 766 buildDuplicateObjectRequest() { |
| 768 var o = new api.DuplicateObjectRequest(); | 767 var o = new api.DuplicateObjectRequest(); |
| 769 buildCounterDuplicateObjectRequest++; | 768 buildCounterDuplicateObjectRequest++; |
| 770 if (buildCounterDuplicateObjectRequest < 3) { | 769 if (buildCounterDuplicateObjectRequest < 3) { |
| 771 o.objectId = "foo"; | 770 o.objectId = "foo"; |
| 772 o.objectIds = buildUnnamed1734(); | 771 o.objectIds = buildUnnamed1732(); |
| 773 } | 772 } |
| 774 buildCounterDuplicateObjectRequest--; | 773 buildCounterDuplicateObjectRequest--; |
| 775 return o; | 774 return o; |
| 776 } | 775 } |
| 777 | 776 |
| 778 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { | 777 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { |
| 779 buildCounterDuplicateObjectRequest++; | 778 buildCounterDuplicateObjectRequest++; |
| 780 if (buildCounterDuplicateObjectRequest < 3) { | 779 if (buildCounterDuplicateObjectRequest < 3) { |
| 781 unittest.expect(o.objectId, unittest.equals('foo')); | 780 unittest.expect(o.objectId, unittest.equals('foo')); |
| 782 checkUnnamed1734(o.objectIds); | 781 checkUnnamed1732(o.objectIds); |
| 783 } | 782 } |
| 784 buildCounterDuplicateObjectRequest--; | 783 buildCounterDuplicateObjectRequest--; |
| 785 } | 784 } |
| 786 | 785 |
| 787 core.int buildCounterDuplicateObjectResponse = 0; | 786 core.int buildCounterDuplicateObjectResponse = 0; |
| 788 buildDuplicateObjectResponse() { | 787 buildDuplicateObjectResponse() { |
| 789 var o = new api.DuplicateObjectResponse(); | 788 var o = new api.DuplicateObjectResponse(); |
| 790 buildCounterDuplicateObjectResponse++; | 789 buildCounterDuplicateObjectResponse++; |
| 791 if (buildCounterDuplicateObjectResponse < 3) { | 790 if (buildCounterDuplicateObjectResponse < 3) { |
| 792 o.objectId = "foo"; | 791 o.objectId = "foo"; |
| 793 } | 792 } |
| 794 buildCounterDuplicateObjectResponse--; | 793 buildCounterDuplicateObjectResponse--; |
| 795 return o; | 794 return o; |
| 796 } | 795 } |
| 797 | 796 |
| 798 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { | 797 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { |
| 799 buildCounterDuplicateObjectResponse++; | 798 buildCounterDuplicateObjectResponse++; |
| 800 if (buildCounterDuplicateObjectResponse < 3) { | 799 if (buildCounterDuplicateObjectResponse < 3) { |
| 801 unittest.expect(o.objectId, unittest.equals('foo')); | 800 unittest.expect(o.objectId, unittest.equals('foo')); |
| 802 } | 801 } |
| 803 buildCounterDuplicateObjectResponse--; | 802 buildCounterDuplicateObjectResponse--; |
| 804 } | 803 } |
| 805 | 804 |
| 806 buildUnnamed1735() { | 805 buildUnnamed1733() { |
| 807 var o = new core.List<api.PageElement>(); | 806 var o = new core.List<api.PageElement>(); |
| 808 o.add(buildPageElement()); | 807 o.add(buildPageElement()); |
| 809 o.add(buildPageElement()); | 808 o.add(buildPageElement()); |
| 810 return o; | 809 return o; |
| 811 } | 810 } |
| 812 | 811 |
| 813 checkUnnamed1735(core.List<api.PageElement> o) { | 812 checkUnnamed1733(core.List<api.PageElement> o) { |
| 814 unittest.expect(o, unittest.hasLength(2)); | 813 unittest.expect(o, unittest.hasLength(2)); |
| 815 checkPageElement(o[0]); | 814 checkPageElement(o[0]); |
| 816 checkPageElement(o[1]); | 815 checkPageElement(o[1]); |
| 817 } | 816 } |
| 818 | 817 |
| 819 core.int buildCounterGroup = 0; | 818 core.int buildCounterGroup = 0; |
| 820 buildGroup() { | 819 buildGroup() { |
| 821 var o = new api.Group(); | 820 var o = new api.Group(); |
| 822 buildCounterGroup++; | 821 buildCounterGroup++; |
| 823 if (buildCounterGroup < 3) { | 822 if (buildCounterGroup < 3) { |
| 824 o.children = buildUnnamed1735(); | 823 o.children = buildUnnamed1733(); |
| 825 } | 824 } |
| 826 buildCounterGroup--; | 825 buildCounterGroup--; |
| 827 return o; | 826 return o; |
| 828 } | 827 } |
| 829 | 828 |
| 830 checkGroup(api.Group o) { | 829 checkGroup(api.Group o) { |
| 831 buildCounterGroup++; | 830 buildCounterGroup++; |
| 832 if (buildCounterGroup < 3) { | 831 if (buildCounterGroup < 3) { |
| 833 checkUnnamed1735(o.children); | 832 checkUnnamed1733(o.children); |
| 834 } | 833 } |
| 835 buildCounterGroup--; | 834 buildCounterGroup--; |
| 836 } | 835 } |
| 837 | 836 |
| 838 core.int buildCounterImage = 0; | 837 core.int buildCounterImage = 0; |
| 839 buildImage() { | 838 buildImage() { |
| 840 var o = new api.Image(); | 839 var o = new api.Image(); |
| 841 buildCounterImage++; | 840 buildCounterImage++; |
| 842 if (buildCounterImage < 3) { | 841 if (buildCounterImage < 3) { |
| 843 o.contentUrl = "foo"; | 842 o.contentUrl = "foo"; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 buildCounterLink++; | 1117 buildCounterLink++; |
| 1119 if (buildCounterLink < 3) { | 1118 if (buildCounterLink < 3) { |
| 1120 unittest.expect(o.pageObjectId, unittest.equals('foo')); | 1119 unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| 1121 unittest.expect(o.relativeLink, unittest.equals('foo')); | 1120 unittest.expect(o.relativeLink, unittest.equals('foo')); |
| 1122 unittest.expect(o.slideIndex, unittest.equals(42)); | 1121 unittest.expect(o.slideIndex, unittest.equals(42)); |
| 1123 unittest.expect(o.url, unittest.equals('foo')); | 1122 unittest.expect(o.url, unittest.equals('foo')); |
| 1124 } | 1123 } |
| 1125 buildCounterLink--; | 1124 buildCounterLink--; |
| 1126 } | 1125 } |
| 1127 | 1126 |
| 1128 buildUnnamed1736() { | 1127 buildUnnamed1734() { |
| 1129 var o = new core.Map<core.String, api.NestingLevel>(); | 1128 var o = new core.Map<core.String, api.NestingLevel>(); |
| 1130 o["x"] = buildNestingLevel(); | 1129 o["x"] = buildNestingLevel(); |
| 1131 o["y"] = buildNestingLevel(); | 1130 o["y"] = buildNestingLevel(); |
| 1132 return o; | 1131 return o; |
| 1133 } | 1132 } |
| 1134 | 1133 |
| 1135 checkUnnamed1736(core.Map<core.String, api.NestingLevel> o) { | 1134 checkUnnamed1734(core.Map<core.String, api.NestingLevel> o) { |
| 1136 unittest.expect(o, unittest.hasLength(2)); | 1135 unittest.expect(o, unittest.hasLength(2)); |
| 1137 checkNestingLevel(o["x"]); | 1136 checkNestingLevel(o["x"]); |
| 1138 checkNestingLevel(o["y"]); | 1137 checkNestingLevel(o["y"]); |
| 1139 } | 1138 } |
| 1140 | 1139 |
| 1141 core.int buildCounterList = 0; | 1140 core.int buildCounterList = 0; |
| 1142 buildList() { | 1141 buildList() { |
| 1143 var o = new api.List(); | 1142 var o = new api.List(); |
| 1144 buildCounterList++; | 1143 buildCounterList++; |
| 1145 if (buildCounterList < 3) { | 1144 if (buildCounterList < 3) { |
| 1146 o.listId = "foo"; | 1145 o.listId = "foo"; |
| 1147 o.nestingLevel = buildUnnamed1736(); | 1146 o.nestingLevel = buildUnnamed1734(); |
| 1148 } | 1147 } |
| 1149 buildCounterList--; | 1148 buildCounterList--; |
| 1150 return o; | 1149 return o; |
| 1151 } | 1150 } |
| 1152 | 1151 |
| 1153 checkList(api.List o) { | 1152 checkList(api.List o) { |
| 1154 buildCounterList++; | 1153 buildCounterList++; |
| 1155 if (buildCounterList < 3) { | 1154 if (buildCounterList < 3) { |
| 1156 unittest.expect(o.listId, unittest.equals('foo')); | 1155 unittest.expect(o.listId, unittest.equals('foo')); |
| 1157 checkUnnamed1736(o.nestingLevel); | 1156 checkUnnamed1734(o.nestingLevel); |
| 1158 } | 1157 } |
| 1159 buildCounterList--; | 1158 buildCounterList--; |
| 1160 } | 1159 } |
| 1161 | 1160 |
| 1162 core.int buildCounterMasterProperties = 0; | 1161 core.int buildCounterMasterProperties = 0; |
| 1163 buildMasterProperties() { | 1162 buildMasterProperties() { |
| 1164 var o = new api.MasterProperties(); | 1163 var o = new api.MasterProperties(); |
| 1165 buildCounterMasterProperties++; | 1164 buildCounterMasterProperties++; |
| 1166 if (buildCounterMasterProperties < 3) { | 1165 if (buildCounterMasterProperties < 3) { |
| 1167 o.displayName = "foo"; | 1166 o.displayName = "foo"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 } | 1292 } |
| 1294 | 1293 |
| 1295 checkOutlineFill(api.OutlineFill o) { | 1294 checkOutlineFill(api.OutlineFill o) { |
| 1296 buildCounterOutlineFill++; | 1295 buildCounterOutlineFill++; |
| 1297 if (buildCounterOutlineFill < 3) { | 1296 if (buildCounterOutlineFill < 3) { |
| 1298 checkSolidFill(o.solidFill); | 1297 checkSolidFill(o.solidFill); |
| 1299 } | 1298 } |
| 1300 buildCounterOutlineFill--; | 1299 buildCounterOutlineFill--; |
| 1301 } | 1300 } |
| 1302 | 1301 |
| 1303 buildUnnamed1737() { | 1302 buildUnnamed1735() { |
| 1304 var o = new core.List<api.PageElement>(); | 1303 var o = new core.List<api.PageElement>(); |
| 1305 o.add(buildPageElement()); | 1304 o.add(buildPageElement()); |
| 1306 o.add(buildPageElement()); | 1305 o.add(buildPageElement()); |
| 1307 return o; | 1306 return o; |
| 1308 } | 1307 } |
| 1309 | 1308 |
| 1310 checkUnnamed1737(core.List<api.PageElement> o) { | 1309 checkUnnamed1735(core.List<api.PageElement> o) { |
| 1311 unittest.expect(o, unittest.hasLength(2)); | 1310 unittest.expect(o, unittest.hasLength(2)); |
| 1312 checkPageElement(o[0]); | 1311 checkPageElement(o[0]); |
| 1313 checkPageElement(o[1]); | 1312 checkPageElement(o[1]); |
| 1314 } | 1313 } |
| 1315 | 1314 |
| 1316 core.int buildCounterPage = 0; | 1315 core.int buildCounterPage = 0; |
| 1317 buildPage() { | 1316 buildPage() { |
| 1318 var o = new api.Page(); | 1317 var o = new api.Page(); |
| 1319 buildCounterPage++; | 1318 buildCounterPage++; |
| 1320 if (buildCounterPage < 3) { | 1319 if (buildCounterPage < 3) { |
| 1321 o.layoutProperties = buildLayoutProperties(); | 1320 o.layoutProperties = buildLayoutProperties(); |
| 1322 o.masterProperties = buildMasterProperties(); | 1321 o.masterProperties = buildMasterProperties(); |
| 1323 o.notesProperties = buildNotesProperties(); | 1322 o.notesProperties = buildNotesProperties(); |
| 1324 o.objectId = "foo"; | 1323 o.objectId = "foo"; |
| 1325 o.pageElements = buildUnnamed1737(); | 1324 o.pageElements = buildUnnamed1735(); |
| 1326 o.pageProperties = buildPageProperties(); | 1325 o.pageProperties = buildPageProperties(); |
| 1327 o.pageType = "foo"; | 1326 o.pageType = "foo"; |
| 1328 o.revisionId = "foo"; | 1327 o.revisionId = "foo"; |
| 1329 o.slideProperties = buildSlideProperties(); | 1328 o.slideProperties = buildSlideProperties(); |
| 1330 } | 1329 } |
| 1331 buildCounterPage--; | 1330 buildCounterPage--; |
| 1332 return o; | 1331 return o; |
| 1333 } | 1332 } |
| 1334 | 1333 |
| 1335 checkPage(api.Page o) { | 1334 checkPage(api.Page o) { |
| 1336 buildCounterPage++; | 1335 buildCounterPage++; |
| 1337 if (buildCounterPage < 3) { | 1336 if (buildCounterPage < 3) { |
| 1338 checkLayoutProperties(o.layoutProperties); | 1337 checkLayoutProperties(o.layoutProperties); |
| 1339 checkMasterProperties(o.masterProperties); | 1338 checkMasterProperties(o.masterProperties); |
| 1340 checkNotesProperties(o.notesProperties); | 1339 checkNotesProperties(o.notesProperties); |
| 1341 unittest.expect(o.objectId, unittest.equals('foo')); | 1340 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1342 checkUnnamed1737(o.pageElements); | 1341 checkUnnamed1735(o.pageElements); |
| 1343 checkPageProperties(o.pageProperties); | 1342 checkPageProperties(o.pageProperties); |
| 1344 unittest.expect(o.pageType, unittest.equals('foo')); | 1343 unittest.expect(o.pageType, unittest.equals('foo')); |
| 1345 unittest.expect(o.revisionId, unittest.equals('foo')); | 1344 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1346 checkSlideProperties(o.slideProperties); | 1345 checkSlideProperties(o.slideProperties); |
| 1347 } | 1346 } |
| 1348 buildCounterPage--; | 1347 buildCounterPage--; |
| 1349 } | 1348 } |
| 1350 | 1349 |
| 1351 core.int buildCounterPageBackgroundFill = 0; | 1350 core.int buildCounterPageBackgroundFill = 0; |
| 1352 buildPageBackgroundFill() { | 1351 buildPageBackgroundFill() { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 checkPlaceholder(api.Placeholder o) { | 1529 checkPlaceholder(api.Placeholder o) { |
| 1531 buildCounterPlaceholder++; | 1530 buildCounterPlaceholder++; |
| 1532 if (buildCounterPlaceholder < 3) { | 1531 if (buildCounterPlaceholder < 3) { |
| 1533 unittest.expect(o.index, unittest.equals(42)); | 1532 unittest.expect(o.index, unittest.equals(42)); |
| 1534 unittest.expect(o.parentObjectId, unittest.equals('foo')); | 1533 unittest.expect(o.parentObjectId, unittest.equals('foo')); |
| 1535 unittest.expect(o.type, unittest.equals('foo')); | 1534 unittest.expect(o.type, unittest.equals('foo')); |
| 1536 } | 1535 } |
| 1537 buildCounterPlaceholder--; | 1536 buildCounterPlaceholder--; |
| 1538 } | 1537 } |
| 1539 | 1538 |
| 1539 buildUnnamed1736() { |
| 1540 var o = new core.List<api.Page>(); |
| 1541 o.add(buildPage()); |
| 1542 o.add(buildPage()); |
| 1543 return o; |
| 1544 } |
| 1545 |
| 1546 checkUnnamed1736(core.List<api.Page> o) { |
| 1547 unittest.expect(o, unittest.hasLength(2)); |
| 1548 checkPage(o[0]); |
| 1549 checkPage(o[1]); |
| 1550 } |
| 1551 |
| 1552 buildUnnamed1737() { |
| 1553 var o = new core.List<api.Page>(); |
| 1554 o.add(buildPage()); |
| 1555 o.add(buildPage()); |
| 1556 return o; |
| 1557 } |
| 1558 |
| 1559 checkUnnamed1737(core.List<api.Page> o) { |
| 1560 unittest.expect(o, unittest.hasLength(2)); |
| 1561 checkPage(o[0]); |
| 1562 checkPage(o[1]); |
| 1563 } |
| 1564 |
| 1540 buildUnnamed1738() { | 1565 buildUnnamed1738() { |
| 1541 var o = new core.List<api.Page>(); | 1566 var o = new core.List<api.Page>(); |
| 1542 o.add(buildPage()); | 1567 o.add(buildPage()); |
| 1543 o.add(buildPage()); | 1568 o.add(buildPage()); |
| 1544 return o; | 1569 return o; |
| 1545 } | 1570 } |
| 1546 | 1571 |
| 1547 checkUnnamed1738(core.List<api.Page> o) { | 1572 checkUnnamed1738(core.List<api.Page> o) { |
| 1548 unittest.expect(o, unittest.hasLength(2)); | 1573 unittest.expect(o, unittest.hasLength(2)); |
| 1549 checkPage(o[0]); | 1574 checkPage(o[0]); |
| 1550 checkPage(o[1]); | 1575 checkPage(o[1]); |
| 1551 } | |
| 1552 | |
| 1553 buildUnnamed1739() { | |
| 1554 var o = new core.List<api.Page>(); | |
| 1555 o.add(buildPage()); | |
| 1556 o.add(buildPage()); | |
| 1557 return o; | |
| 1558 } | |
| 1559 | |
| 1560 checkUnnamed1739(core.List<api.Page> o) { | |
| 1561 unittest.expect(o, unittest.hasLength(2)); | |
| 1562 checkPage(o[0]); | |
| 1563 checkPage(o[1]); | |
| 1564 } | |
| 1565 | |
| 1566 buildUnnamed1740() { | |
| 1567 var o = new core.List<api.Page>(); | |
| 1568 o.add(buildPage()); | |
| 1569 o.add(buildPage()); | |
| 1570 return o; | |
| 1571 } | |
| 1572 | |
| 1573 checkUnnamed1740(core.List<api.Page> o) { | |
| 1574 unittest.expect(o, unittest.hasLength(2)); | |
| 1575 checkPage(o[0]); | |
| 1576 checkPage(o[1]); | |
| 1577 } | 1576 } |
| 1578 | 1577 |
| 1579 core.int buildCounterPresentation = 0; | 1578 core.int buildCounterPresentation = 0; |
| 1580 buildPresentation() { | 1579 buildPresentation() { |
| 1581 var o = new api.Presentation(); | 1580 var o = new api.Presentation(); |
| 1582 buildCounterPresentation++; | 1581 buildCounterPresentation++; |
| 1583 if (buildCounterPresentation < 3) { | 1582 if (buildCounterPresentation < 3) { |
| 1584 o.layouts = buildUnnamed1738(); | 1583 o.layouts = buildUnnamed1736(); |
| 1585 o.locale = "foo"; | 1584 o.locale = "foo"; |
| 1586 o.masters = buildUnnamed1739(); | 1585 o.masters = buildUnnamed1737(); |
| 1587 o.notesMaster = buildPage(); | 1586 o.notesMaster = buildPage(); |
| 1588 o.pageSize = buildSize(); | 1587 o.pageSize = buildSize(); |
| 1589 o.presentationId = "foo"; | 1588 o.presentationId = "foo"; |
| 1590 o.revisionId = "foo"; | 1589 o.revisionId = "foo"; |
| 1591 o.slides = buildUnnamed1740(); | 1590 o.slides = buildUnnamed1738(); |
| 1592 o.title = "foo"; | 1591 o.title = "foo"; |
| 1593 } | 1592 } |
| 1594 buildCounterPresentation--; | 1593 buildCounterPresentation--; |
| 1595 return o; | 1594 return o; |
| 1596 } | 1595 } |
| 1597 | 1596 |
| 1598 checkPresentation(api.Presentation o) { | 1597 checkPresentation(api.Presentation o) { |
| 1599 buildCounterPresentation++; | 1598 buildCounterPresentation++; |
| 1600 if (buildCounterPresentation < 3) { | 1599 if (buildCounterPresentation < 3) { |
| 1601 checkUnnamed1738(o.layouts); | 1600 checkUnnamed1736(o.layouts); |
| 1602 unittest.expect(o.locale, unittest.equals('foo')); | 1601 unittest.expect(o.locale, unittest.equals('foo')); |
| 1603 checkUnnamed1739(o.masters); | 1602 checkUnnamed1737(o.masters); |
| 1604 checkPage(o.notesMaster); | 1603 checkPage(o.notesMaster); |
| 1605 checkSize(o.pageSize); | 1604 checkSize(o.pageSize); |
| 1606 unittest.expect(o.presentationId, unittest.equals('foo')); | 1605 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 1607 unittest.expect(o.revisionId, unittest.equals('foo')); | 1606 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1608 checkUnnamed1740(o.slides); | 1607 checkUnnamed1738(o.slides); |
| 1609 unittest.expect(o.title, unittest.equals('foo')); | 1608 unittest.expect(o.title, unittest.equals('foo')); |
| 1610 } | 1609 } |
| 1611 buildCounterPresentation--; | 1610 buildCounterPresentation--; |
| 1612 } | 1611 } |
| 1613 | 1612 |
| 1614 core.int buildCounterRange = 0; | 1613 core.int buildCounterRange = 0; |
| 1615 buildRange() { | 1614 buildRange() { |
| 1616 var o = new api.Range(); | 1615 var o = new api.Range(); |
| 1617 buildCounterRange++; | 1616 buildCounterRange++; |
| 1618 if (buildCounterRange < 3) { | 1617 if (buildCounterRange < 3) { |
| 1619 o.endIndex = 42; | 1618 o.endIndex = 42; |
| 1620 o.startIndex = 42; | 1619 o.startIndex = 42; |
| 1621 o.type = "foo"; | 1620 o.type = "foo"; |
| 1622 } | 1621 } |
| 1623 buildCounterRange--; | 1622 buildCounterRange--; |
| 1624 return o; | 1623 return o; |
| 1625 } | 1624 } |
| 1626 | 1625 |
| 1627 checkRange(api.Range o) { | 1626 checkRange(api.Range o) { |
| 1628 buildCounterRange++; | 1627 buildCounterRange++; |
| 1629 if (buildCounterRange < 3) { | 1628 if (buildCounterRange < 3) { |
| 1630 unittest.expect(o.endIndex, unittest.equals(42)); | 1629 unittest.expect(o.endIndex, unittest.equals(42)); |
| 1631 unittest.expect(o.startIndex, unittest.equals(42)); | 1630 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1632 unittest.expect(o.type, unittest.equals('foo')); | 1631 unittest.expect(o.type, unittest.equals('foo')); |
| 1633 } | 1632 } |
| 1634 buildCounterRange--; | 1633 buildCounterRange--; |
| 1635 } | 1634 } |
| 1636 | 1635 |
| 1637 buildUnnamed1741() { | 1636 buildUnnamed1739() { |
| 1638 var o = new core.List<api.ColorStop>(); | 1637 var o = new core.List<api.ColorStop>(); |
| 1639 o.add(buildColorStop()); | 1638 o.add(buildColorStop()); |
| 1640 o.add(buildColorStop()); | 1639 o.add(buildColorStop()); |
| 1641 return o; | 1640 return o; |
| 1642 } | 1641 } |
| 1643 | 1642 |
| 1644 checkUnnamed1741(core.List<api.ColorStop> o) { | 1643 checkUnnamed1739(core.List<api.ColorStop> o) { |
| 1645 unittest.expect(o, unittest.hasLength(2)); | 1644 unittest.expect(o, unittest.hasLength(2)); |
| 1646 checkColorStop(o[0]); | 1645 checkColorStop(o[0]); |
| 1647 checkColorStop(o[1]); | 1646 checkColorStop(o[1]); |
| 1648 } | 1647 } |
| 1649 | 1648 |
| 1650 core.int buildCounterRecolor = 0; | 1649 core.int buildCounterRecolor = 0; |
| 1651 buildRecolor() { | 1650 buildRecolor() { |
| 1652 var o = new api.Recolor(); | 1651 var o = new api.Recolor(); |
| 1653 buildCounterRecolor++; | 1652 buildCounterRecolor++; |
| 1654 if (buildCounterRecolor < 3) { | 1653 if (buildCounterRecolor < 3) { |
| 1655 o.name = "foo"; | 1654 o.name = "foo"; |
| 1656 o.recolorStops = buildUnnamed1741(); | 1655 o.recolorStops = buildUnnamed1739(); |
| 1657 } | 1656 } |
| 1658 buildCounterRecolor--; | 1657 buildCounterRecolor--; |
| 1659 return o; | 1658 return o; |
| 1660 } | 1659 } |
| 1661 | 1660 |
| 1662 checkRecolor(api.Recolor o) { | 1661 checkRecolor(api.Recolor o) { |
| 1663 buildCounterRecolor++; | 1662 buildCounterRecolor++; |
| 1664 if (buildCounterRecolor < 3) { | 1663 if (buildCounterRecolor < 3) { |
| 1665 unittest.expect(o.name, unittest.equals('foo')); | 1664 unittest.expect(o.name, unittest.equals('foo')); |
| 1666 checkUnnamed1741(o.recolorStops); | 1665 checkUnnamed1739(o.recolorStops); |
| 1667 } | 1666 } |
| 1668 buildCounterRecolor--; | 1667 buildCounterRecolor--; |
| 1669 } | 1668 } |
| 1670 | 1669 |
| 1671 core.int buildCounterRefreshSheetsChartRequest = 0; | 1670 core.int buildCounterRefreshSheetsChartRequest = 0; |
| 1672 buildRefreshSheetsChartRequest() { | 1671 buildRefreshSheetsChartRequest() { |
| 1673 var o = new api.RefreshSheetsChartRequest(); | 1672 var o = new api.RefreshSheetsChartRequest(); |
| 1674 buildCounterRefreshSheetsChartRequest++; | 1673 buildCounterRefreshSheetsChartRequest++; |
| 1675 if (buildCounterRefreshSheetsChartRequest < 3) { | 1674 if (buildCounterRefreshSheetsChartRequest < 3) { |
| 1676 o.objectId = "foo"; | 1675 o.objectId = "foo"; |
| 1677 } | 1676 } |
| 1678 buildCounterRefreshSheetsChartRequest--; | 1677 buildCounterRefreshSheetsChartRequest--; |
| 1679 return o; | 1678 return o; |
| 1680 } | 1679 } |
| 1681 | 1680 |
| 1682 checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { | 1681 checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { |
| 1683 buildCounterRefreshSheetsChartRequest++; | 1682 buildCounterRefreshSheetsChartRequest++; |
| 1684 if (buildCounterRefreshSheetsChartRequest < 3) { | 1683 if (buildCounterRefreshSheetsChartRequest < 3) { |
| 1685 unittest.expect(o.objectId, unittest.equals('foo')); | 1684 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1686 } | 1685 } |
| 1687 buildCounterRefreshSheetsChartRequest--; | 1686 buildCounterRefreshSheetsChartRequest--; |
| 1688 } | 1687 } |
| 1689 | 1688 |
| 1690 buildUnnamed1742() { | 1689 buildUnnamed1740() { |
| 1691 var o = new core.List<core.String>(); | 1690 var o = new core.List<core.String>(); |
| 1692 o.add("foo"); | 1691 o.add("foo"); |
| 1693 o.add("foo"); | 1692 o.add("foo"); |
| 1694 return o; | 1693 return o; |
| 1695 } | 1694 } |
| 1696 | 1695 |
| 1697 checkUnnamed1742(core.List<core.String> o) { | 1696 checkUnnamed1740(core.List<core.String> o) { |
| 1698 unittest.expect(o, unittest.hasLength(2)); | 1697 unittest.expect(o, unittest.hasLength(2)); |
| 1699 unittest.expect(o[0], unittest.equals('foo')); | 1698 unittest.expect(o[0], unittest.equals('foo')); |
| 1700 unittest.expect(o[1], unittest.equals('foo')); | 1699 unittest.expect(o[1], unittest.equals('foo')); |
| 1701 } | 1700 } |
| 1702 | 1701 |
| 1703 core.int buildCounterReplaceAllShapesWithImageRequest = 0; | 1702 core.int buildCounterReplaceAllShapesWithImageRequest = 0; |
| 1704 buildReplaceAllShapesWithImageRequest() { | 1703 buildReplaceAllShapesWithImageRequest() { |
| 1705 var o = new api.ReplaceAllShapesWithImageRequest(); | 1704 var o = new api.ReplaceAllShapesWithImageRequest(); |
| 1706 buildCounterReplaceAllShapesWithImageRequest++; | 1705 buildCounterReplaceAllShapesWithImageRequest++; |
| 1707 if (buildCounterReplaceAllShapesWithImageRequest < 3) { | 1706 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| 1708 o.containsText = buildSubstringMatchCriteria(); | 1707 o.containsText = buildSubstringMatchCriteria(); |
| 1709 o.imageUrl = "foo"; | 1708 o.imageUrl = "foo"; |
| 1710 o.pageObjectIds = buildUnnamed1742(); | 1709 o.pageObjectIds = buildUnnamed1740(); |
| 1711 o.replaceMethod = "foo"; | 1710 o.replaceMethod = "foo"; |
| 1712 } | 1711 } |
| 1713 buildCounterReplaceAllShapesWithImageRequest--; | 1712 buildCounterReplaceAllShapesWithImageRequest--; |
| 1714 return o; | 1713 return o; |
| 1715 } | 1714 } |
| 1716 | 1715 |
| 1717 checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { | 1716 checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { |
| 1718 buildCounterReplaceAllShapesWithImageRequest++; | 1717 buildCounterReplaceAllShapesWithImageRequest++; |
| 1719 if (buildCounterReplaceAllShapesWithImageRequest < 3) { | 1718 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| 1720 checkSubstringMatchCriteria(o.containsText); | 1719 checkSubstringMatchCriteria(o.containsText); |
| 1721 unittest.expect(o.imageUrl, unittest.equals('foo')); | 1720 unittest.expect(o.imageUrl, unittest.equals('foo')); |
| 1722 checkUnnamed1742(o.pageObjectIds); | 1721 checkUnnamed1740(o.pageObjectIds); |
| 1723 unittest.expect(o.replaceMethod, unittest.equals('foo')); | 1722 unittest.expect(o.replaceMethod, unittest.equals('foo')); |
| 1724 } | 1723 } |
| 1725 buildCounterReplaceAllShapesWithImageRequest--; | 1724 buildCounterReplaceAllShapesWithImageRequest--; |
| 1726 } | 1725 } |
| 1727 | 1726 |
| 1728 core.int buildCounterReplaceAllShapesWithImageResponse = 0; | 1727 core.int buildCounterReplaceAllShapesWithImageResponse = 0; |
| 1729 buildReplaceAllShapesWithImageResponse() { | 1728 buildReplaceAllShapesWithImageResponse() { |
| 1730 var o = new api.ReplaceAllShapesWithImageResponse(); | 1729 var o = new api.ReplaceAllShapesWithImageResponse(); |
| 1731 buildCounterReplaceAllShapesWithImageResponse++; | 1730 buildCounterReplaceAllShapesWithImageResponse++; |
| 1732 if (buildCounterReplaceAllShapesWithImageResponse < 3) { | 1731 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| 1733 o.occurrencesChanged = 42; | 1732 o.occurrencesChanged = 42; |
| 1734 } | 1733 } |
| 1735 buildCounterReplaceAllShapesWithImageResponse--; | 1734 buildCounterReplaceAllShapesWithImageResponse--; |
| 1736 return o; | 1735 return o; |
| 1737 } | 1736 } |
| 1738 | 1737 |
| 1739 checkReplaceAllShapesWithImageResponse(api.ReplaceAllShapesWithImageResponse o)
{ | 1738 checkReplaceAllShapesWithImageResponse( |
| 1739 api.ReplaceAllShapesWithImageResponse o) { |
| 1740 buildCounterReplaceAllShapesWithImageResponse++; | 1740 buildCounterReplaceAllShapesWithImageResponse++; |
| 1741 if (buildCounterReplaceAllShapesWithImageResponse < 3) { | 1741 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| 1742 unittest.expect(o.occurrencesChanged, unittest.equals(42)); | 1742 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| 1743 } | 1743 } |
| 1744 buildCounterReplaceAllShapesWithImageResponse--; | 1744 buildCounterReplaceAllShapesWithImageResponse--; |
| 1745 } | 1745 } |
| 1746 | 1746 |
| 1747 buildUnnamed1743() { | 1747 buildUnnamed1741() { |
| 1748 var o = new core.List<core.String>(); | 1748 var o = new core.List<core.String>(); |
| 1749 o.add("foo"); | 1749 o.add("foo"); |
| 1750 o.add("foo"); | 1750 o.add("foo"); |
| 1751 return o; | 1751 return o; |
| 1752 } | 1752 } |
| 1753 | 1753 |
| 1754 checkUnnamed1743(core.List<core.String> o) { | 1754 checkUnnamed1741(core.List<core.String> o) { |
| 1755 unittest.expect(o, unittest.hasLength(2)); | 1755 unittest.expect(o, unittest.hasLength(2)); |
| 1756 unittest.expect(o[0], unittest.equals('foo')); | 1756 unittest.expect(o[0], unittest.equals('foo')); |
| 1757 unittest.expect(o[1], unittest.equals('foo')); | 1757 unittest.expect(o[1], unittest.equals('foo')); |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; | 1760 core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; |
| 1761 buildReplaceAllShapesWithSheetsChartRequest() { | 1761 buildReplaceAllShapesWithSheetsChartRequest() { |
| 1762 var o = new api.ReplaceAllShapesWithSheetsChartRequest(); | 1762 var o = new api.ReplaceAllShapesWithSheetsChartRequest(); |
| 1763 buildCounterReplaceAllShapesWithSheetsChartRequest++; | 1763 buildCounterReplaceAllShapesWithSheetsChartRequest++; |
| 1764 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { | 1764 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
| 1765 o.chartId = 42; | 1765 o.chartId = 42; |
| 1766 o.containsText = buildSubstringMatchCriteria(); | 1766 o.containsText = buildSubstringMatchCriteria(); |
| 1767 o.linkingMode = "foo"; | 1767 o.linkingMode = "foo"; |
| 1768 o.pageObjectIds = buildUnnamed1743(); | 1768 o.pageObjectIds = buildUnnamed1741(); |
| 1769 o.spreadsheetId = "foo"; | 1769 o.spreadsheetId = "foo"; |
| 1770 } | 1770 } |
| 1771 buildCounterReplaceAllShapesWithSheetsChartRequest--; | 1771 buildCounterReplaceAllShapesWithSheetsChartRequest--; |
| 1772 return o; | 1772 return o; |
| 1773 } | 1773 } |
| 1774 | 1774 |
| 1775 checkReplaceAllShapesWithSheetsChartRequest(api.ReplaceAllShapesWithSheetsChartR
equest o) { | 1775 checkReplaceAllShapesWithSheetsChartRequest( |
| 1776 api.ReplaceAllShapesWithSheetsChartRequest o) { |
| 1776 buildCounterReplaceAllShapesWithSheetsChartRequest++; | 1777 buildCounterReplaceAllShapesWithSheetsChartRequest++; |
| 1777 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { | 1778 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
| 1778 unittest.expect(o.chartId, unittest.equals(42)); | 1779 unittest.expect(o.chartId, unittest.equals(42)); |
| 1779 checkSubstringMatchCriteria(o.containsText); | 1780 checkSubstringMatchCriteria(o.containsText); |
| 1780 unittest.expect(o.linkingMode, unittest.equals('foo')); | 1781 unittest.expect(o.linkingMode, unittest.equals('foo')); |
| 1781 checkUnnamed1743(o.pageObjectIds); | 1782 checkUnnamed1741(o.pageObjectIds); |
| 1782 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 1783 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| 1783 } | 1784 } |
| 1784 buildCounterReplaceAllShapesWithSheetsChartRequest--; | 1785 buildCounterReplaceAllShapesWithSheetsChartRequest--; |
| 1785 } | 1786 } |
| 1786 | 1787 |
| 1787 core.int buildCounterReplaceAllShapesWithSheetsChartResponse = 0; | 1788 core.int buildCounterReplaceAllShapesWithSheetsChartResponse = 0; |
| 1788 buildReplaceAllShapesWithSheetsChartResponse() { | 1789 buildReplaceAllShapesWithSheetsChartResponse() { |
| 1789 var o = new api.ReplaceAllShapesWithSheetsChartResponse(); | 1790 var o = new api.ReplaceAllShapesWithSheetsChartResponse(); |
| 1790 buildCounterReplaceAllShapesWithSheetsChartResponse++; | 1791 buildCounterReplaceAllShapesWithSheetsChartResponse++; |
| 1791 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { | 1792 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
| 1792 o.occurrencesChanged = 42; | 1793 o.occurrencesChanged = 42; |
| 1793 } | 1794 } |
| 1794 buildCounterReplaceAllShapesWithSheetsChartResponse--; | 1795 buildCounterReplaceAllShapesWithSheetsChartResponse--; |
| 1795 return o; | 1796 return o; |
| 1796 } | 1797 } |
| 1797 | 1798 |
| 1798 checkReplaceAllShapesWithSheetsChartResponse(api.ReplaceAllShapesWithSheetsChart
Response o) { | 1799 checkReplaceAllShapesWithSheetsChartResponse( |
| 1800 api.ReplaceAllShapesWithSheetsChartResponse o) { |
| 1799 buildCounterReplaceAllShapesWithSheetsChartResponse++; | 1801 buildCounterReplaceAllShapesWithSheetsChartResponse++; |
| 1800 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { | 1802 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
| 1801 unittest.expect(o.occurrencesChanged, unittest.equals(42)); | 1803 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| 1802 } | 1804 } |
| 1803 buildCounterReplaceAllShapesWithSheetsChartResponse--; | 1805 buildCounterReplaceAllShapesWithSheetsChartResponse--; |
| 1804 } | 1806 } |
| 1805 | 1807 |
| 1806 buildUnnamed1744() { | 1808 buildUnnamed1742() { |
| 1807 var o = new core.List<core.String>(); | 1809 var o = new core.List<core.String>(); |
| 1808 o.add("foo"); | 1810 o.add("foo"); |
| 1809 o.add("foo"); | 1811 o.add("foo"); |
| 1810 return o; | 1812 return o; |
| 1811 } | 1813 } |
| 1812 | 1814 |
| 1813 checkUnnamed1744(core.List<core.String> o) { | 1815 checkUnnamed1742(core.List<core.String> o) { |
| 1814 unittest.expect(o, unittest.hasLength(2)); | 1816 unittest.expect(o, unittest.hasLength(2)); |
| 1815 unittest.expect(o[0], unittest.equals('foo')); | 1817 unittest.expect(o[0], unittest.equals('foo')); |
| 1816 unittest.expect(o[1], unittest.equals('foo')); | 1818 unittest.expect(o[1], unittest.equals('foo')); |
| 1817 } | 1819 } |
| 1818 | 1820 |
| 1819 core.int buildCounterReplaceAllTextRequest = 0; | 1821 core.int buildCounterReplaceAllTextRequest = 0; |
| 1820 buildReplaceAllTextRequest() { | 1822 buildReplaceAllTextRequest() { |
| 1821 var o = new api.ReplaceAllTextRequest(); | 1823 var o = new api.ReplaceAllTextRequest(); |
| 1822 buildCounterReplaceAllTextRequest++; | 1824 buildCounterReplaceAllTextRequest++; |
| 1823 if (buildCounterReplaceAllTextRequest < 3) { | 1825 if (buildCounterReplaceAllTextRequest < 3) { |
| 1824 o.containsText = buildSubstringMatchCriteria(); | 1826 o.containsText = buildSubstringMatchCriteria(); |
| 1825 o.pageObjectIds = buildUnnamed1744(); | 1827 o.pageObjectIds = buildUnnamed1742(); |
| 1826 o.replaceText = "foo"; | 1828 o.replaceText = "foo"; |
| 1827 } | 1829 } |
| 1828 buildCounterReplaceAllTextRequest--; | 1830 buildCounterReplaceAllTextRequest--; |
| 1829 return o; | 1831 return o; |
| 1830 } | 1832 } |
| 1831 | 1833 |
| 1832 checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { | 1834 checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { |
| 1833 buildCounterReplaceAllTextRequest++; | 1835 buildCounterReplaceAllTextRequest++; |
| 1834 if (buildCounterReplaceAllTextRequest < 3) { | 1836 if (buildCounterReplaceAllTextRequest < 3) { |
| 1835 checkSubstringMatchCriteria(o.containsText); | 1837 checkSubstringMatchCriteria(o.containsText); |
| 1836 checkUnnamed1744(o.pageObjectIds); | 1838 checkUnnamed1742(o.pageObjectIds); |
| 1837 unittest.expect(o.replaceText, unittest.equals('foo')); | 1839 unittest.expect(o.replaceText, unittest.equals('foo')); |
| 1838 } | 1840 } |
| 1839 buildCounterReplaceAllTextRequest--; | 1841 buildCounterReplaceAllTextRequest--; |
| 1840 } | 1842 } |
| 1841 | 1843 |
| 1842 core.int buildCounterReplaceAllTextResponse = 0; | 1844 core.int buildCounterReplaceAllTextResponse = 0; |
| 1843 buildReplaceAllTextResponse() { | 1845 buildReplaceAllTextResponse() { |
| 1844 var o = new api.ReplaceAllTextResponse(); | 1846 var o = new api.ReplaceAllTextResponse(); |
| 1845 buildCounterReplaceAllTextResponse++; | 1847 buildCounterReplaceAllTextResponse++; |
| 1846 if (buildCounterReplaceAllTextResponse < 3) { | 1848 if (buildCounterReplaceAllTextResponse < 3) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1875 o.deleteParagraphBullets = buildDeleteParagraphBulletsRequest(); | 1877 o.deleteParagraphBullets = buildDeleteParagraphBulletsRequest(); |
| 1876 o.deleteTableColumn = buildDeleteTableColumnRequest(); | 1878 o.deleteTableColumn = buildDeleteTableColumnRequest(); |
| 1877 o.deleteTableRow = buildDeleteTableRowRequest(); | 1879 o.deleteTableRow = buildDeleteTableRowRequest(); |
| 1878 o.deleteText = buildDeleteTextRequest(); | 1880 o.deleteText = buildDeleteTextRequest(); |
| 1879 o.duplicateObject = buildDuplicateObjectRequest(); | 1881 o.duplicateObject = buildDuplicateObjectRequest(); |
| 1880 o.insertTableColumns = buildInsertTableColumnsRequest(); | 1882 o.insertTableColumns = buildInsertTableColumnsRequest(); |
| 1881 o.insertTableRows = buildInsertTableRowsRequest(); | 1883 o.insertTableRows = buildInsertTableRowsRequest(); |
| 1882 o.insertText = buildInsertTextRequest(); | 1884 o.insertText = buildInsertTextRequest(); |
| 1883 o.refreshSheetsChart = buildRefreshSheetsChartRequest(); | 1885 o.refreshSheetsChart = buildRefreshSheetsChartRequest(); |
| 1884 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageRequest(); | 1886 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageRequest(); |
| 1885 o.replaceAllShapesWithSheetsChart = buildReplaceAllShapesWithSheetsChartRequ
est(); | 1887 o.replaceAllShapesWithSheetsChart = |
| 1888 buildReplaceAllShapesWithSheetsChartRequest(); |
| 1886 o.replaceAllText = buildReplaceAllTextRequest(); | 1889 o.replaceAllText = buildReplaceAllTextRequest(); |
| 1887 o.updateImageProperties = buildUpdateImagePropertiesRequest(); | 1890 o.updateImageProperties = buildUpdateImagePropertiesRequest(); |
| 1888 o.updateLineProperties = buildUpdateLinePropertiesRequest(); | 1891 o.updateLineProperties = buildUpdateLinePropertiesRequest(); |
| 1889 o.updatePageElementTransform = buildUpdatePageElementTransformRequest(); | 1892 o.updatePageElementTransform = buildUpdatePageElementTransformRequest(); |
| 1890 o.updatePageProperties = buildUpdatePagePropertiesRequest(); | 1893 o.updatePageProperties = buildUpdatePagePropertiesRequest(); |
| 1891 o.updateParagraphStyle = buildUpdateParagraphStyleRequest(); | 1894 o.updateParagraphStyle = buildUpdateParagraphStyleRequest(); |
| 1892 o.updateShapeProperties = buildUpdateShapePropertiesRequest(); | 1895 o.updateShapeProperties = buildUpdateShapePropertiesRequest(); |
| 1893 o.updateSlidesPosition = buildUpdateSlidesPositionRequest(); | 1896 o.updateSlidesPosition = buildUpdateSlidesPositionRequest(); |
| 1894 o.updateTableCellProperties = buildUpdateTableCellPropertiesRequest(); | 1897 o.updateTableCellProperties = buildUpdateTableCellPropertiesRequest(); |
| 1895 o.updateTextStyle = buildUpdateTextStyleRequest(); | 1898 o.updateTextStyle = buildUpdateTextStyleRequest(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1914 checkDeleteParagraphBulletsRequest(o.deleteParagraphBullets); | 1917 checkDeleteParagraphBulletsRequest(o.deleteParagraphBullets); |
| 1915 checkDeleteTableColumnRequest(o.deleteTableColumn); | 1918 checkDeleteTableColumnRequest(o.deleteTableColumn); |
| 1916 checkDeleteTableRowRequest(o.deleteTableRow); | 1919 checkDeleteTableRowRequest(o.deleteTableRow); |
| 1917 checkDeleteTextRequest(o.deleteText); | 1920 checkDeleteTextRequest(o.deleteText); |
| 1918 checkDuplicateObjectRequest(o.duplicateObject); | 1921 checkDuplicateObjectRequest(o.duplicateObject); |
| 1919 checkInsertTableColumnsRequest(o.insertTableColumns); | 1922 checkInsertTableColumnsRequest(o.insertTableColumns); |
| 1920 checkInsertTableRowsRequest(o.insertTableRows); | 1923 checkInsertTableRowsRequest(o.insertTableRows); |
| 1921 checkInsertTextRequest(o.insertText); | 1924 checkInsertTextRequest(o.insertText); |
| 1922 checkRefreshSheetsChartRequest(o.refreshSheetsChart); | 1925 checkRefreshSheetsChartRequest(o.refreshSheetsChart); |
| 1923 checkReplaceAllShapesWithImageRequest(o.replaceAllShapesWithImage); | 1926 checkReplaceAllShapesWithImageRequest(o.replaceAllShapesWithImage); |
| 1924 checkReplaceAllShapesWithSheetsChartRequest(o.replaceAllShapesWithSheetsChar
t); | 1927 checkReplaceAllShapesWithSheetsChartRequest( |
| 1928 o.replaceAllShapesWithSheetsChart); |
| 1925 checkReplaceAllTextRequest(o.replaceAllText); | 1929 checkReplaceAllTextRequest(o.replaceAllText); |
| 1926 checkUpdateImagePropertiesRequest(o.updateImageProperties); | 1930 checkUpdateImagePropertiesRequest(o.updateImageProperties); |
| 1927 checkUpdateLinePropertiesRequest(o.updateLineProperties); | 1931 checkUpdateLinePropertiesRequest(o.updateLineProperties); |
| 1928 checkUpdatePageElementTransformRequest(o.updatePageElementTransform); | 1932 checkUpdatePageElementTransformRequest(o.updatePageElementTransform); |
| 1929 checkUpdatePagePropertiesRequest(o.updatePageProperties); | 1933 checkUpdatePagePropertiesRequest(o.updatePageProperties); |
| 1930 checkUpdateParagraphStyleRequest(o.updateParagraphStyle); | 1934 checkUpdateParagraphStyleRequest(o.updateParagraphStyle); |
| 1931 checkUpdateShapePropertiesRequest(o.updateShapeProperties); | 1935 checkUpdateShapePropertiesRequest(o.updateShapeProperties); |
| 1932 checkUpdateSlidesPositionRequest(o.updateSlidesPosition); | 1936 checkUpdateSlidesPositionRequest(o.updateSlidesPosition); |
| 1933 checkUpdateTableCellPropertiesRequest(o.updateTableCellProperties); | 1937 checkUpdateTableCellPropertiesRequest(o.updateTableCellProperties); |
| 1934 checkUpdateTextStyleRequest(o.updateTextStyle); | 1938 checkUpdateTextStyleRequest(o.updateTextStyle); |
| 1935 checkUpdateVideoPropertiesRequest(o.updateVideoProperties); | 1939 checkUpdateVideoPropertiesRequest(o.updateVideoProperties); |
| 1936 } | 1940 } |
| 1937 buildCounterRequest--; | 1941 buildCounterRequest--; |
| 1938 } | 1942 } |
| 1939 | 1943 |
| 1940 core.int buildCounterResponse = 0; | 1944 core.int buildCounterResponse = 0; |
| 1941 buildResponse() { | 1945 buildResponse() { |
| 1942 var o = new api.Response(); | 1946 var o = new api.Response(); |
| 1943 buildCounterResponse++; | 1947 buildCounterResponse++; |
| 1944 if (buildCounterResponse < 3) { | 1948 if (buildCounterResponse < 3) { |
| 1945 o.createImage = buildCreateImageResponse(); | 1949 o.createImage = buildCreateImageResponse(); |
| 1946 o.createLine = buildCreateLineResponse(); | 1950 o.createLine = buildCreateLineResponse(); |
| 1947 o.createShape = buildCreateShapeResponse(); | 1951 o.createShape = buildCreateShapeResponse(); |
| 1948 o.createSheetsChart = buildCreateSheetsChartResponse(); | 1952 o.createSheetsChart = buildCreateSheetsChartResponse(); |
| 1949 o.createSlide = buildCreateSlideResponse(); | 1953 o.createSlide = buildCreateSlideResponse(); |
| 1950 o.createTable = buildCreateTableResponse(); | 1954 o.createTable = buildCreateTableResponse(); |
| 1951 o.createVideo = buildCreateVideoResponse(); | 1955 o.createVideo = buildCreateVideoResponse(); |
| 1952 o.duplicateObject = buildDuplicateObjectResponse(); | 1956 o.duplicateObject = buildDuplicateObjectResponse(); |
| 1953 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageResponse(); | 1957 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageResponse(); |
| 1954 o.replaceAllShapesWithSheetsChart = buildReplaceAllShapesWithSheetsChartResp
onse(); | 1958 o.replaceAllShapesWithSheetsChart = |
| 1959 buildReplaceAllShapesWithSheetsChartResponse(); |
| 1955 o.replaceAllText = buildReplaceAllTextResponse(); | 1960 o.replaceAllText = buildReplaceAllTextResponse(); |
| 1956 } | 1961 } |
| 1957 buildCounterResponse--; | 1962 buildCounterResponse--; |
| 1958 return o; | 1963 return o; |
| 1959 } | 1964 } |
| 1960 | 1965 |
| 1961 checkResponse(api.Response o) { | 1966 checkResponse(api.Response o) { |
| 1962 buildCounterResponse++; | 1967 buildCounterResponse++; |
| 1963 if (buildCounterResponse < 3) { | 1968 if (buildCounterResponse < 3) { |
| 1964 checkCreateImageResponse(o.createImage); | 1969 checkCreateImageResponse(o.createImage); |
| 1965 checkCreateLineResponse(o.createLine); | 1970 checkCreateLineResponse(o.createLine); |
| 1966 checkCreateShapeResponse(o.createShape); | 1971 checkCreateShapeResponse(o.createShape); |
| 1967 checkCreateSheetsChartResponse(o.createSheetsChart); | 1972 checkCreateSheetsChartResponse(o.createSheetsChart); |
| 1968 checkCreateSlideResponse(o.createSlide); | 1973 checkCreateSlideResponse(o.createSlide); |
| 1969 checkCreateTableResponse(o.createTable); | 1974 checkCreateTableResponse(o.createTable); |
| 1970 checkCreateVideoResponse(o.createVideo); | 1975 checkCreateVideoResponse(o.createVideo); |
| 1971 checkDuplicateObjectResponse(o.duplicateObject); | 1976 checkDuplicateObjectResponse(o.duplicateObject); |
| 1972 checkReplaceAllShapesWithImageResponse(o.replaceAllShapesWithImage); | 1977 checkReplaceAllShapesWithImageResponse(o.replaceAllShapesWithImage); |
| 1973 checkReplaceAllShapesWithSheetsChartResponse(o.replaceAllShapesWithSheetsCha
rt); | 1978 checkReplaceAllShapesWithSheetsChartResponse( |
| 1979 o.replaceAllShapesWithSheetsChart); |
| 1974 checkReplaceAllTextResponse(o.replaceAllText); | 1980 checkReplaceAllTextResponse(o.replaceAllText); |
| 1975 } | 1981 } |
| 1976 buildCounterResponse--; | 1982 buildCounterResponse--; |
| 1977 } | 1983 } |
| 1978 | 1984 |
| 1979 core.int buildCounterRgbColor = 0; | 1985 core.int buildCounterRgbColor = 0; |
| 1980 buildRgbColor() { | 1986 buildRgbColor() { |
| 1981 var o = new api.RgbColor(); | 1987 var o = new api.RgbColor(); |
| 1982 buildCounterRgbColor++; | 1988 buildCounterRgbColor++; |
| 1983 if (buildCounterRgbColor < 3) { | 1989 if (buildCounterRgbColor < 3) { |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2247 | 2253 |
| 2248 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { | 2254 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { |
| 2249 buildCounterSubstringMatchCriteria++; | 2255 buildCounterSubstringMatchCriteria++; |
| 2250 if (buildCounterSubstringMatchCriteria < 3) { | 2256 if (buildCounterSubstringMatchCriteria < 3) { |
| 2251 unittest.expect(o.matchCase, unittest.isTrue); | 2257 unittest.expect(o.matchCase, unittest.isTrue); |
| 2252 unittest.expect(o.text, unittest.equals('foo')); | 2258 unittest.expect(o.text, unittest.equals('foo')); |
| 2253 } | 2259 } |
| 2254 buildCounterSubstringMatchCriteria--; | 2260 buildCounterSubstringMatchCriteria--; |
| 2255 } | 2261 } |
| 2256 | 2262 |
| 2257 buildUnnamed1745() { | 2263 buildUnnamed1743() { |
| 2258 var o = new core.List<api.TableColumnProperties>(); | 2264 var o = new core.List<api.TableColumnProperties>(); |
| 2259 o.add(buildTableColumnProperties()); | 2265 o.add(buildTableColumnProperties()); |
| 2260 o.add(buildTableColumnProperties()); | 2266 o.add(buildTableColumnProperties()); |
| 2261 return o; | 2267 return o; |
| 2262 } | 2268 } |
| 2263 | 2269 |
| 2264 checkUnnamed1745(core.List<api.TableColumnProperties> o) { | 2270 checkUnnamed1743(core.List<api.TableColumnProperties> o) { |
| 2265 unittest.expect(o, unittest.hasLength(2)); | 2271 unittest.expect(o, unittest.hasLength(2)); |
| 2266 checkTableColumnProperties(o[0]); | 2272 checkTableColumnProperties(o[0]); |
| 2267 checkTableColumnProperties(o[1]); | 2273 checkTableColumnProperties(o[1]); |
| 2268 } | 2274 } |
| 2269 | 2275 |
| 2270 buildUnnamed1746() { | 2276 buildUnnamed1744() { |
| 2271 var o = new core.List<api.TableRow>(); | 2277 var o = new core.List<api.TableRow>(); |
| 2272 o.add(buildTableRow()); | 2278 o.add(buildTableRow()); |
| 2273 o.add(buildTableRow()); | 2279 o.add(buildTableRow()); |
| 2274 return o; | 2280 return o; |
| 2275 } | 2281 } |
| 2276 | 2282 |
| 2277 checkUnnamed1746(core.List<api.TableRow> o) { | 2283 checkUnnamed1744(core.List<api.TableRow> o) { |
| 2278 unittest.expect(o, unittest.hasLength(2)); | 2284 unittest.expect(o, unittest.hasLength(2)); |
| 2279 checkTableRow(o[0]); | 2285 checkTableRow(o[0]); |
| 2280 checkTableRow(o[1]); | 2286 checkTableRow(o[1]); |
| 2281 } | 2287 } |
| 2282 | 2288 |
| 2283 core.int buildCounterTable = 0; | 2289 core.int buildCounterTable = 0; |
| 2284 buildTable() { | 2290 buildTable() { |
| 2285 var o = new api.Table(); | 2291 var o = new api.Table(); |
| 2286 buildCounterTable++; | 2292 buildCounterTable++; |
| 2287 if (buildCounterTable < 3) { | 2293 if (buildCounterTable < 3) { |
| 2288 o.columns = 42; | 2294 o.columns = 42; |
| 2289 o.rows = 42; | 2295 o.rows = 42; |
| 2290 o.tableColumns = buildUnnamed1745(); | 2296 o.tableColumns = buildUnnamed1743(); |
| 2291 o.tableRows = buildUnnamed1746(); | 2297 o.tableRows = buildUnnamed1744(); |
| 2292 } | 2298 } |
| 2293 buildCounterTable--; | 2299 buildCounterTable--; |
| 2294 return o; | 2300 return o; |
| 2295 } | 2301 } |
| 2296 | 2302 |
| 2297 checkTable(api.Table o) { | 2303 checkTable(api.Table o) { |
| 2298 buildCounterTable++; | 2304 buildCounterTable++; |
| 2299 if (buildCounterTable < 3) { | 2305 if (buildCounterTable < 3) { |
| 2300 unittest.expect(o.columns, unittest.equals(42)); | 2306 unittest.expect(o.columns, unittest.equals(42)); |
| 2301 unittest.expect(o.rows, unittest.equals(42)); | 2307 unittest.expect(o.rows, unittest.equals(42)); |
| 2302 checkUnnamed1745(o.tableColumns); | 2308 checkUnnamed1743(o.tableColumns); |
| 2303 checkUnnamed1746(o.tableRows); | 2309 checkUnnamed1744(o.tableRows); |
| 2304 } | 2310 } |
| 2305 buildCounterTable--; | 2311 buildCounterTable--; |
| 2306 } | 2312 } |
| 2307 | 2313 |
| 2308 core.int buildCounterTableCell = 0; | 2314 core.int buildCounterTableCell = 0; |
| 2309 buildTableCell() { | 2315 buildTableCell() { |
| 2310 var o = new api.TableCell(); | 2316 var o = new api.TableCell(); |
| 2311 buildCounterTableCell++; | 2317 buildCounterTableCell++; |
| 2312 if (buildCounterTableCell < 3) { | 2318 if (buildCounterTableCell < 3) { |
| 2313 o.columnSpan = 42; | 2319 o.columnSpan = 42; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2428 checkTableRange(api.TableRange o) { | 2434 checkTableRange(api.TableRange o) { |
| 2429 buildCounterTableRange++; | 2435 buildCounterTableRange++; |
| 2430 if (buildCounterTableRange < 3) { | 2436 if (buildCounterTableRange < 3) { |
| 2431 unittest.expect(o.columnSpan, unittest.equals(42)); | 2437 unittest.expect(o.columnSpan, unittest.equals(42)); |
| 2432 checkTableCellLocation(o.location); | 2438 checkTableCellLocation(o.location); |
| 2433 unittest.expect(o.rowSpan, unittest.equals(42)); | 2439 unittest.expect(o.rowSpan, unittest.equals(42)); |
| 2434 } | 2440 } |
| 2435 buildCounterTableRange--; | 2441 buildCounterTableRange--; |
| 2436 } | 2442 } |
| 2437 | 2443 |
| 2438 buildUnnamed1747() { | 2444 buildUnnamed1745() { |
| 2439 var o = new core.List<api.TableCell>(); | 2445 var o = new core.List<api.TableCell>(); |
| 2440 o.add(buildTableCell()); | 2446 o.add(buildTableCell()); |
| 2441 o.add(buildTableCell()); | 2447 o.add(buildTableCell()); |
| 2442 return o; | 2448 return o; |
| 2443 } | 2449 } |
| 2444 | 2450 |
| 2445 checkUnnamed1747(core.List<api.TableCell> o) { | 2451 checkUnnamed1745(core.List<api.TableCell> o) { |
| 2446 unittest.expect(o, unittest.hasLength(2)); | 2452 unittest.expect(o, unittest.hasLength(2)); |
| 2447 checkTableCell(o[0]); | 2453 checkTableCell(o[0]); |
| 2448 checkTableCell(o[1]); | 2454 checkTableCell(o[1]); |
| 2449 } | 2455 } |
| 2450 | 2456 |
| 2451 core.int buildCounterTableRow = 0; | 2457 core.int buildCounterTableRow = 0; |
| 2452 buildTableRow() { | 2458 buildTableRow() { |
| 2453 var o = new api.TableRow(); | 2459 var o = new api.TableRow(); |
| 2454 buildCounterTableRow++; | 2460 buildCounterTableRow++; |
| 2455 if (buildCounterTableRow < 3) { | 2461 if (buildCounterTableRow < 3) { |
| 2456 o.rowHeight = buildDimension(); | 2462 o.rowHeight = buildDimension(); |
| 2457 o.tableCells = buildUnnamed1747(); | 2463 o.tableCells = buildUnnamed1745(); |
| 2458 } | 2464 } |
| 2459 buildCounterTableRow--; | 2465 buildCounterTableRow--; |
| 2460 return o; | 2466 return o; |
| 2461 } | 2467 } |
| 2462 | 2468 |
| 2463 checkTableRow(api.TableRow o) { | 2469 checkTableRow(api.TableRow o) { |
| 2464 buildCounterTableRow++; | 2470 buildCounterTableRow++; |
| 2465 if (buildCounterTableRow < 3) { | 2471 if (buildCounterTableRow < 3) { |
| 2466 checkDimension(o.rowHeight); | 2472 checkDimension(o.rowHeight); |
| 2467 checkUnnamed1747(o.tableCells); | 2473 checkUnnamed1745(o.tableCells); |
| 2468 } | 2474 } |
| 2469 buildCounterTableRow--; | 2475 buildCounterTableRow--; |
| 2470 } | 2476 } |
| 2471 | 2477 |
| 2472 buildUnnamed1748() { | 2478 buildUnnamed1746() { |
| 2473 var o = new core.Map<core.String, api.List>(); | 2479 var o = new core.Map<core.String, api.List>(); |
| 2474 o["x"] = buildList(); | 2480 o["x"] = buildList(); |
| 2475 o["y"] = buildList(); | 2481 o["y"] = buildList(); |
| 2476 return o; | 2482 return o; |
| 2477 } | 2483 } |
| 2478 | 2484 |
| 2479 checkUnnamed1748(core.Map<core.String, api.List> o) { | 2485 checkUnnamed1746(core.Map<core.String, api.List> o) { |
| 2480 unittest.expect(o, unittest.hasLength(2)); | 2486 unittest.expect(o, unittest.hasLength(2)); |
| 2481 checkList(o["x"]); | 2487 checkList(o["x"]); |
| 2482 checkList(o["y"]); | 2488 checkList(o["y"]); |
| 2483 } | 2489 } |
| 2484 | 2490 |
| 2485 buildUnnamed1749() { | 2491 buildUnnamed1747() { |
| 2486 var o = new core.List<api.TextElement>(); | 2492 var o = new core.List<api.TextElement>(); |
| 2487 o.add(buildTextElement()); | 2493 o.add(buildTextElement()); |
| 2488 o.add(buildTextElement()); | 2494 o.add(buildTextElement()); |
| 2489 return o; | 2495 return o; |
| 2490 } | 2496 } |
| 2491 | 2497 |
| 2492 checkUnnamed1749(core.List<api.TextElement> o) { | 2498 checkUnnamed1747(core.List<api.TextElement> o) { |
| 2493 unittest.expect(o, unittest.hasLength(2)); | 2499 unittest.expect(o, unittest.hasLength(2)); |
| 2494 checkTextElement(o[0]); | 2500 checkTextElement(o[0]); |
| 2495 checkTextElement(o[1]); | 2501 checkTextElement(o[1]); |
| 2496 } | 2502 } |
| 2497 | 2503 |
| 2498 core.int buildCounterTextContent = 0; | 2504 core.int buildCounterTextContent = 0; |
| 2499 buildTextContent() { | 2505 buildTextContent() { |
| 2500 var o = new api.TextContent(); | 2506 var o = new api.TextContent(); |
| 2501 buildCounterTextContent++; | 2507 buildCounterTextContent++; |
| 2502 if (buildCounterTextContent < 3) { | 2508 if (buildCounterTextContent < 3) { |
| 2503 o.lists = buildUnnamed1748(); | 2509 o.lists = buildUnnamed1746(); |
| 2504 o.textElements = buildUnnamed1749(); | 2510 o.textElements = buildUnnamed1747(); |
| 2505 } | 2511 } |
| 2506 buildCounterTextContent--; | 2512 buildCounterTextContent--; |
| 2507 return o; | 2513 return o; |
| 2508 } | 2514 } |
| 2509 | 2515 |
| 2510 checkTextContent(api.TextContent o) { | 2516 checkTextContent(api.TextContent o) { |
| 2511 buildCounterTextContent++; | 2517 buildCounterTextContent++; |
| 2512 if (buildCounterTextContent < 3) { | 2518 if (buildCounterTextContent < 3) { |
| 2513 checkUnnamed1748(o.lists); | 2519 checkUnnamed1746(o.lists); |
| 2514 checkUnnamed1749(o.textElements); | 2520 checkUnnamed1747(o.textElements); |
| 2515 } | 2521 } |
| 2516 buildCounterTextContent--; | 2522 buildCounterTextContent--; |
| 2517 } | 2523 } |
| 2518 | 2524 |
| 2519 core.int buildCounterTextElement = 0; | 2525 core.int buildCounterTextElement = 0; |
| 2520 buildTextElement() { | 2526 buildTextElement() { |
| 2521 var o = new api.TextElement(); | 2527 var o = new api.TextElement(); |
| 2522 buildCounterTextElement++; | 2528 buildCounterTextElement++; |
| 2523 if (buildCounterTextElement < 3) { | 2529 if (buildCounterTextElement < 3) { |
| 2524 o.autoText = buildAutoText(); | 2530 o.autoText = buildAutoText(); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 buildCounterUpdatePageElementTransformRequest++; | 2707 buildCounterUpdatePageElementTransformRequest++; |
| 2702 if (buildCounterUpdatePageElementTransformRequest < 3) { | 2708 if (buildCounterUpdatePageElementTransformRequest < 3) { |
| 2703 o.applyMode = "foo"; | 2709 o.applyMode = "foo"; |
| 2704 o.objectId = "foo"; | 2710 o.objectId = "foo"; |
| 2705 o.transform = buildAffineTransform(); | 2711 o.transform = buildAffineTransform(); |
| 2706 } | 2712 } |
| 2707 buildCounterUpdatePageElementTransformRequest--; | 2713 buildCounterUpdatePageElementTransformRequest--; |
| 2708 return o; | 2714 return o; |
| 2709 } | 2715 } |
| 2710 | 2716 |
| 2711 checkUpdatePageElementTransformRequest(api.UpdatePageElementTransformRequest o)
{ | 2717 checkUpdatePageElementTransformRequest( |
| 2718 api.UpdatePageElementTransformRequest o) { |
| 2712 buildCounterUpdatePageElementTransformRequest++; | 2719 buildCounterUpdatePageElementTransformRequest++; |
| 2713 if (buildCounterUpdatePageElementTransformRequest < 3) { | 2720 if (buildCounterUpdatePageElementTransformRequest < 3) { |
| 2714 unittest.expect(o.applyMode, unittest.equals('foo')); | 2721 unittest.expect(o.applyMode, unittest.equals('foo')); |
| 2715 unittest.expect(o.objectId, unittest.equals('foo')); | 2722 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2716 checkAffineTransform(o.transform); | 2723 checkAffineTransform(o.transform); |
| 2717 } | 2724 } |
| 2718 buildCounterUpdatePageElementTransformRequest--; | 2725 buildCounterUpdatePageElementTransformRequest--; |
| 2719 } | 2726 } |
| 2720 | 2727 |
| 2721 core.int buildCounterUpdatePagePropertiesRequest = 0; | 2728 core.int buildCounterUpdatePagePropertiesRequest = 0; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2784 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { | 2791 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { |
| 2785 buildCounterUpdateShapePropertiesRequest++; | 2792 buildCounterUpdateShapePropertiesRequest++; |
| 2786 if (buildCounterUpdateShapePropertiesRequest < 3) { | 2793 if (buildCounterUpdateShapePropertiesRequest < 3) { |
| 2787 unittest.expect(o.fields, unittest.equals('foo')); | 2794 unittest.expect(o.fields, unittest.equals('foo')); |
| 2788 unittest.expect(o.objectId, unittest.equals('foo')); | 2795 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2789 checkShapeProperties(o.shapeProperties); | 2796 checkShapeProperties(o.shapeProperties); |
| 2790 } | 2797 } |
| 2791 buildCounterUpdateShapePropertiesRequest--; | 2798 buildCounterUpdateShapePropertiesRequest--; |
| 2792 } | 2799 } |
| 2793 | 2800 |
| 2794 buildUnnamed1750() { | 2801 buildUnnamed1748() { |
| 2795 var o = new core.List<core.String>(); | 2802 var o = new core.List<core.String>(); |
| 2796 o.add("foo"); | 2803 o.add("foo"); |
| 2797 o.add("foo"); | 2804 o.add("foo"); |
| 2798 return o; | 2805 return o; |
| 2799 } | 2806 } |
| 2800 | 2807 |
| 2801 checkUnnamed1750(core.List<core.String> o) { | 2808 checkUnnamed1748(core.List<core.String> o) { |
| 2802 unittest.expect(o, unittest.hasLength(2)); | 2809 unittest.expect(o, unittest.hasLength(2)); |
| 2803 unittest.expect(o[0], unittest.equals('foo')); | 2810 unittest.expect(o[0], unittest.equals('foo')); |
| 2804 unittest.expect(o[1], unittest.equals('foo')); | 2811 unittest.expect(o[1], unittest.equals('foo')); |
| 2805 } | 2812 } |
| 2806 | 2813 |
| 2807 core.int buildCounterUpdateSlidesPositionRequest = 0; | 2814 core.int buildCounterUpdateSlidesPositionRequest = 0; |
| 2808 buildUpdateSlidesPositionRequest() { | 2815 buildUpdateSlidesPositionRequest() { |
| 2809 var o = new api.UpdateSlidesPositionRequest(); | 2816 var o = new api.UpdateSlidesPositionRequest(); |
| 2810 buildCounterUpdateSlidesPositionRequest++; | 2817 buildCounterUpdateSlidesPositionRequest++; |
| 2811 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2818 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2812 o.insertionIndex = 42; | 2819 o.insertionIndex = 42; |
| 2813 o.slideObjectIds = buildUnnamed1750(); | 2820 o.slideObjectIds = buildUnnamed1748(); |
| 2814 } | 2821 } |
| 2815 buildCounterUpdateSlidesPositionRequest--; | 2822 buildCounterUpdateSlidesPositionRequest--; |
| 2816 return o; | 2823 return o; |
| 2817 } | 2824 } |
| 2818 | 2825 |
| 2819 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { | 2826 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { |
| 2820 buildCounterUpdateSlidesPositionRequest++; | 2827 buildCounterUpdateSlidesPositionRequest++; |
| 2821 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2828 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2822 unittest.expect(o.insertionIndex, unittest.equals(42)); | 2829 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 2823 checkUnnamed1750(o.slideObjectIds); | 2830 checkUnnamed1748(o.slideObjectIds); |
| 2824 } | 2831 } |
| 2825 buildCounterUpdateSlidesPositionRequest--; | 2832 buildCounterUpdateSlidesPositionRequest--; |
| 2826 } | 2833 } |
| 2827 | 2834 |
| 2828 core.int buildCounterUpdateTableCellPropertiesRequest = 0; | 2835 core.int buildCounterUpdateTableCellPropertiesRequest = 0; |
| 2829 buildUpdateTableCellPropertiesRequest() { | 2836 buildUpdateTableCellPropertiesRequest() { |
| 2830 var o = new api.UpdateTableCellPropertiesRequest(); | 2837 var o = new api.UpdateTableCellPropertiesRequest(); |
| 2831 buildCounterUpdateTableCellPropertiesRequest++; | 2838 buildCounterUpdateTableCellPropertiesRequest++; |
| 2832 if (buildCounterUpdateTableCellPropertiesRequest < 3) { | 2839 if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| 2833 o.fields = "foo"; | 2840 o.fields = "foo"; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2996 } | 3003 } |
| 2997 | 3004 |
| 2998 checkWriteControl(api.WriteControl o) { | 3005 checkWriteControl(api.WriteControl o) { |
| 2999 buildCounterWriteControl++; | 3006 buildCounterWriteControl++; |
| 3000 if (buildCounterWriteControl < 3) { | 3007 if (buildCounterWriteControl < 3) { |
| 3001 unittest.expect(o.requiredRevisionId, unittest.equals('foo')); | 3008 unittest.expect(o.requiredRevisionId, unittest.equals('foo')); |
| 3002 } | 3009 } |
| 3003 buildCounterWriteControl--; | 3010 buildCounterWriteControl--; |
| 3004 } | 3011 } |
| 3005 | 3012 |
| 3006 | |
| 3007 main() { | 3013 main() { |
| 3008 unittest.group("obj-schema-AffineTransform", () { | 3014 unittest.group("obj-schema-AffineTransform", () { |
| 3009 unittest.test("to-json--from-json", () { | 3015 unittest.test("to-json--from-json", () { |
| 3010 var o = buildAffineTransform(); | 3016 var o = buildAffineTransform(); |
| 3011 var od = new api.AffineTransform.fromJson(o.toJson()); | 3017 var od = new api.AffineTransform.fromJson(o.toJson()); |
| 3012 checkAffineTransform(od); | 3018 checkAffineTransform(od); |
| 3013 }); | 3019 }); |
| 3014 }); | 3020 }); |
| 3015 | 3021 |
| 3016 | |
| 3017 unittest.group("obj-schema-AutoText", () { | 3022 unittest.group("obj-schema-AutoText", () { |
| 3018 unittest.test("to-json--from-json", () { | 3023 unittest.test("to-json--from-json", () { |
| 3019 var o = buildAutoText(); | 3024 var o = buildAutoText(); |
| 3020 var od = new api.AutoText.fromJson(o.toJson()); | 3025 var od = new api.AutoText.fromJson(o.toJson()); |
| 3021 checkAutoText(od); | 3026 checkAutoText(od); |
| 3022 }); | 3027 }); |
| 3023 }); | 3028 }); |
| 3024 | 3029 |
| 3025 | |
| 3026 unittest.group("obj-schema-BatchUpdatePresentationRequest", () { | 3030 unittest.group("obj-schema-BatchUpdatePresentationRequest", () { |
| 3027 unittest.test("to-json--from-json", () { | 3031 unittest.test("to-json--from-json", () { |
| 3028 var o = buildBatchUpdatePresentationRequest(); | 3032 var o = buildBatchUpdatePresentationRequest(); |
| 3029 var od = new api.BatchUpdatePresentationRequest.fromJson(o.toJson()); | 3033 var od = new api.BatchUpdatePresentationRequest.fromJson(o.toJson()); |
| 3030 checkBatchUpdatePresentationRequest(od); | 3034 checkBatchUpdatePresentationRequest(od); |
| 3031 }); | 3035 }); |
| 3032 }); | 3036 }); |
| 3033 | 3037 |
| 3034 | |
| 3035 unittest.group("obj-schema-BatchUpdatePresentationResponse", () { | 3038 unittest.group("obj-schema-BatchUpdatePresentationResponse", () { |
| 3036 unittest.test("to-json--from-json", () { | 3039 unittest.test("to-json--from-json", () { |
| 3037 var o = buildBatchUpdatePresentationResponse(); | 3040 var o = buildBatchUpdatePresentationResponse(); |
| 3038 var od = new api.BatchUpdatePresentationResponse.fromJson(o.toJson()); | 3041 var od = new api.BatchUpdatePresentationResponse.fromJson(o.toJson()); |
| 3039 checkBatchUpdatePresentationResponse(od); | 3042 checkBatchUpdatePresentationResponse(od); |
| 3040 }); | 3043 }); |
| 3041 }); | 3044 }); |
| 3042 | 3045 |
| 3043 | |
| 3044 unittest.group("obj-schema-Bullet", () { | 3046 unittest.group("obj-schema-Bullet", () { |
| 3045 unittest.test("to-json--from-json", () { | 3047 unittest.test("to-json--from-json", () { |
| 3046 var o = buildBullet(); | 3048 var o = buildBullet(); |
| 3047 var od = new api.Bullet.fromJson(o.toJson()); | 3049 var od = new api.Bullet.fromJson(o.toJson()); |
| 3048 checkBullet(od); | 3050 checkBullet(od); |
| 3049 }); | 3051 }); |
| 3050 }); | 3052 }); |
| 3051 | 3053 |
| 3052 | |
| 3053 unittest.group("obj-schema-ColorScheme", () { | 3054 unittest.group("obj-schema-ColorScheme", () { |
| 3054 unittest.test("to-json--from-json", () { | 3055 unittest.test("to-json--from-json", () { |
| 3055 var o = buildColorScheme(); | 3056 var o = buildColorScheme(); |
| 3056 var od = new api.ColorScheme.fromJson(o.toJson()); | 3057 var od = new api.ColorScheme.fromJson(o.toJson()); |
| 3057 checkColorScheme(od); | 3058 checkColorScheme(od); |
| 3058 }); | 3059 }); |
| 3059 }); | 3060 }); |
| 3060 | 3061 |
| 3061 | |
| 3062 unittest.group("obj-schema-ColorStop", () { | 3062 unittest.group("obj-schema-ColorStop", () { |
| 3063 unittest.test("to-json--from-json", () { | 3063 unittest.test("to-json--from-json", () { |
| 3064 var o = buildColorStop(); | 3064 var o = buildColorStop(); |
| 3065 var od = new api.ColorStop.fromJson(o.toJson()); | 3065 var od = new api.ColorStop.fromJson(o.toJson()); |
| 3066 checkColorStop(od); | 3066 checkColorStop(od); |
| 3067 }); | 3067 }); |
| 3068 }); | 3068 }); |
| 3069 | 3069 |
| 3070 | |
| 3071 unittest.group("obj-schema-CreateImageRequest", () { | 3070 unittest.group("obj-schema-CreateImageRequest", () { |
| 3072 unittest.test("to-json--from-json", () { | 3071 unittest.test("to-json--from-json", () { |
| 3073 var o = buildCreateImageRequest(); | 3072 var o = buildCreateImageRequest(); |
| 3074 var od = new api.CreateImageRequest.fromJson(o.toJson()); | 3073 var od = new api.CreateImageRequest.fromJson(o.toJson()); |
| 3075 checkCreateImageRequest(od); | 3074 checkCreateImageRequest(od); |
| 3076 }); | 3075 }); |
| 3077 }); | 3076 }); |
| 3078 | 3077 |
| 3079 | |
| 3080 unittest.group("obj-schema-CreateImageResponse", () { | 3078 unittest.group("obj-schema-CreateImageResponse", () { |
| 3081 unittest.test("to-json--from-json", () { | 3079 unittest.test("to-json--from-json", () { |
| 3082 var o = buildCreateImageResponse(); | 3080 var o = buildCreateImageResponse(); |
| 3083 var od = new api.CreateImageResponse.fromJson(o.toJson()); | 3081 var od = new api.CreateImageResponse.fromJson(o.toJson()); |
| 3084 checkCreateImageResponse(od); | 3082 checkCreateImageResponse(od); |
| 3085 }); | 3083 }); |
| 3086 }); | 3084 }); |
| 3087 | 3085 |
| 3088 | |
| 3089 unittest.group("obj-schema-CreateLineRequest", () { | 3086 unittest.group("obj-schema-CreateLineRequest", () { |
| 3090 unittest.test("to-json--from-json", () { | 3087 unittest.test("to-json--from-json", () { |
| 3091 var o = buildCreateLineRequest(); | 3088 var o = buildCreateLineRequest(); |
| 3092 var od = new api.CreateLineRequest.fromJson(o.toJson()); | 3089 var od = new api.CreateLineRequest.fromJson(o.toJson()); |
| 3093 checkCreateLineRequest(od); | 3090 checkCreateLineRequest(od); |
| 3094 }); | 3091 }); |
| 3095 }); | 3092 }); |
| 3096 | 3093 |
| 3097 | |
| 3098 unittest.group("obj-schema-CreateLineResponse", () { | 3094 unittest.group("obj-schema-CreateLineResponse", () { |
| 3099 unittest.test("to-json--from-json", () { | 3095 unittest.test("to-json--from-json", () { |
| 3100 var o = buildCreateLineResponse(); | 3096 var o = buildCreateLineResponse(); |
| 3101 var od = new api.CreateLineResponse.fromJson(o.toJson()); | 3097 var od = new api.CreateLineResponse.fromJson(o.toJson()); |
| 3102 checkCreateLineResponse(od); | 3098 checkCreateLineResponse(od); |
| 3103 }); | 3099 }); |
| 3104 }); | 3100 }); |
| 3105 | 3101 |
| 3106 | |
| 3107 unittest.group("obj-schema-CreateParagraphBulletsRequest", () { | 3102 unittest.group("obj-schema-CreateParagraphBulletsRequest", () { |
| 3108 unittest.test("to-json--from-json", () { | 3103 unittest.test("to-json--from-json", () { |
| 3109 var o = buildCreateParagraphBulletsRequest(); | 3104 var o = buildCreateParagraphBulletsRequest(); |
| 3110 var od = new api.CreateParagraphBulletsRequest.fromJson(o.toJson()); | 3105 var od = new api.CreateParagraphBulletsRequest.fromJson(o.toJson()); |
| 3111 checkCreateParagraphBulletsRequest(od); | 3106 checkCreateParagraphBulletsRequest(od); |
| 3112 }); | 3107 }); |
| 3113 }); | 3108 }); |
| 3114 | 3109 |
| 3115 | |
| 3116 unittest.group("obj-schema-CreateShapeRequest", () { | 3110 unittest.group("obj-schema-CreateShapeRequest", () { |
| 3117 unittest.test("to-json--from-json", () { | 3111 unittest.test("to-json--from-json", () { |
| 3118 var o = buildCreateShapeRequest(); | 3112 var o = buildCreateShapeRequest(); |
| 3119 var od = new api.CreateShapeRequest.fromJson(o.toJson()); | 3113 var od = new api.CreateShapeRequest.fromJson(o.toJson()); |
| 3120 checkCreateShapeRequest(od); | 3114 checkCreateShapeRequest(od); |
| 3121 }); | 3115 }); |
| 3122 }); | 3116 }); |
| 3123 | 3117 |
| 3124 | |
| 3125 unittest.group("obj-schema-CreateShapeResponse", () { | 3118 unittest.group("obj-schema-CreateShapeResponse", () { |
| 3126 unittest.test("to-json--from-json", () { | 3119 unittest.test("to-json--from-json", () { |
| 3127 var o = buildCreateShapeResponse(); | 3120 var o = buildCreateShapeResponse(); |
| 3128 var od = new api.CreateShapeResponse.fromJson(o.toJson()); | 3121 var od = new api.CreateShapeResponse.fromJson(o.toJson()); |
| 3129 checkCreateShapeResponse(od); | 3122 checkCreateShapeResponse(od); |
| 3130 }); | 3123 }); |
| 3131 }); | 3124 }); |
| 3132 | 3125 |
| 3133 | |
| 3134 unittest.group("obj-schema-CreateSheetsChartRequest", () { | 3126 unittest.group("obj-schema-CreateSheetsChartRequest", () { |
| 3135 unittest.test("to-json--from-json", () { | 3127 unittest.test("to-json--from-json", () { |
| 3136 var o = buildCreateSheetsChartRequest(); | 3128 var o = buildCreateSheetsChartRequest(); |
| 3137 var od = new api.CreateSheetsChartRequest.fromJson(o.toJson()); | 3129 var od = new api.CreateSheetsChartRequest.fromJson(o.toJson()); |
| 3138 checkCreateSheetsChartRequest(od); | 3130 checkCreateSheetsChartRequest(od); |
| 3139 }); | 3131 }); |
| 3140 }); | 3132 }); |
| 3141 | 3133 |
| 3142 | |
| 3143 unittest.group("obj-schema-CreateSheetsChartResponse", () { | 3134 unittest.group("obj-schema-CreateSheetsChartResponse", () { |
| 3144 unittest.test("to-json--from-json", () { | 3135 unittest.test("to-json--from-json", () { |
| 3145 var o = buildCreateSheetsChartResponse(); | 3136 var o = buildCreateSheetsChartResponse(); |
| 3146 var od = new api.CreateSheetsChartResponse.fromJson(o.toJson()); | 3137 var od = new api.CreateSheetsChartResponse.fromJson(o.toJson()); |
| 3147 checkCreateSheetsChartResponse(od); | 3138 checkCreateSheetsChartResponse(od); |
| 3148 }); | 3139 }); |
| 3149 }); | 3140 }); |
| 3150 | 3141 |
| 3151 | |
| 3152 unittest.group("obj-schema-CreateSlideRequest", () { | 3142 unittest.group("obj-schema-CreateSlideRequest", () { |
| 3153 unittest.test("to-json--from-json", () { | 3143 unittest.test("to-json--from-json", () { |
| 3154 var o = buildCreateSlideRequest(); | 3144 var o = buildCreateSlideRequest(); |
| 3155 var od = new api.CreateSlideRequest.fromJson(o.toJson()); | 3145 var od = new api.CreateSlideRequest.fromJson(o.toJson()); |
| 3156 checkCreateSlideRequest(od); | 3146 checkCreateSlideRequest(od); |
| 3157 }); | 3147 }); |
| 3158 }); | 3148 }); |
| 3159 | 3149 |
| 3160 | |
| 3161 unittest.group("obj-schema-CreateSlideResponse", () { | 3150 unittest.group("obj-schema-CreateSlideResponse", () { |
| 3162 unittest.test("to-json--from-json", () { | 3151 unittest.test("to-json--from-json", () { |
| 3163 var o = buildCreateSlideResponse(); | 3152 var o = buildCreateSlideResponse(); |
| 3164 var od = new api.CreateSlideResponse.fromJson(o.toJson()); | 3153 var od = new api.CreateSlideResponse.fromJson(o.toJson()); |
| 3165 checkCreateSlideResponse(od); | 3154 checkCreateSlideResponse(od); |
| 3166 }); | 3155 }); |
| 3167 }); | 3156 }); |
| 3168 | 3157 |
| 3169 | |
| 3170 unittest.group("obj-schema-CreateTableRequest", () { | 3158 unittest.group("obj-schema-CreateTableRequest", () { |
| 3171 unittest.test("to-json--from-json", () { | 3159 unittest.test("to-json--from-json", () { |
| 3172 var o = buildCreateTableRequest(); | 3160 var o = buildCreateTableRequest(); |
| 3173 var od = new api.CreateTableRequest.fromJson(o.toJson()); | 3161 var od = new api.CreateTableRequest.fromJson(o.toJson()); |
| 3174 checkCreateTableRequest(od); | 3162 checkCreateTableRequest(od); |
| 3175 }); | 3163 }); |
| 3176 }); | 3164 }); |
| 3177 | 3165 |
| 3178 | |
| 3179 unittest.group("obj-schema-CreateTableResponse", () { | 3166 unittest.group("obj-schema-CreateTableResponse", () { |
| 3180 unittest.test("to-json--from-json", () { | 3167 unittest.test("to-json--from-json", () { |
| 3181 var o = buildCreateTableResponse(); | 3168 var o = buildCreateTableResponse(); |
| 3182 var od = new api.CreateTableResponse.fromJson(o.toJson()); | 3169 var od = new api.CreateTableResponse.fromJson(o.toJson()); |
| 3183 checkCreateTableResponse(od); | 3170 checkCreateTableResponse(od); |
| 3184 }); | 3171 }); |
| 3185 }); | 3172 }); |
| 3186 | 3173 |
| 3187 | |
| 3188 unittest.group("obj-schema-CreateVideoRequest", () { | 3174 unittest.group("obj-schema-CreateVideoRequest", () { |
| 3189 unittest.test("to-json--from-json", () { | 3175 unittest.test("to-json--from-json", () { |
| 3190 var o = buildCreateVideoRequest(); | 3176 var o = buildCreateVideoRequest(); |
| 3191 var od = new api.CreateVideoRequest.fromJson(o.toJson()); | 3177 var od = new api.CreateVideoRequest.fromJson(o.toJson()); |
| 3192 checkCreateVideoRequest(od); | 3178 checkCreateVideoRequest(od); |
| 3193 }); | 3179 }); |
| 3194 }); | 3180 }); |
| 3195 | 3181 |
| 3196 | |
| 3197 unittest.group("obj-schema-CreateVideoResponse", () { | 3182 unittest.group("obj-schema-CreateVideoResponse", () { |
| 3198 unittest.test("to-json--from-json", () { | 3183 unittest.test("to-json--from-json", () { |
| 3199 var o = buildCreateVideoResponse(); | 3184 var o = buildCreateVideoResponse(); |
| 3200 var od = new api.CreateVideoResponse.fromJson(o.toJson()); | 3185 var od = new api.CreateVideoResponse.fromJson(o.toJson()); |
| 3201 checkCreateVideoResponse(od); | 3186 checkCreateVideoResponse(od); |
| 3202 }); | 3187 }); |
| 3203 }); | 3188 }); |
| 3204 | 3189 |
| 3205 | |
| 3206 unittest.group("obj-schema-CropProperties", () { | 3190 unittest.group("obj-schema-CropProperties", () { |
| 3207 unittest.test("to-json--from-json", () { | 3191 unittest.test("to-json--from-json", () { |
| 3208 var o = buildCropProperties(); | 3192 var o = buildCropProperties(); |
| 3209 var od = new api.CropProperties.fromJson(o.toJson()); | 3193 var od = new api.CropProperties.fromJson(o.toJson()); |
| 3210 checkCropProperties(od); | 3194 checkCropProperties(od); |
| 3211 }); | 3195 }); |
| 3212 }); | 3196 }); |
| 3213 | 3197 |
| 3214 | |
| 3215 unittest.group("obj-schema-DeleteObjectRequest", () { | 3198 unittest.group("obj-schema-DeleteObjectRequest", () { |
| 3216 unittest.test("to-json--from-json", () { | 3199 unittest.test("to-json--from-json", () { |
| 3217 var o = buildDeleteObjectRequest(); | 3200 var o = buildDeleteObjectRequest(); |
| 3218 var od = new api.DeleteObjectRequest.fromJson(o.toJson()); | 3201 var od = new api.DeleteObjectRequest.fromJson(o.toJson()); |
| 3219 checkDeleteObjectRequest(od); | 3202 checkDeleteObjectRequest(od); |
| 3220 }); | 3203 }); |
| 3221 }); | 3204 }); |
| 3222 | 3205 |
| 3223 | |
| 3224 unittest.group("obj-schema-DeleteParagraphBulletsRequest", () { | 3206 unittest.group("obj-schema-DeleteParagraphBulletsRequest", () { |
| 3225 unittest.test("to-json--from-json", () { | 3207 unittest.test("to-json--from-json", () { |
| 3226 var o = buildDeleteParagraphBulletsRequest(); | 3208 var o = buildDeleteParagraphBulletsRequest(); |
| 3227 var od = new api.DeleteParagraphBulletsRequest.fromJson(o.toJson()); | 3209 var od = new api.DeleteParagraphBulletsRequest.fromJson(o.toJson()); |
| 3228 checkDeleteParagraphBulletsRequest(od); | 3210 checkDeleteParagraphBulletsRequest(od); |
| 3229 }); | 3211 }); |
| 3230 }); | 3212 }); |
| 3231 | 3213 |
| 3232 | |
| 3233 unittest.group("obj-schema-DeleteTableColumnRequest", () { | 3214 unittest.group("obj-schema-DeleteTableColumnRequest", () { |
| 3234 unittest.test("to-json--from-json", () { | 3215 unittest.test("to-json--from-json", () { |
| 3235 var o = buildDeleteTableColumnRequest(); | 3216 var o = buildDeleteTableColumnRequest(); |
| 3236 var od = new api.DeleteTableColumnRequest.fromJson(o.toJson()); | 3217 var od = new api.DeleteTableColumnRequest.fromJson(o.toJson()); |
| 3237 checkDeleteTableColumnRequest(od); | 3218 checkDeleteTableColumnRequest(od); |
| 3238 }); | 3219 }); |
| 3239 }); | 3220 }); |
| 3240 | 3221 |
| 3241 | |
| 3242 unittest.group("obj-schema-DeleteTableRowRequest", () { | 3222 unittest.group("obj-schema-DeleteTableRowRequest", () { |
| 3243 unittest.test("to-json--from-json", () { | 3223 unittest.test("to-json--from-json", () { |
| 3244 var o = buildDeleteTableRowRequest(); | 3224 var o = buildDeleteTableRowRequest(); |
| 3245 var od = new api.DeleteTableRowRequest.fromJson(o.toJson()); | 3225 var od = new api.DeleteTableRowRequest.fromJson(o.toJson()); |
| 3246 checkDeleteTableRowRequest(od); | 3226 checkDeleteTableRowRequest(od); |
| 3247 }); | 3227 }); |
| 3248 }); | 3228 }); |
| 3249 | 3229 |
| 3250 | |
| 3251 unittest.group("obj-schema-DeleteTextRequest", () { | 3230 unittest.group("obj-schema-DeleteTextRequest", () { |
| 3252 unittest.test("to-json--from-json", () { | 3231 unittest.test("to-json--from-json", () { |
| 3253 var o = buildDeleteTextRequest(); | 3232 var o = buildDeleteTextRequest(); |
| 3254 var od = new api.DeleteTextRequest.fromJson(o.toJson()); | 3233 var od = new api.DeleteTextRequest.fromJson(o.toJson()); |
| 3255 checkDeleteTextRequest(od); | 3234 checkDeleteTextRequest(od); |
| 3256 }); | 3235 }); |
| 3257 }); | 3236 }); |
| 3258 | 3237 |
| 3259 | |
| 3260 unittest.group("obj-schema-Dimension", () { | 3238 unittest.group("obj-schema-Dimension", () { |
| 3261 unittest.test("to-json--from-json", () { | 3239 unittest.test("to-json--from-json", () { |
| 3262 var o = buildDimension(); | 3240 var o = buildDimension(); |
| 3263 var od = new api.Dimension.fromJson(o.toJson()); | 3241 var od = new api.Dimension.fromJson(o.toJson()); |
| 3264 checkDimension(od); | 3242 checkDimension(od); |
| 3265 }); | 3243 }); |
| 3266 }); | 3244 }); |
| 3267 | 3245 |
| 3268 | |
| 3269 unittest.group("obj-schema-DuplicateObjectRequest", () { | 3246 unittest.group("obj-schema-DuplicateObjectRequest", () { |
| 3270 unittest.test("to-json--from-json", () { | 3247 unittest.test("to-json--from-json", () { |
| 3271 var o = buildDuplicateObjectRequest(); | 3248 var o = buildDuplicateObjectRequest(); |
| 3272 var od = new api.DuplicateObjectRequest.fromJson(o.toJson()); | 3249 var od = new api.DuplicateObjectRequest.fromJson(o.toJson()); |
| 3273 checkDuplicateObjectRequest(od); | 3250 checkDuplicateObjectRequest(od); |
| 3274 }); | 3251 }); |
| 3275 }); | 3252 }); |
| 3276 | 3253 |
| 3277 | |
| 3278 unittest.group("obj-schema-DuplicateObjectResponse", () { | 3254 unittest.group("obj-schema-DuplicateObjectResponse", () { |
| 3279 unittest.test("to-json--from-json", () { | 3255 unittest.test("to-json--from-json", () { |
| 3280 var o = buildDuplicateObjectResponse(); | 3256 var o = buildDuplicateObjectResponse(); |
| 3281 var od = new api.DuplicateObjectResponse.fromJson(o.toJson()); | 3257 var od = new api.DuplicateObjectResponse.fromJson(o.toJson()); |
| 3282 checkDuplicateObjectResponse(od); | 3258 checkDuplicateObjectResponse(od); |
| 3283 }); | 3259 }); |
| 3284 }); | 3260 }); |
| 3285 | 3261 |
| 3286 | |
| 3287 unittest.group("obj-schema-Group", () { | 3262 unittest.group("obj-schema-Group", () { |
| 3288 unittest.test("to-json--from-json", () { | 3263 unittest.test("to-json--from-json", () { |
| 3289 var o = buildGroup(); | 3264 var o = buildGroup(); |
| 3290 var od = new api.Group.fromJson(o.toJson()); | 3265 var od = new api.Group.fromJson(o.toJson()); |
| 3291 checkGroup(od); | 3266 checkGroup(od); |
| 3292 }); | 3267 }); |
| 3293 }); | 3268 }); |
| 3294 | 3269 |
| 3295 | |
| 3296 unittest.group("obj-schema-Image", () { | 3270 unittest.group("obj-schema-Image", () { |
| 3297 unittest.test("to-json--from-json", () { | 3271 unittest.test("to-json--from-json", () { |
| 3298 var o = buildImage(); | 3272 var o = buildImage(); |
| 3299 var od = new api.Image.fromJson(o.toJson()); | 3273 var od = new api.Image.fromJson(o.toJson()); |
| 3300 checkImage(od); | 3274 checkImage(od); |
| 3301 }); | 3275 }); |
| 3302 }); | 3276 }); |
| 3303 | 3277 |
| 3304 | |
| 3305 unittest.group("obj-schema-ImageProperties", () { | 3278 unittest.group("obj-schema-ImageProperties", () { |
| 3306 unittest.test("to-json--from-json", () { | 3279 unittest.test("to-json--from-json", () { |
| 3307 var o = buildImageProperties(); | 3280 var o = buildImageProperties(); |
| 3308 var od = new api.ImageProperties.fromJson(o.toJson()); | 3281 var od = new api.ImageProperties.fromJson(o.toJson()); |
| 3309 checkImageProperties(od); | 3282 checkImageProperties(od); |
| 3310 }); | 3283 }); |
| 3311 }); | 3284 }); |
| 3312 | 3285 |
| 3313 | |
| 3314 unittest.group("obj-schema-InsertTableColumnsRequest", () { | 3286 unittest.group("obj-schema-InsertTableColumnsRequest", () { |
| 3315 unittest.test("to-json--from-json", () { | 3287 unittest.test("to-json--from-json", () { |
| 3316 var o = buildInsertTableColumnsRequest(); | 3288 var o = buildInsertTableColumnsRequest(); |
| 3317 var od = new api.InsertTableColumnsRequest.fromJson(o.toJson()); | 3289 var od = new api.InsertTableColumnsRequest.fromJson(o.toJson()); |
| 3318 checkInsertTableColumnsRequest(od); | 3290 checkInsertTableColumnsRequest(od); |
| 3319 }); | 3291 }); |
| 3320 }); | 3292 }); |
| 3321 | 3293 |
| 3322 | |
| 3323 unittest.group("obj-schema-InsertTableRowsRequest", () { | 3294 unittest.group("obj-schema-InsertTableRowsRequest", () { |
| 3324 unittest.test("to-json--from-json", () { | 3295 unittest.test("to-json--from-json", () { |
| 3325 var o = buildInsertTableRowsRequest(); | 3296 var o = buildInsertTableRowsRequest(); |
| 3326 var od = new api.InsertTableRowsRequest.fromJson(o.toJson()); | 3297 var od = new api.InsertTableRowsRequest.fromJson(o.toJson()); |
| 3327 checkInsertTableRowsRequest(od); | 3298 checkInsertTableRowsRequest(od); |
| 3328 }); | 3299 }); |
| 3329 }); | 3300 }); |
| 3330 | 3301 |
| 3331 | |
| 3332 unittest.group("obj-schema-InsertTextRequest", () { | 3302 unittest.group("obj-schema-InsertTextRequest", () { |
| 3333 unittest.test("to-json--from-json", () { | 3303 unittest.test("to-json--from-json", () { |
| 3334 var o = buildInsertTextRequest(); | 3304 var o = buildInsertTextRequest(); |
| 3335 var od = new api.InsertTextRequest.fromJson(o.toJson()); | 3305 var od = new api.InsertTextRequest.fromJson(o.toJson()); |
| 3336 checkInsertTextRequest(od); | 3306 checkInsertTextRequest(od); |
| 3337 }); | 3307 }); |
| 3338 }); | 3308 }); |
| 3339 | 3309 |
| 3340 | |
| 3341 unittest.group("obj-schema-LayoutPlaceholderIdMapping", () { | 3310 unittest.group("obj-schema-LayoutPlaceholderIdMapping", () { |
| 3342 unittest.test("to-json--from-json", () { | 3311 unittest.test("to-json--from-json", () { |
| 3343 var o = buildLayoutPlaceholderIdMapping(); | 3312 var o = buildLayoutPlaceholderIdMapping(); |
| 3344 var od = new api.LayoutPlaceholderIdMapping.fromJson(o.toJson()); | 3313 var od = new api.LayoutPlaceholderIdMapping.fromJson(o.toJson()); |
| 3345 checkLayoutPlaceholderIdMapping(od); | 3314 checkLayoutPlaceholderIdMapping(od); |
| 3346 }); | 3315 }); |
| 3347 }); | 3316 }); |
| 3348 | 3317 |
| 3349 | |
| 3350 unittest.group("obj-schema-LayoutProperties", () { | 3318 unittest.group("obj-schema-LayoutProperties", () { |
| 3351 unittest.test("to-json--from-json", () { | 3319 unittest.test("to-json--from-json", () { |
| 3352 var o = buildLayoutProperties(); | 3320 var o = buildLayoutProperties(); |
| 3353 var od = new api.LayoutProperties.fromJson(o.toJson()); | 3321 var od = new api.LayoutProperties.fromJson(o.toJson()); |
| 3354 checkLayoutProperties(od); | 3322 checkLayoutProperties(od); |
| 3355 }); | 3323 }); |
| 3356 }); | 3324 }); |
| 3357 | 3325 |
| 3358 | |
| 3359 unittest.group("obj-schema-LayoutReference", () { | 3326 unittest.group("obj-schema-LayoutReference", () { |
| 3360 unittest.test("to-json--from-json", () { | 3327 unittest.test("to-json--from-json", () { |
| 3361 var o = buildLayoutReference(); | 3328 var o = buildLayoutReference(); |
| 3362 var od = new api.LayoutReference.fromJson(o.toJson()); | 3329 var od = new api.LayoutReference.fromJson(o.toJson()); |
| 3363 checkLayoutReference(od); | 3330 checkLayoutReference(od); |
| 3364 }); | 3331 }); |
| 3365 }); | 3332 }); |
| 3366 | 3333 |
| 3367 | |
| 3368 unittest.group("obj-schema-Line", () { | 3334 unittest.group("obj-schema-Line", () { |
| 3369 unittest.test("to-json--from-json", () { | 3335 unittest.test("to-json--from-json", () { |
| 3370 var o = buildLine(); | 3336 var o = buildLine(); |
| 3371 var od = new api.Line.fromJson(o.toJson()); | 3337 var od = new api.Line.fromJson(o.toJson()); |
| 3372 checkLine(od); | 3338 checkLine(od); |
| 3373 }); | 3339 }); |
| 3374 }); | 3340 }); |
| 3375 | 3341 |
| 3376 | |
| 3377 unittest.group("obj-schema-LineFill", () { | 3342 unittest.group("obj-schema-LineFill", () { |
| 3378 unittest.test("to-json--from-json", () { | 3343 unittest.test("to-json--from-json", () { |
| 3379 var o = buildLineFill(); | 3344 var o = buildLineFill(); |
| 3380 var od = new api.LineFill.fromJson(o.toJson()); | 3345 var od = new api.LineFill.fromJson(o.toJson()); |
| 3381 checkLineFill(od); | 3346 checkLineFill(od); |
| 3382 }); | 3347 }); |
| 3383 }); | 3348 }); |
| 3384 | 3349 |
| 3385 | |
| 3386 unittest.group("obj-schema-LineProperties", () { | 3350 unittest.group("obj-schema-LineProperties", () { |
| 3387 unittest.test("to-json--from-json", () { | 3351 unittest.test("to-json--from-json", () { |
| 3388 var o = buildLineProperties(); | 3352 var o = buildLineProperties(); |
| 3389 var od = new api.LineProperties.fromJson(o.toJson()); | 3353 var od = new api.LineProperties.fromJson(o.toJson()); |
| 3390 checkLineProperties(od); | 3354 checkLineProperties(od); |
| 3391 }); | 3355 }); |
| 3392 }); | 3356 }); |
| 3393 | 3357 |
| 3394 | |
| 3395 unittest.group("obj-schema-Link", () { | 3358 unittest.group("obj-schema-Link", () { |
| 3396 unittest.test("to-json--from-json", () { | 3359 unittest.test("to-json--from-json", () { |
| 3397 var o = buildLink(); | 3360 var o = buildLink(); |
| 3398 var od = new api.Link.fromJson(o.toJson()); | 3361 var od = new api.Link.fromJson(o.toJson()); |
| 3399 checkLink(od); | 3362 checkLink(od); |
| 3400 }); | 3363 }); |
| 3401 }); | 3364 }); |
| 3402 | 3365 |
| 3403 | |
| 3404 unittest.group("obj-schema-List", () { | 3366 unittest.group("obj-schema-List", () { |
| 3405 unittest.test("to-json--from-json", () { | 3367 unittest.test("to-json--from-json", () { |
| 3406 var o = buildList(); | 3368 var o = buildList(); |
| 3407 var od = new api.List.fromJson(o.toJson()); | 3369 var od = new api.List.fromJson(o.toJson()); |
| 3408 checkList(od); | 3370 checkList(od); |
| 3409 }); | 3371 }); |
| 3410 }); | 3372 }); |
| 3411 | 3373 |
| 3412 | |
| 3413 unittest.group("obj-schema-MasterProperties", () { | 3374 unittest.group("obj-schema-MasterProperties", () { |
| 3414 unittest.test("to-json--from-json", () { | 3375 unittest.test("to-json--from-json", () { |
| 3415 var o = buildMasterProperties(); | 3376 var o = buildMasterProperties(); |
| 3416 var od = new api.MasterProperties.fromJson(o.toJson()); | 3377 var od = new api.MasterProperties.fromJson(o.toJson()); |
| 3417 checkMasterProperties(od); | 3378 checkMasterProperties(od); |
| 3418 }); | 3379 }); |
| 3419 }); | 3380 }); |
| 3420 | 3381 |
| 3421 | |
| 3422 unittest.group("obj-schema-NestingLevel", () { | 3382 unittest.group("obj-schema-NestingLevel", () { |
| 3423 unittest.test("to-json--from-json", () { | 3383 unittest.test("to-json--from-json", () { |
| 3424 var o = buildNestingLevel(); | 3384 var o = buildNestingLevel(); |
| 3425 var od = new api.NestingLevel.fromJson(o.toJson()); | 3385 var od = new api.NestingLevel.fromJson(o.toJson()); |
| 3426 checkNestingLevel(od); | 3386 checkNestingLevel(od); |
| 3427 }); | 3387 }); |
| 3428 }); | 3388 }); |
| 3429 | 3389 |
| 3430 | |
| 3431 unittest.group("obj-schema-NotesProperties", () { | 3390 unittest.group("obj-schema-NotesProperties", () { |
| 3432 unittest.test("to-json--from-json", () { | 3391 unittest.test("to-json--from-json", () { |
| 3433 var o = buildNotesProperties(); | 3392 var o = buildNotesProperties(); |
| 3434 var od = new api.NotesProperties.fromJson(o.toJson()); | 3393 var od = new api.NotesProperties.fromJson(o.toJson()); |
| 3435 checkNotesProperties(od); | 3394 checkNotesProperties(od); |
| 3436 }); | 3395 }); |
| 3437 }); | 3396 }); |
| 3438 | 3397 |
| 3439 | |
| 3440 unittest.group("obj-schema-OpaqueColor", () { | 3398 unittest.group("obj-schema-OpaqueColor", () { |
| 3441 unittest.test("to-json--from-json", () { | 3399 unittest.test("to-json--from-json", () { |
| 3442 var o = buildOpaqueColor(); | 3400 var o = buildOpaqueColor(); |
| 3443 var od = new api.OpaqueColor.fromJson(o.toJson()); | 3401 var od = new api.OpaqueColor.fromJson(o.toJson()); |
| 3444 checkOpaqueColor(od); | 3402 checkOpaqueColor(od); |
| 3445 }); | 3403 }); |
| 3446 }); | 3404 }); |
| 3447 | 3405 |
| 3448 | |
| 3449 unittest.group("obj-schema-OptionalColor", () { | 3406 unittest.group("obj-schema-OptionalColor", () { |
| 3450 unittest.test("to-json--from-json", () { | 3407 unittest.test("to-json--from-json", () { |
| 3451 var o = buildOptionalColor(); | 3408 var o = buildOptionalColor(); |
| 3452 var od = new api.OptionalColor.fromJson(o.toJson()); | 3409 var od = new api.OptionalColor.fromJson(o.toJson()); |
| 3453 checkOptionalColor(od); | 3410 checkOptionalColor(od); |
| 3454 }); | 3411 }); |
| 3455 }); | 3412 }); |
| 3456 | 3413 |
| 3457 | |
| 3458 unittest.group("obj-schema-Outline", () { | 3414 unittest.group("obj-schema-Outline", () { |
| 3459 unittest.test("to-json--from-json", () { | 3415 unittest.test("to-json--from-json", () { |
| 3460 var o = buildOutline(); | 3416 var o = buildOutline(); |
| 3461 var od = new api.Outline.fromJson(o.toJson()); | 3417 var od = new api.Outline.fromJson(o.toJson()); |
| 3462 checkOutline(od); | 3418 checkOutline(od); |
| 3463 }); | 3419 }); |
| 3464 }); | 3420 }); |
| 3465 | 3421 |
| 3466 | |
| 3467 unittest.group("obj-schema-OutlineFill", () { | 3422 unittest.group("obj-schema-OutlineFill", () { |
| 3468 unittest.test("to-json--from-json", () { | 3423 unittest.test("to-json--from-json", () { |
| 3469 var o = buildOutlineFill(); | 3424 var o = buildOutlineFill(); |
| 3470 var od = new api.OutlineFill.fromJson(o.toJson()); | 3425 var od = new api.OutlineFill.fromJson(o.toJson()); |
| 3471 checkOutlineFill(od); | 3426 checkOutlineFill(od); |
| 3472 }); | 3427 }); |
| 3473 }); | 3428 }); |
| 3474 | 3429 |
| 3475 | |
| 3476 unittest.group("obj-schema-Page", () { | 3430 unittest.group("obj-schema-Page", () { |
| 3477 unittest.test("to-json--from-json", () { | 3431 unittest.test("to-json--from-json", () { |
| 3478 var o = buildPage(); | 3432 var o = buildPage(); |
| 3479 var od = new api.Page.fromJson(o.toJson()); | 3433 var od = new api.Page.fromJson(o.toJson()); |
| 3480 checkPage(od); | 3434 checkPage(od); |
| 3481 }); | 3435 }); |
| 3482 }); | 3436 }); |
| 3483 | 3437 |
| 3484 | |
| 3485 unittest.group("obj-schema-PageBackgroundFill", () { | 3438 unittest.group("obj-schema-PageBackgroundFill", () { |
| 3486 unittest.test("to-json--from-json", () { | 3439 unittest.test("to-json--from-json", () { |
| 3487 var o = buildPageBackgroundFill(); | 3440 var o = buildPageBackgroundFill(); |
| 3488 var od = new api.PageBackgroundFill.fromJson(o.toJson()); | 3441 var od = new api.PageBackgroundFill.fromJson(o.toJson()); |
| 3489 checkPageBackgroundFill(od); | 3442 checkPageBackgroundFill(od); |
| 3490 }); | 3443 }); |
| 3491 }); | 3444 }); |
| 3492 | 3445 |
| 3493 | |
| 3494 unittest.group("obj-schema-PageElement", () { | 3446 unittest.group("obj-schema-PageElement", () { |
| 3495 unittest.test("to-json--from-json", () { | 3447 unittest.test("to-json--from-json", () { |
| 3496 var o = buildPageElement(); | 3448 var o = buildPageElement(); |
| 3497 var od = new api.PageElement.fromJson(o.toJson()); | 3449 var od = new api.PageElement.fromJson(o.toJson()); |
| 3498 checkPageElement(od); | 3450 checkPageElement(od); |
| 3499 }); | 3451 }); |
| 3500 }); | 3452 }); |
| 3501 | 3453 |
| 3502 | |
| 3503 unittest.group("obj-schema-PageElementProperties", () { | 3454 unittest.group("obj-schema-PageElementProperties", () { |
| 3504 unittest.test("to-json--from-json", () { | 3455 unittest.test("to-json--from-json", () { |
| 3505 var o = buildPageElementProperties(); | 3456 var o = buildPageElementProperties(); |
| 3506 var od = new api.PageElementProperties.fromJson(o.toJson()); | 3457 var od = new api.PageElementProperties.fromJson(o.toJson()); |
| 3507 checkPageElementProperties(od); | 3458 checkPageElementProperties(od); |
| 3508 }); | 3459 }); |
| 3509 }); | 3460 }); |
| 3510 | 3461 |
| 3511 | |
| 3512 unittest.group("obj-schema-PageProperties", () { | 3462 unittest.group("obj-schema-PageProperties", () { |
| 3513 unittest.test("to-json--from-json", () { | 3463 unittest.test("to-json--from-json", () { |
| 3514 var o = buildPageProperties(); | 3464 var o = buildPageProperties(); |
| 3515 var od = new api.PageProperties.fromJson(o.toJson()); | 3465 var od = new api.PageProperties.fromJson(o.toJson()); |
| 3516 checkPageProperties(od); | 3466 checkPageProperties(od); |
| 3517 }); | 3467 }); |
| 3518 }); | 3468 }); |
| 3519 | 3469 |
| 3520 | |
| 3521 unittest.group("obj-schema-ParagraphMarker", () { | 3470 unittest.group("obj-schema-ParagraphMarker", () { |
| 3522 unittest.test("to-json--from-json", () { | 3471 unittest.test("to-json--from-json", () { |
| 3523 var o = buildParagraphMarker(); | 3472 var o = buildParagraphMarker(); |
| 3524 var od = new api.ParagraphMarker.fromJson(o.toJson()); | 3473 var od = new api.ParagraphMarker.fromJson(o.toJson()); |
| 3525 checkParagraphMarker(od); | 3474 checkParagraphMarker(od); |
| 3526 }); | 3475 }); |
| 3527 }); | 3476 }); |
| 3528 | 3477 |
| 3529 | |
| 3530 unittest.group("obj-schema-ParagraphStyle", () { | 3478 unittest.group("obj-schema-ParagraphStyle", () { |
| 3531 unittest.test("to-json--from-json", () { | 3479 unittest.test("to-json--from-json", () { |
| 3532 var o = buildParagraphStyle(); | 3480 var o = buildParagraphStyle(); |
| 3533 var od = new api.ParagraphStyle.fromJson(o.toJson()); | 3481 var od = new api.ParagraphStyle.fromJson(o.toJson()); |
| 3534 checkParagraphStyle(od); | 3482 checkParagraphStyle(od); |
| 3535 }); | 3483 }); |
| 3536 }); | 3484 }); |
| 3537 | 3485 |
| 3538 | |
| 3539 unittest.group("obj-schema-Placeholder", () { | 3486 unittest.group("obj-schema-Placeholder", () { |
| 3540 unittest.test("to-json--from-json", () { | 3487 unittest.test("to-json--from-json", () { |
| 3541 var o = buildPlaceholder(); | 3488 var o = buildPlaceholder(); |
| 3542 var od = new api.Placeholder.fromJson(o.toJson()); | 3489 var od = new api.Placeholder.fromJson(o.toJson()); |
| 3543 checkPlaceholder(od); | 3490 checkPlaceholder(od); |
| 3544 }); | 3491 }); |
| 3545 }); | 3492 }); |
| 3546 | 3493 |
| 3547 | |
| 3548 unittest.group("obj-schema-Presentation", () { | 3494 unittest.group("obj-schema-Presentation", () { |
| 3549 unittest.test("to-json--from-json", () { | 3495 unittest.test("to-json--from-json", () { |
| 3550 var o = buildPresentation(); | 3496 var o = buildPresentation(); |
| 3551 var od = new api.Presentation.fromJson(o.toJson()); | 3497 var od = new api.Presentation.fromJson(o.toJson()); |
| 3552 checkPresentation(od); | 3498 checkPresentation(od); |
| 3553 }); | 3499 }); |
| 3554 }); | 3500 }); |
| 3555 | 3501 |
| 3556 | |
| 3557 unittest.group("obj-schema-Range", () { | 3502 unittest.group("obj-schema-Range", () { |
| 3558 unittest.test("to-json--from-json", () { | 3503 unittest.test("to-json--from-json", () { |
| 3559 var o = buildRange(); | 3504 var o = buildRange(); |
| 3560 var od = new api.Range.fromJson(o.toJson()); | 3505 var od = new api.Range.fromJson(o.toJson()); |
| 3561 checkRange(od); | 3506 checkRange(od); |
| 3562 }); | 3507 }); |
| 3563 }); | 3508 }); |
| 3564 | 3509 |
| 3565 | |
| 3566 unittest.group("obj-schema-Recolor", () { | 3510 unittest.group("obj-schema-Recolor", () { |
| 3567 unittest.test("to-json--from-json", () { | 3511 unittest.test("to-json--from-json", () { |
| 3568 var o = buildRecolor(); | 3512 var o = buildRecolor(); |
| 3569 var od = new api.Recolor.fromJson(o.toJson()); | 3513 var od = new api.Recolor.fromJson(o.toJson()); |
| 3570 checkRecolor(od); | 3514 checkRecolor(od); |
| 3571 }); | 3515 }); |
| 3572 }); | 3516 }); |
| 3573 | 3517 |
| 3574 | |
| 3575 unittest.group("obj-schema-RefreshSheetsChartRequest", () { | 3518 unittest.group("obj-schema-RefreshSheetsChartRequest", () { |
| 3576 unittest.test("to-json--from-json", () { | 3519 unittest.test("to-json--from-json", () { |
| 3577 var o = buildRefreshSheetsChartRequest(); | 3520 var o = buildRefreshSheetsChartRequest(); |
| 3578 var od = new api.RefreshSheetsChartRequest.fromJson(o.toJson()); | 3521 var od = new api.RefreshSheetsChartRequest.fromJson(o.toJson()); |
| 3579 checkRefreshSheetsChartRequest(od); | 3522 checkRefreshSheetsChartRequest(od); |
| 3580 }); | 3523 }); |
| 3581 }); | 3524 }); |
| 3582 | 3525 |
| 3583 | |
| 3584 unittest.group("obj-schema-ReplaceAllShapesWithImageRequest", () { | 3526 unittest.group("obj-schema-ReplaceAllShapesWithImageRequest", () { |
| 3585 unittest.test("to-json--from-json", () { | 3527 unittest.test("to-json--from-json", () { |
| 3586 var o = buildReplaceAllShapesWithImageRequest(); | 3528 var o = buildReplaceAllShapesWithImageRequest(); |
| 3587 var od = new api.ReplaceAllShapesWithImageRequest.fromJson(o.toJson()); | 3529 var od = new api.ReplaceAllShapesWithImageRequest.fromJson(o.toJson()); |
| 3588 checkReplaceAllShapesWithImageRequest(od); | 3530 checkReplaceAllShapesWithImageRequest(od); |
| 3589 }); | 3531 }); |
| 3590 }); | 3532 }); |
| 3591 | 3533 |
| 3592 | |
| 3593 unittest.group("obj-schema-ReplaceAllShapesWithImageResponse", () { | 3534 unittest.group("obj-schema-ReplaceAllShapesWithImageResponse", () { |
| 3594 unittest.test("to-json--from-json", () { | 3535 unittest.test("to-json--from-json", () { |
| 3595 var o = buildReplaceAllShapesWithImageResponse(); | 3536 var o = buildReplaceAllShapesWithImageResponse(); |
| 3596 var od = new api.ReplaceAllShapesWithImageResponse.fromJson(o.toJson()); | 3537 var od = new api.ReplaceAllShapesWithImageResponse.fromJson(o.toJson()); |
| 3597 checkReplaceAllShapesWithImageResponse(od); | 3538 checkReplaceAllShapesWithImageResponse(od); |
| 3598 }); | 3539 }); |
| 3599 }); | 3540 }); |
| 3600 | 3541 |
| 3601 | |
| 3602 unittest.group("obj-schema-ReplaceAllShapesWithSheetsChartRequest", () { | 3542 unittest.group("obj-schema-ReplaceAllShapesWithSheetsChartRequest", () { |
| 3603 unittest.test("to-json--from-json", () { | 3543 unittest.test("to-json--from-json", () { |
| 3604 var o = buildReplaceAllShapesWithSheetsChartRequest(); | 3544 var o = buildReplaceAllShapesWithSheetsChartRequest(); |
| 3605 var od = new api.ReplaceAllShapesWithSheetsChartRequest.fromJson(o.toJson(
)); | 3545 var od = |
| 3546 new api.ReplaceAllShapesWithSheetsChartRequest.fromJson(o.toJson()); |
| 3606 checkReplaceAllShapesWithSheetsChartRequest(od); | 3547 checkReplaceAllShapesWithSheetsChartRequest(od); |
| 3607 }); | 3548 }); |
| 3608 }); | 3549 }); |
| 3609 | 3550 |
| 3610 | |
| 3611 unittest.group("obj-schema-ReplaceAllShapesWithSheetsChartResponse", () { | 3551 unittest.group("obj-schema-ReplaceAllShapesWithSheetsChartResponse", () { |
| 3612 unittest.test("to-json--from-json", () { | 3552 unittest.test("to-json--from-json", () { |
| 3613 var o = buildReplaceAllShapesWithSheetsChartResponse(); | 3553 var o = buildReplaceAllShapesWithSheetsChartResponse(); |
| 3614 var od = new api.ReplaceAllShapesWithSheetsChartResponse.fromJson(o.toJson
()); | 3554 var od = |
| 3555 new api.ReplaceAllShapesWithSheetsChartResponse.fromJson(o.toJson()); |
| 3615 checkReplaceAllShapesWithSheetsChartResponse(od); | 3556 checkReplaceAllShapesWithSheetsChartResponse(od); |
| 3616 }); | 3557 }); |
| 3617 }); | 3558 }); |
| 3618 | 3559 |
| 3619 | |
| 3620 unittest.group("obj-schema-ReplaceAllTextRequest", () { | 3560 unittest.group("obj-schema-ReplaceAllTextRequest", () { |
| 3621 unittest.test("to-json--from-json", () { | 3561 unittest.test("to-json--from-json", () { |
| 3622 var o = buildReplaceAllTextRequest(); | 3562 var o = buildReplaceAllTextRequest(); |
| 3623 var od = new api.ReplaceAllTextRequest.fromJson(o.toJson()); | 3563 var od = new api.ReplaceAllTextRequest.fromJson(o.toJson()); |
| 3624 checkReplaceAllTextRequest(od); | 3564 checkReplaceAllTextRequest(od); |
| 3625 }); | 3565 }); |
| 3626 }); | 3566 }); |
| 3627 | 3567 |
| 3628 | |
| 3629 unittest.group("obj-schema-ReplaceAllTextResponse", () { | 3568 unittest.group("obj-schema-ReplaceAllTextResponse", () { |
| 3630 unittest.test("to-json--from-json", () { | 3569 unittest.test("to-json--from-json", () { |
| 3631 var o = buildReplaceAllTextResponse(); | 3570 var o = buildReplaceAllTextResponse(); |
| 3632 var od = new api.ReplaceAllTextResponse.fromJson(o.toJson()); | 3571 var od = new api.ReplaceAllTextResponse.fromJson(o.toJson()); |
| 3633 checkReplaceAllTextResponse(od); | 3572 checkReplaceAllTextResponse(od); |
| 3634 }); | 3573 }); |
| 3635 }); | 3574 }); |
| 3636 | 3575 |
| 3637 | |
| 3638 unittest.group("obj-schema-Request", () { | 3576 unittest.group("obj-schema-Request", () { |
| 3639 unittest.test("to-json--from-json", () { | 3577 unittest.test("to-json--from-json", () { |
| 3640 var o = buildRequest(); | 3578 var o = buildRequest(); |
| 3641 var od = new api.Request.fromJson(o.toJson()); | 3579 var od = new api.Request.fromJson(o.toJson()); |
| 3642 checkRequest(od); | 3580 checkRequest(od); |
| 3643 }); | 3581 }); |
| 3644 }); | 3582 }); |
| 3645 | 3583 |
| 3646 | |
| 3647 unittest.group("obj-schema-Response", () { | 3584 unittest.group("obj-schema-Response", () { |
| 3648 unittest.test("to-json--from-json", () { | 3585 unittest.test("to-json--from-json", () { |
| 3649 var o = buildResponse(); | 3586 var o = buildResponse(); |
| 3650 var od = new api.Response.fromJson(o.toJson()); | 3587 var od = new api.Response.fromJson(o.toJson()); |
| 3651 checkResponse(od); | 3588 checkResponse(od); |
| 3652 }); | 3589 }); |
| 3653 }); | 3590 }); |
| 3654 | 3591 |
| 3655 | |
| 3656 unittest.group("obj-schema-RgbColor", () { | 3592 unittest.group("obj-schema-RgbColor", () { |
| 3657 unittest.test("to-json--from-json", () { | 3593 unittest.test("to-json--from-json", () { |
| 3658 var o = buildRgbColor(); | 3594 var o = buildRgbColor(); |
| 3659 var od = new api.RgbColor.fromJson(o.toJson()); | 3595 var od = new api.RgbColor.fromJson(o.toJson()); |
| 3660 checkRgbColor(od); | 3596 checkRgbColor(od); |
| 3661 }); | 3597 }); |
| 3662 }); | 3598 }); |
| 3663 | 3599 |
| 3664 | |
| 3665 unittest.group("obj-schema-Shadow", () { | 3600 unittest.group("obj-schema-Shadow", () { |
| 3666 unittest.test("to-json--from-json", () { | 3601 unittest.test("to-json--from-json", () { |
| 3667 var o = buildShadow(); | 3602 var o = buildShadow(); |
| 3668 var od = new api.Shadow.fromJson(o.toJson()); | 3603 var od = new api.Shadow.fromJson(o.toJson()); |
| 3669 checkShadow(od); | 3604 checkShadow(od); |
| 3670 }); | 3605 }); |
| 3671 }); | 3606 }); |
| 3672 | 3607 |
| 3673 | |
| 3674 unittest.group("obj-schema-Shape", () { | 3608 unittest.group("obj-schema-Shape", () { |
| 3675 unittest.test("to-json--from-json", () { | 3609 unittest.test("to-json--from-json", () { |
| 3676 var o = buildShape(); | 3610 var o = buildShape(); |
| 3677 var od = new api.Shape.fromJson(o.toJson()); | 3611 var od = new api.Shape.fromJson(o.toJson()); |
| 3678 checkShape(od); | 3612 checkShape(od); |
| 3679 }); | 3613 }); |
| 3680 }); | 3614 }); |
| 3681 | 3615 |
| 3682 | |
| 3683 unittest.group("obj-schema-ShapeBackgroundFill", () { | 3616 unittest.group("obj-schema-ShapeBackgroundFill", () { |
| 3684 unittest.test("to-json--from-json", () { | 3617 unittest.test("to-json--from-json", () { |
| 3685 var o = buildShapeBackgroundFill(); | 3618 var o = buildShapeBackgroundFill(); |
| 3686 var od = new api.ShapeBackgroundFill.fromJson(o.toJson()); | 3619 var od = new api.ShapeBackgroundFill.fromJson(o.toJson()); |
| 3687 checkShapeBackgroundFill(od); | 3620 checkShapeBackgroundFill(od); |
| 3688 }); | 3621 }); |
| 3689 }); | 3622 }); |
| 3690 | 3623 |
| 3691 | |
| 3692 unittest.group("obj-schema-ShapeProperties", () { | 3624 unittest.group("obj-schema-ShapeProperties", () { |
| 3693 unittest.test("to-json--from-json", () { | 3625 unittest.test("to-json--from-json", () { |
| 3694 var o = buildShapeProperties(); | 3626 var o = buildShapeProperties(); |
| 3695 var od = new api.ShapeProperties.fromJson(o.toJson()); | 3627 var od = new api.ShapeProperties.fromJson(o.toJson()); |
| 3696 checkShapeProperties(od); | 3628 checkShapeProperties(od); |
| 3697 }); | 3629 }); |
| 3698 }); | 3630 }); |
| 3699 | 3631 |
| 3700 | |
| 3701 unittest.group("obj-schema-SheetsChart", () { | 3632 unittest.group("obj-schema-SheetsChart", () { |
| 3702 unittest.test("to-json--from-json", () { | 3633 unittest.test("to-json--from-json", () { |
| 3703 var o = buildSheetsChart(); | 3634 var o = buildSheetsChart(); |
| 3704 var od = new api.SheetsChart.fromJson(o.toJson()); | 3635 var od = new api.SheetsChart.fromJson(o.toJson()); |
| 3705 checkSheetsChart(od); | 3636 checkSheetsChart(od); |
| 3706 }); | 3637 }); |
| 3707 }); | 3638 }); |
| 3708 | 3639 |
| 3709 | |
| 3710 unittest.group("obj-schema-SheetsChartProperties", () { | 3640 unittest.group("obj-schema-SheetsChartProperties", () { |
| 3711 unittest.test("to-json--from-json", () { | 3641 unittest.test("to-json--from-json", () { |
| 3712 var o = buildSheetsChartProperties(); | 3642 var o = buildSheetsChartProperties(); |
| 3713 var od = new api.SheetsChartProperties.fromJson(o.toJson()); | 3643 var od = new api.SheetsChartProperties.fromJson(o.toJson()); |
| 3714 checkSheetsChartProperties(od); | 3644 checkSheetsChartProperties(od); |
| 3715 }); | 3645 }); |
| 3716 }); | 3646 }); |
| 3717 | 3647 |
| 3718 | |
| 3719 unittest.group("obj-schema-Size", () { | 3648 unittest.group("obj-schema-Size", () { |
| 3720 unittest.test("to-json--from-json", () { | 3649 unittest.test("to-json--from-json", () { |
| 3721 var o = buildSize(); | 3650 var o = buildSize(); |
| 3722 var od = new api.Size.fromJson(o.toJson()); | 3651 var od = new api.Size.fromJson(o.toJson()); |
| 3723 checkSize(od); | 3652 checkSize(od); |
| 3724 }); | 3653 }); |
| 3725 }); | 3654 }); |
| 3726 | 3655 |
| 3727 | |
| 3728 unittest.group("obj-schema-SlideProperties", () { | 3656 unittest.group("obj-schema-SlideProperties", () { |
| 3729 unittest.test("to-json--from-json", () { | 3657 unittest.test("to-json--from-json", () { |
| 3730 var o = buildSlideProperties(); | 3658 var o = buildSlideProperties(); |
| 3731 var od = new api.SlideProperties.fromJson(o.toJson()); | 3659 var od = new api.SlideProperties.fromJson(o.toJson()); |
| 3732 checkSlideProperties(od); | 3660 checkSlideProperties(od); |
| 3733 }); | 3661 }); |
| 3734 }); | 3662 }); |
| 3735 | 3663 |
| 3736 | |
| 3737 unittest.group("obj-schema-SolidFill", () { | 3664 unittest.group("obj-schema-SolidFill", () { |
| 3738 unittest.test("to-json--from-json", () { | 3665 unittest.test("to-json--from-json", () { |
| 3739 var o = buildSolidFill(); | 3666 var o = buildSolidFill(); |
| 3740 var od = new api.SolidFill.fromJson(o.toJson()); | 3667 var od = new api.SolidFill.fromJson(o.toJson()); |
| 3741 checkSolidFill(od); | 3668 checkSolidFill(od); |
| 3742 }); | 3669 }); |
| 3743 }); | 3670 }); |
| 3744 | 3671 |
| 3745 | |
| 3746 unittest.group("obj-schema-StretchedPictureFill", () { | 3672 unittest.group("obj-schema-StretchedPictureFill", () { |
| 3747 unittest.test("to-json--from-json", () { | 3673 unittest.test("to-json--from-json", () { |
| 3748 var o = buildStretchedPictureFill(); | 3674 var o = buildStretchedPictureFill(); |
| 3749 var od = new api.StretchedPictureFill.fromJson(o.toJson()); | 3675 var od = new api.StretchedPictureFill.fromJson(o.toJson()); |
| 3750 checkStretchedPictureFill(od); | 3676 checkStretchedPictureFill(od); |
| 3751 }); | 3677 }); |
| 3752 }); | 3678 }); |
| 3753 | 3679 |
| 3754 | |
| 3755 unittest.group("obj-schema-SubstringMatchCriteria", () { | 3680 unittest.group("obj-schema-SubstringMatchCriteria", () { |
| 3756 unittest.test("to-json--from-json", () { | 3681 unittest.test("to-json--from-json", () { |
| 3757 var o = buildSubstringMatchCriteria(); | 3682 var o = buildSubstringMatchCriteria(); |
| 3758 var od = new api.SubstringMatchCriteria.fromJson(o.toJson()); | 3683 var od = new api.SubstringMatchCriteria.fromJson(o.toJson()); |
| 3759 checkSubstringMatchCriteria(od); | 3684 checkSubstringMatchCriteria(od); |
| 3760 }); | 3685 }); |
| 3761 }); | 3686 }); |
| 3762 | 3687 |
| 3763 | |
| 3764 unittest.group("obj-schema-Table", () { | 3688 unittest.group("obj-schema-Table", () { |
| 3765 unittest.test("to-json--from-json", () { | 3689 unittest.test("to-json--from-json", () { |
| 3766 var o = buildTable(); | 3690 var o = buildTable(); |
| 3767 var od = new api.Table.fromJson(o.toJson()); | 3691 var od = new api.Table.fromJson(o.toJson()); |
| 3768 checkTable(od); | 3692 checkTable(od); |
| 3769 }); | 3693 }); |
| 3770 }); | 3694 }); |
| 3771 | 3695 |
| 3772 | |
| 3773 unittest.group("obj-schema-TableCell", () { | 3696 unittest.group("obj-schema-TableCell", () { |
| 3774 unittest.test("to-json--from-json", () { | 3697 unittest.test("to-json--from-json", () { |
| 3775 var o = buildTableCell(); | 3698 var o = buildTableCell(); |
| 3776 var od = new api.TableCell.fromJson(o.toJson()); | 3699 var od = new api.TableCell.fromJson(o.toJson()); |
| 3777 checkTableCell(od); | 3700 checkTableCell(od); |
| 3778 }); | 3701 }); |
| 3779 }); | 3702 }); |
| 3780 | 3703 |
| 3781 | |
| 3782 unittest.group("obj-schema-TableCellBackgroundFill", () { | 3704 unittest.group("obj-schema-TableCellBackgroundFill", () { |
| 3783 unittest.test("to-json--from-json", () { | 3705 unittest.test("to-json--from-json", () { |
| 3784 var o = buildTableCellBackgroundFill(); | 3706 var o = buildTableCellBackgroundFill(); |
| 3785 var od = new api.TableCellBackgroundFill.fromJson(o.toJson()); | 3707 var od = new api.TableCellBackgroundFill.fromJson(o.toJson()); |
| 3786 checkTableCellBackgroundFill(od); | 3708 checkTableCellBackgroundFill(od); |
| 3787 }); | 3709 }); |
| 3788 }); | 3710 }); |
| 3789 | 3711 |
| 3790 | |
| 3791 unittest.group("obj-schema-TableCellLocation", () { | 3712 unittest.group("obj-schema-TableCellLocation", () { |
| 3792 unittest.test("to-json--from-json", () { | 3713 unittest.test("to-json--from-json", () { |
| 3793 var o = buildTableCellLocation(); | 3714 var o = buildTableCellLocation(); |
| 3794 var od = new api.TableCellLocation.fromJson(o.toJson()); | 3715 var od = new api.TableCellLocation.fromJson(o.toJson()); |
| 3795 checkTableCellLocation(od); | 3716 checkTableCellLocation(od); |
| 3796 }); | 3717 }); |
| 3797 }); | 3718 }); |
| 3798 | 3719 |
| 3799 | |
| 3800 unittest.group("obj-schema-TableCellProperties", () { | 3720 unittest.group("obj-schema-TableCellProperties", () { |
| 3801 unittest.test("to-json--from-json", () { | 3721 unittest.test("to-json--from-json", () { |
| 3802 var o = buildTableCellProperties(); | 3722 var o = buildTableCellProperties(); |
| 3803 var od = new api.TableCellProperties.fromJson(o.toJson()); | 3723 var od = new api.TableCellProperties.fromJson(o.toJson()); |
| 3804 checkTableCellProperties(od); | 3724 checkTableCellProperties(od); |
| 3805 }); | 3725 }); |
| 3806 }); | 3726 }); |
| 3807 | 3727 |
| 3808 | |
| 3809 unittest.group("obj-schema-TableColumnProperties", () { | 3728 unittest.group("obj-schema-TableColumnProperties", () { |
| 3810 unittest.test("to-json--from-json", () { | 3729 unittest.test("to-json--from-json", () { |
| 3811 var o = buildTableColumnProperties(); | 3730 var o = buildTableColumnProperties(); |
| 3812 var od = new api.TableColumnProperties.fromJson(o.toJson()); | 3731 var od = new api.TableColumnProperties.fromJson(o.toJson()); |
| 3813 checkTableColumnProperties(od); | 3732 checkTableColumnProperties(od); |
| 3814 }); | 3733 }); |
| 3815 }); | 3734 }); |
| 3816 | 3735 |
| 3817 | |
| 3818 unittest.group("obj-schema-TableRange", () { | 3736 unittest.group("obj-schema-TableRange", () { |
| 3819 unittest.test("to-json--from-json", () { | 3737 unittest.test("to-json--from-json", () { |
| 3820 var o = buildTableRange(); | 3738 var o = buildTableRange(); |
| 3821 var od = new api.TableRange.fromJson(o.toJson()); | 3739 var od = new api.TableRange.fromJson(o.toJson()); |
| 3822 checkTableRange(od); | 3740 checkTableRange(od); |
| 3823 }); | 3741 }); |
| 3824 }); | 3742 }); |
| 3825 | 3743 |
| 3826 | |
| 3827 unittest.group("obj-schema-TableRow", () { | 3744 unittest.group("obj-schema-TableRow", () { |
| 3828 unittest.test("to-json--from-json", () { | 3745 unittest.test("to-json--from-json", () { |
| 3829 var o = buildTableRow(); | 3746 var o = buildTableRow(); |
| 3830 var od = new api.TableRow.fromJson(o.toJson()); | 3747 var od = new api.TableRow.fromJson(o.toJson()); |
| 3831 checkTableRow(od); | 3748 checkTableRow(od); |
| 3832 }); | 3749 }); |
| 3833 }); | 3750 }); |
| 3834 | 3751 |
| 3835 | |
| 3836 unittest.group("obj-schema-TextContent", () { | 3752 unittest.group("obj-schema-TextContent", () { |
| 3837 unittest.test("to-json--from-json", () { | 3753 unittest.test("to-json--from-json", () { |
| 3838 var o = buildTextContent(); | 3754 var o = buildTextContent(); |
| 3839 var od = new api.TextContent.fromJson(o.toJson()); | 3755 var od = new api.TextContent.fromJson(o.toJson()); |
| 3840 checkTextContent(od); | 3756 checkTextContent(od); |
| 3841 }); | 3757 }); |
| 3842 }); | 3758 }); |
| 3843 | 3759 |
| 3844 | |
| 3845 unittest.group("obj-schema-TextElement", () { | 3760 unittest.group("obj-schema-TextElement", () { |
| 3846 unittest.test("to-json--from-json", () { | 3761 unittest.test("to-json--from-json", () { |
| 3847 var o = buildTextElement(); | 3762 var o = buildTextElement(); |
| 3848 var od = new api.TextElement.fromJson(o.toJson()); | 3763 var od = new api.TextElement.fromJson(o.toJson()); |
| 3849 checkTextElement(od); | 3764 checkTextElement(od); |
| 3850 }); | 3765 }); |
| 3851 }); | 3766 }); |
| 3852 | 3767 |
| 3853 | |
| 3854 unittest.group("obj-schema-TextRun", () { | 3768 unittest.group("obj-schema-TextRun", () { |
| 3855 unittest.test("to-json--from-json", () { | 3769 unittest.test("to-json--from-json", () { |
| 3856 var o = buildTextRun(); | 3770 var o = buildTextRun(); |
| 3857 var od = new api.TextRun.fromJson(o.toJson()); | 3771 var od = new api.TextRun.fromJson(o.toJson()); |
| 3858 checkTextRun(od); | 3772 checkTextRun(od); |
| 3859 }); | 3773 }); |
| 3860 }); | 3774 }); |
| 3861 | 3775 |
| 3862 | |
| 3863 unittest.group("obj-schema-TextStyle", () { | 3776 unittest.group("obj-schema-TextStyle", () { |
| 3864 unittest.test("to-json--from-json", () { | 3777 unittest.test("to-json--from-json", () { |
| 3865 var o = buildTextStyle(); | 3778 var o = buildTextStyle(); |
| 3866 var od = new api.TextStyle.fromJson(o.toJson()); | 3779 var od = new api.TextStyle.fromJson(o.toJson()); |
| 3867 checkTextStyle(od); | 3780 checkTextStyle(od); |
| 3868 }); | 3781 }); |
| 3869 }); | 3782 }); |
| 3870 | 3783 |
| 3871 | |
| 3872 unittest.group("obj-schema-ThemeColorPair", () { | 3784 unittest.group("obj-schema-ThemeColorPair", () { |
| 3873 unittest.test("to-json--from-json", () { | 3785 unittest.test("to-json--from-json", () { |
| 3874 var o = buildThemeColorPair(); | 3786 var o = buildThemeColorPair(); |
| 3875 var od = new api.ThemeColorPair.fromJson(o.toJson()); | 3787 var od = new api.ThemeColorPair.fromJson(o.toJson()); |
| 3876 checkThemeColorPair(od); | 3788 checkThemeColorPair(od); |
| 3877 }); | 3789 }); |
| 3878 }); | 3790 }); |
| 3879 | 3791 |
| 3880 | |
| 3881 unittest.group("obj-schema-Thumbnail", () { | 3792 unittest.group("obj-schema-Thumbnail", () { |
| 3882 unittest.test("to-json--from-json", () { | 3793 unittest.test("to-json--from-json", () { |
| 3883 var o = buildThumbnail(); | 3794 var o = buildThumbnail(); |
| 3884 var od = new api.Thumbnail.fromJson(o.toJson()); | 3795 var od = new api.Thumbnail.fromJson(o.toJson()); |
| 3885 checkThumbnail(od); | 3796 checkThumbnail(od); |
| 3886 }); | 3797 }); |
| 3887 }); | 3798 }); |
| 3888 | 3799 |
| 3889 | |
| 3890 unittest.group("obj-schema-UpdateImagePropertiesRequest", () { | 3800 unittest.group("obj-schema-UpdateImagePropertiesRequest", () { |
| 3891 unittest.test("to-json--from-json", () { | 3801 unittest.test("to-json--from-json", () { |
| 3892 var o = buildUpdateImagePropertiesRequest(); | 3802 var o = buildUpdateImagePropertiesRequest(); |
| 3893 var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); | 3803 var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); |
| 3894 checkUpdateImagePropertiesRequest(od); | 3804 checkUpdateImagePropertiesRequest(od); |
| 3895 }); | 3805 }); |
| 3896 }); | 3806 }); |
| 3897 | 3807 |
| 3898 | |
| 3899 unittest.group("obj-schema-UpdateLinePropertiesRequest", () { | 3808 unittest.group("obj-schema-UpdateLinePropertiesRequest", () { |
| 3900 unittest.test("to-json--from-json", () { | 3809 unittest.test("to-json--from-json", () { |
| 3901 var o = buildUpdateLinePropertiesRequest(); | 3810 var o = buildUpdateLinePropertiesRequest(); |
| 3902 var od = new api.UpdateLinePropertiesRequest.fromJson(o.toJson()); | 3811 var od = new api.UpdateLinePropertiesRequest.fromJson(o.toJson()); |
| 3903 checkUpdateLinePropertiesRequest(od); | 3812 checkUpdateLinePropertiesRequest(od); |
| 3904 }); | 3813 }); |
| 3905 }); | 3814 }); |
| 3906 | 3815 |
| 3907 | |
| 3908 unittest.group("obj-schema-UpdatePageElementTransformRequest", () { | 3816 unittest.group("obj-schema-UpdatePageElementTransformRequest", () { |
| 3909 unittest.test("to-json--from-json", () { | 3817 unittest.test("to-json--from-json", () { |
| 3910 var o = buildUpdatePageElementTransformRequest(); | 3818 var o = buildUpdatePageElementTransformRequest(); |
| 3911 var od = new api.UpdatePageElementTransformRequest.fromJson(o.toJson()); | 3819 var od = new api.UpdatePageElementTransformRequest.fromJson(o.toJson()); |
| 3912 checkUpdatePageElementTransformRequest(od); | 3820 checkUpdatePageElementTransformRequest(od); |
| 3913 }); | 3821 }); |
| 3914 }); | 3822 }); |
| 3915 | 3823 |
| 3916 | |
| 3917 unittest.group("obj-schema-UpdatePagePropertiesRequest", () { | 3824 unittest.group("obj-schema-UpdatePagePropertiesRequest", () { |
| 3918 unittest.test("to-json--from-json", () { | 3825 unittest.test("to-json--from-json", () { |
| 3919 var o = buildUpdatePagePropertiesRequest(); | 3826 var o = buildUpdatePagePropertiesRequest(); |
| 3920 var od = new api.UpdatePagePropertiesRequest.fromJson(o.toJson()); | 3827 var od = new api.UpdatePagePropertiesRequest.fromJson(o.toJson()); |
| 3921 checkUpdatePagePropertiesRequest(od); | 3828 checkUpdatePagePropertiesRequest(od); |
| 3922 }); | 3829 }); |
| 3923 }); | 3830 }); |
| 3924 | 3831 |
| 3925 | |
| 3926 unittest.group("obj-schema-UpdateParagraphStyleRequest", () { | 3832 unittest.group("obj-schema-UpdateParagraphStyleRequest", () { |
| 3927 unittest.test("to-json--from-json", () { | 3833 unittest.test("to-json--from-json", () { |
| 3928 var o = buildUpdateParagraphStyleRequest(); | 3834 var o = buildUpdateParagraphStyleRequest(); |
| 3929 var od = new api.UpdateParagraphStyleRequest.fromJson(o.toJson()); | 3835 var od = new api.UpdateParagraphStyleRequest.fromJson(o.toJson()); |
| 3930 checkUpdateParagraphStyleRequest(od); | 3836 checkUpdateParagraphStyleRequest(od); |
| 3931 }); | 3837 }); |
| 3932 }); | 3838 }); |
| 3933 | 3839 |
| 3934 | |
| 3935 unittest.group("obj-schema-UpdateShapePropertiesRequest", () { | 3840 unittest.group("obj-schema-UpdateShapePropertiesRequest", () { |
| 3936 unittest.test("to-json--from-json", () { | 3841 unittest.test("to-json--from-json", () { |
| 3937 var o = buildUpdateShapePropertiesRequest(); | 3842 var o = buildUpdateShapePropertiesRequest(); |
| 3938 var od = new api.UpdateShapePropertiesRequest.fromJson(o.toJson()); | 3843 var od = new api.UpdateShapePropertiesRequest.fromJson(o.toJson()); |
| 3939 checkUpdateShapePropertiesRequest(od); | 3844 checkUpdateShapePropertiesRequest(od); |
| 3940 }); | 3845 }); |
| 3941 }); | 3846 }); |
| 3942 | 3847 |
| 3943 | |
| 3944 unittest.group("obj-schema-UpdateSlidesPositionRequest", () { | 3848 unittest.group("obj-schema-UpdateSlidesPositionRequest", () { |
| 3945 unittest.test("to-json--from-json", () { | 3849 unittest.test("to-json--from-json", () { |
| 3946 var o = buildUpdateSlidesPositionRequest(); | 3850 var o = buildUpdateSlidesPositionRequest(); |
| 3947 var od = new api.UpdateSlidesPositionRequest.fromJson(o.toJson()); | 3851 var od = new api.UpdateSlidesPositionRequest.fromJson(o.toJson()); |
| 3948 checkUpdateSlidesPositionRequest(od); | 3852 checkUpdateSlidesPositionRequest(od); |
| 3949 }); | 3853 }); |
| 3950 }); | 3854 }); |
| 3951 | 3855 |
| 3952 | |
| 3953 unittest.group("obj-schema-UpdateTableCellPropertiesRequest", () { | 3856 unittest.group("obj-schema-UpdateTableCellPropertiesRequest", () { |
| 3954 unittest.test("to-json--from-json", () { | 3857 unittest.test("to-json--from-json", () { |
| 3955 var o = buildUpdateTableCellPropertiesRequest(); | 3858 var o = buildUpdateTableCellPropertiesRequest(); |
| 3956 var od = new api.UpdateTableCellPropertiesRequest.fromJson(o.toJson()); | 3859 var od = new api.UpdateTableCellPropertiesRequest.fromJson(o.toJson()); |
| 3957 checkUpdateTableCellPropertiesRequest(od); | 3860 checkUpdateTableCellPropertiesRequest(od); |
| 3958 }); | 3861 }); |
| 3959 }); | 3862 }); |
| 3960 | 3863 |
| 3961 | |
| 3962 unittest.group("obj-schema-UpdateTextStyleRequest", () { | 3864 unittest.group("obj-schema-UpdateTextStyleRequest", () { |
| 3963 unittest.test("to-json--from-json", () { | 3865 unittest.test("to-json--from-json", () { |
| 3964 var o = buildUpdateTextStyleRequest(); | 3866 var o = buildUpdateTextStyleRequest(); |
| 3965 var od = new api.UpdateTextStyleRequest.fromJson(o.toJson()); | 3867 var od = new api.UpdateTextStyleRequest.fromJson(o.toJson()); |
| 3966 checkUpdateTextStyleRequest(od); | 3868 checkUpdateTextStyleRequest(od); |
| 3967 }); | 3869 }); |
| 3968 }); | 3870 }); |
| 3969 | 3871 |
| 3970 | |
| 3971 unittest.group("obj-schema-UpdateVideoPropertiesRequest", () { | 3872 unittest.group("obj-schema-UpdateVideoPropertiesRequest", () { |
| 3972 unittest.test("to-json--from-json", () { | 3873 unittest.test("to-json--from-json", () { |
| 3973 var o = buildUpdateVideoPropertiesRequest(); | 3874 var o = buildUpdateVideoPropertiesRequest(); |
| 3974 var od = new api.UpdateVideoPropertiesRequest.fromJson(o.toJson()); | 3875 var od = new api.UpdateVideoPropertiesRequest.fromJson(o.toJson()); |
| 3975 checkUpdateVideoPropertiesRequest(od); | 3876 checkUpdateVideoPropertiesRequest(od); |
| 3976 }); | 3877 }); |
| 3977 }); | 3878 }); |
| 3978 | 3879 |
| 3979 | |
| 3980 unittest.group("obj-schema-Video", () { | 3880 unittest.group("obj-schema-Video", () { |
| 3981 unittest.test("to-json--from-json", () { | 3881 unittest.test("to-json--from-json", () { |
| 3982 var o = buildVideo(); | 3882 var o = buildVideo(); |
| 3983 var od = new api.Video.fromJson(o.toJson()); | 3883 var od = new api.Video.fromJson(o.toJson()); |
| 3984 checkVideo(od); | 3884 checkVideo(od); |
| 3985 }); | 3885 }); |
| 3986 }); | 3886 }); |
| 3987 | 3887 |
| 3988 | |
| 3989 unittest.group("obj-schema-VideoProperties", () { | 3888 unittest.group("obj-schema-VideoProperties", () { |
| 3990 unittest.test("to-json--from-json", () { | 3889 unittest.test("to-json--from-json", () { |
| 3991 var o = buildVideoProperties(); | 3890 var o = buildVideoProperties(); |
| 3992 var od = new api.VideoProperties.fromJson(o.toJson()); | 3891 var od = new api.VideoProperties.fromJson(o.toJson()); |
| 3993 checkVideoProperties(od); | 3892 checkVideoProperties(od); |
| 3994 }); | 3893 }); |
| 3995 }); | 3894 }); |
| 3996 | 3895 |
| 3997 | |
| 3998 unittest.group("obj-schema-WeightedFontFamily", () { | 3896 unittest.group("obj-schema-WeightedFontFamily", () { |
| 3999 unittest.test("to-json--from-json", () { | 3897 unittest.test("to-json--from-json", () { |
| 4000 var o = buildWeightedFontFamily(); | 3898 var o = buildWeightedFontFamily(); |
| 4001 var od = new api.WeightedFontFamily.fromJson(o.toJson()); | 3899 var od = new api.WeightedFontFamily.fromJson(o.toJson()); |
| 4002 checkWeightedFontFamily(od); | 3900 checkWeightedFontFamily(od); |
| 4003 }); | 3901 }); |
| 4004 }); | 3902 }); |
| 4005 | 3903 |
| 4006 | |
| 4007 unittest.group("obj-schema-WordArt", () { | 3904 unittest.group("obj-schema-WordArt", () { |
| 4008 unittest.test("to-json--from-json", () { | 3905 unittest.test("to-json--from-json", () { |
| 4009 var o = buildWordArt(); | 3906 var o = buildWordArt(); |
| 4010 var od = new api.WordArt.fromJson(o.toJson()); | 3907 var od = new api.WordArt.fromJson(o.toJson()); |
| 4011 checkWordArt(od); | 3908 checkWordArt(od); |
| 4012 }); | 3909 }); |
| 4013 }); | 3910 }); |
| 4014 | 3911 |
| 4015 | |
| 4016 unittest.group("obj-schema-WriteControl", () { | 3912 unittest.group("obj-schema-WriteControl", () { |
| 4017 unittest.test("to-json--from-json", () { | 3913 unittest.test("to-json--from-json", () { |
| 4018 var o = buildWriteControl(); | 3914 var o = buildWriteControl(); |
| 4019 var od = new api.WriteControl.fromJson(o.toJson()); | 3915 var od = new api.WriteControl.fromJson(o.toJson()); |
| 4020 checkWriteControl(od); | 3916 checkWriteControl(od); |
| 4021 }); | 3917 }); |
| 4022 }); | 3918 }); |
| 4023 | 3919 |
| 4024 | |
| 4025 unittest.group("resource-PresentationsResourceApi", () { | 3920 unittest.group("resource-PresentationsResourceApi", () { |
| 4026 unittest.test("method--batchUpdate", () { | 3921 unittest.test("method--batchUpdate", () { |
| 4027 | |
| 4028 var mock = new HttpServerMock(); | 3922 var mock = new HttpServerMock(); |
| 4029 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; | 3923 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 4030 var arg_request = buildBatchUpdatePresentationRequest(); | 3924 var arg_request = buildBatchUpdatePresentationRequest(); |
| 4031 var arg_presentationId = "foo"; | 3925 var arg_presentationId = "foo"; |
| 4032 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3926 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4033 var obj = new api.BatchUpdatePresentationRequest.fromJson(json); | 3927 var obj = new api.BatchUpdatePresentationRequest.fromJson(json); |
| 4034 checkBatchUpdatePresentationRequest(obj); | 3928 checkBatchUpdatePresentationRequest(obj); |
| 4035 | 3929 |
| 4036 var path = (req.url).path; | 3930 var path = (req.url).path; |
| 4037 var pathOffset = 0; | 3931 var pathOffset = 0; |
| 4038 var index; | 3932 var index; |
| 4039 var subPart; | 3933 var subPart; |
| 4040 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3934 unittest.expect( |
| 3935 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 4041 pathOffset += 1; | 3936 pathOffset += 1; |
| 4042 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); | 3937 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 3938 unittest.equals("v1/presentations/")); |
| 4043 pathOffset += 17; | 3939 pathOffset += 17; |
| 4044 index = path.indexOf(":batchUpdate", pathOffset); | 3940 index = path.indexOf(":batchUpdate", pathOffset); |
| 4045 unittest.expect(index >= 0, unittest.isTrue); | 3941 unittest.expect(index >= 0, unittest.isTrue); |
| 4046 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3942 subPart = |
| 3943 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| 4047 pathOffset = index; | 3944 pathOffset = index; |
| 4048 unittest.expect(subPart, unittest.equals("$arg_presentationId")); | 3945 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 4049 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals(":batchUpdate")); | 3946 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 3947 unittest.equals(":batchUpdate")); |
| 4050 pathOffset += 12; | 3948 pathOffset += 12; |
| 4051 | 3949 |
| 4052 var query = (req.url).query; | 3950 var query = (req.url).query; |
| 4053 var queryOffset = 0; | 3951 var queryOffset = 0; |
| 4054 var queryMap = {}; | 3952 var queryMap = {}; |
| 4055 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3953 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4056 parseBool(n) { | 3954 parseBool(n) { |
| 4057 if (n == "true") return true; | 3955 if (n == "true") return true; |
| 4058 if (n == "false") return false; | 3956 if (n == "false") return false; |
| 4059 if (n == null) return null; | 3957 if (n == null) return null; |
| 4060 throw new core.ArgumentError("Invalid boolean: $n"); | 3958 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4061 } | 3959 } |
| 3960 |
| 4062 if (query.length > 0) { | 3961 if (query.length > 0) { |
| 4063 for (var part in query.split("&")) { | 3962 for (var part in query.split("&")) { |
| 4064 var keyvalue = part.split("="); | 3963 var keyvalue = part.split("="); |
| 4065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3964 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 3965 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 4066 } | 3966 } |
| 4067 } | 3967 } |
| 4068 | 3968 |
| 4069 | |
| 4070 var h = { | 3969 var h = { |
| 4071 "content-type" : "application/json; charset=utf-8", | 3970 "content-type": "application/json; charset=utf-8", |
| 4072 }; | 3971 }; |
| 4073 var resp = convert.JSON.encode(buildBatchUpdatePresentationResponse()); | 3972 var resp = convert.JSON.encode(buildBatchUpdatePresentationResponse()); |
| 4074 return new async.Future.value(stringResponse(200, h, resp)); | 3973 return new async.Future.value(stringResponse(200, h, resp)); |
| 4075 }), true); | 3974 }), true); |
| 4076 res.batchUpdate(arg_request, arg_presentationId).then(unittest.expectAsync
1(((api.BatchUpdatePresentationResponse response) { | 3975 res.batchUpdate(arg_request, arg_presentationId).then(unittest |
| 3976 .expectAsync1(((api.BatchUpdatePresentationResponse response) { |
| 4077 checkBatchUpdatePresentationResponse(response); | 3977 checkBatchUpdatePresentationResponse(response); |
| 4078 }))); | 3978 }))); |
| 4079 }); | 3979 }); |
| 4080 | 3980 |
| 4081 unittest.test("method--create", () { | 3981 unittest.test("method--create", () { |
| 4082 | |
| 4083 var mock = new HttpServerMock(); | 3982 var mock = new HttpServerMock(); |
| 4084 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; | 3983 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 4085 var arg_request = buildPresentation(); | 3984 var arg_request = buildPresentation(); |
| 4086 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3985 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4087 var obj = new api.Presentation.fromJson(json); | 3986 var obj = new api.Presentation.fromJson(json); |
| 4088 checkPresentation(obj); | 3987 checkPresentation(obj); |
| 4089 | 3988 |
| 4090 var path = (req.url).path; | 3989 var path = (req.url).path; |
| 4091 var pathOffset = 0; | 3990 var pathOffset = 0; |
| 4092 var index; | 3991 var index; |
| 4093 var subPart; | 3992 var subPart; |
| 4094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3993 unittest.expect( |
| 3994 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 4095 pathOffset += 1; | 3995 pathOffset += 1; |
| 4096 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v1/presentations")); | 3996 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 3997 unittest.equals("v1/presentations")); |
| 4097 pathOffset += 16; | 3998 pathOffset += 16; |
| 4098 | 3999 |
| 4099 var query = (req.url).query; | 4000 var query = (req.url).query; |
| 4100 var queryOffset = 0; | 4001 var queryOffset = 0; |
| 4101 var queryMap = {}; | 4002 var queryMap = {}; |
| 4102 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4003 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4103 parseBool(n) { | 4004 parseBool(n) { |
| 4104 if (n == "true") return true; | 4005 if (n == "true") return true; |
| 4105 if (n == "false") return false; | 4006 if (n == "false") return false; |
| 4106 if (n == null) return null; | 4007 if (n == null) return null; |
| 4107 throw new core.ArgumentError("Invalid boolean: $n"); | 4008 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4108 } | 4009 } |
| 4010 |
| 4109 if (query.length > 0) { | 4011 if (query.length > 0) { |
| 4110 for (var part in query.split("&")) { | 4012 for (var part in query.split("&")) { |
| 4111 var keyvalue = part.split("="); | 4013 var keyvalue = part.split("="); |
| 4112 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4014 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4015 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 4113 } | 4016 } |
| 4114 } | 4017 } |
| 4115 | 4018 |
| 4116 | |
| 4117 var h = { | 4019 var h = { |
| 4118 "content-type" : "application/json; charset=utf-8", | 4020 "content-type": "application/json; charset=utf-8", |
| 4119 }; | 4021 }; |
| 4120 var resp = convert.JSON.encode(buildPresentation()); | 4022 var resp = convert.JSON.encode(buildPresentation()); |
| 4121 return new async.Future.value(stringResponse(200, h, resp)); | 4023 return new async.Future.value(stringResponse(200, h, resp)); |
| 4122 }), true); | 4024 }), true); |
| 4123 res.create(arg_request).then(unittest.expectAsync1(((api.Presentation resp
onse) { | 4025 res |
| 4026 .create(arg_request) |
| 4027 .then(unittest.expectAsync1(((api.Presentation response) { |
| 4124 checkPresentation(response); | 4028 checkPresentation(response); |
| 4125 }))); | 4029 }))); |
| 4126 }); | 4030 }); |
| 4127 | 4031 |
| 4128 unittest.test("method--get", () { | 4032 unittest.test("method--get", () { |
| 4129 | |
| 4130 var mock = new HttpServerMock(); | 4033 var mock = new HttpServerMock(); |
| 4131 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; | 4034 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 4132 var arg_presentationId = "foo"; | 4035 var arg_presentationId = "foo"; |
| 4133 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4036 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4134 var path = (req.url).path; | 4037 var path = (req.url).path; |
| 4135 var pathOffset = 0; | 4038 var pathOffset = 0; |
| 4136 var index; | 4039 var index; |
| 4137 var subPart; | 4040 var subPart; |
| 4138 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4041 unittest.expect( |
| 4042 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 4139 pathOffset += 1; | 4043 pathOffset += 1; |
| 4140 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); | 4044 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 4045 unittest.equals("v1/presentations/")); |
| 4141 pathOffset += 17; | 4046 pathOffset += 17; |
| 4142 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 4047 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 4143 | 4048 |
| 4144 var query = (req.url).query; | 4049 var query = (req.url).query; |
| 4145 var queryOffset = 0; | 4050 var queryOffset = 0; |
| 4146 var queryMap = {}; | 4051 var queryMap = {}; |
| 4147 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4052 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4148 parseBool(n) { | 4053 parseBool(n) { |
| 4149 if (n == "true") return true; | 4054 if (n == "true") return true; |
| 4150 if (n == "false") return false; | 4055 if (n == "false") return false; |
| 4151 if (n == null) return null; | 4056 if (n == null) return null; |
| 4152 throw new core.ArgumentError("Invalid boolean: $n"); | 4057 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4153 } | 4058 } |
| 4059 |
| 4154 if (query.length > 0) { | 4060 if (query.length > 0) { |
| 4155 for (var part in query.split("&")) { | 4061 for (var part in query.split("&")) { |
| 4156 var keyvalue = part.split("="); | 4062 var keyvalue = part.split("="); |
| 4157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4063 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4064 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 4158 } | 4065 } |
| 4159 } | 4066 } |
| 4160 | 4067 |
| 4161 | |
| 4162 var h = { | 4068 var h = { |
| 4163 "content-type" : "application/json; charset=utf-8", | 4069 "content-type": "application/json; charset=utf-8", |
| 4164 }; | 4070 }; |
| 4165 var resp = convert.JSON.encode(buildPresentation()); | 4071 var resp = convert.JSON.encode(buildPresentation()); |
| 4166 return new async.Future.value(stringResponse(200, h, resp)); | 4072 return new async.Future.value(stringResponse(200, h, resp)); |
| 4167 }), true); | 4073 }), true); |
| 4168 res.get(arg_presentationId).then(unittest.expectAsync1(((api.Presentation
response) { | 4074 res |
| 4075 .get(arg_presentationId) |
| 4076 .then(unittest.expectAsync1(((api.Presentation response) { |
| 4169 checkPresentation(response); | 4077 checkPresentation(response); |
| 4170 }))); | 4078 }))); |
| 4171 }); | 4079 }); |
| 4172 | |
| 4173 }); | 4080 }); |
| 4174 | 4081 |
| 4175 | |
| 4176 unittest.group("resource-PresentationsPagesResourceApi", () { | 4082 unittest.group("resource-PresentationsPagesResourceApi", () { |
| 4177 unittest.test("method--get", () { | 4083 unittest.test("method--get", () { |
| 4178 | |
| 4179 var mock = new HttpServerMock(); | 4084 var mock = new HttpServerMock(); |
| 4180 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; | 4085 api.PresentationsPagesResourceApi res = |
| 4086 new api.SlidesApi(mock).presentations.pages; |
| 4181 var arg_presentationId = "foo"; | 4087 var arg_presentationId = "foo"; |
| 4182 var arg_pageObjectId = "foo"; | 4088 var arg_pageObjectId = "foo"; |
| 4183 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4089 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4184 var path = (req.url).path; | 4090 var path = (req.url).path; |
| 4185 var pathOffset = 0; | 4091 var pathOffset = 0; |
| 4186 var index; | 4092 var index; |
| 4187 var subPart; | 4093 var subPart; |
| 4188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4094 unittest.expect( |
| 4095 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 4189 pathOffset += 1; | 4096 pathOffset += 1; |
| 4190 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); | 4097 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 4098 unittest.equals("v1/presentations/")); |
| 4191 pathOffset += 17; | 4099 pathOffset += 17; |
| 4192 index = path.indexOf("/pages/", pathOffset); | 4100 index = path.indexOf("/pages/", pathOffset); |
| 4193 unittest.expect(index >= 0, unittest.isTrue); | 4101 unittest.expect(index >= 0, unittest.isTrue); |
| 4194 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4102 subPart = |
| 4103 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| 4195 pathOffset = index; | 4104 pathOffset = index; |
| 4196 unittest.expect(subPart, unittest.equals("$arg_presentationId")); | 4105 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 4197 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/pages/")); | 4106 unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| 4107 unittest.equals("/pages/")); |
| 4198 pathOffset += 7; | 4108 pathOffset += 7; |
| 4199 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4200 pathOffset = path.length; | 4110 pathOffset = path.length; |
| 4201 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); | 4111 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); |
| 4202 | 4112 |
| 4203 var query = (req.url).query; | 4113 var query = (req.url).query; |
| 4204 var queryOffset = 0; | 4114 var queryOffset = 0; |
| 4205 var queryMap = {}; | 4115 var queryMap = {}; |
| 4206 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4116 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4207 parseBool(n) { | 4117 parseBool(n) { |
| 4208 if (n == "true") return true; | 4118 if (n == "true") return true; |
| 4209 if (n == "false") return false; | 4119 if (n == "false") return false; |
| 4210 if (n == null) return null; | 4120 if (n == null) return null; |
| 4211 throw new core.ArgumentError("Invalid boolean: $n"); | 4121 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4212 } | 4122 } |
| 4123 |
| 4213 if (query.length > 0) { | 4124 if (query.length > 0) { |
| 4214 for (var part in query.split("&")) { | 4125 for (var part in query.split("&")) { |
| 4215 var keyvalue = part.split("="); | 4126 var keyvalue = part.split("="); |
| 4216 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4127 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4128 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 4217 } | 4129 } |
| 4218 } | 4130 } |
| 4219 | 4131 |
| 4220 | |
| 4221 var h = { | 4132 var h = { |
| 4222 "content-type" : "application/json; charset=utf-8", | 4133 "content-type": "application/json; charset=utf-8", |
| 4223 }; | 4134 }; |
| 4224 var resp = convert.JSON.encode(buildPage()); | 4135 var resp = convert.JSON.encode(buildPage()); |
| 4225 return new async.Future.value(stringResponse(200, h, resp)); | 4136 return new async.Future.value(stringResponse(200, h, resp)); |
| 4226 }), true); | 4137 }), true); |
| 4227 res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync1((
(api.Page response) { | 4138 res |
| 4139 .get(arg_presentationId, arg_pageObjectId) |
| 4140 .then(unittest.expectAsync1(((api.Page response) { |
| 4228 checkPage(response); | 4141 checkPage(response); |
| 4229 }))); | 4142 }))); |
| 4230 }); | 4143 }); |
| 4231 | 4144 |
| 4232 unittest.test("method--getThumbnail", () { | 4145 unittest.test("method--getThumbnail", () { |
| 4233 | |
| 4234 var mock = new HttpServerMock(); | 4146 var mock = new HttpServerMock(); |
| 4235 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; | 4147 api.PresentationsPagesResourceApi res = |
| 4148 new api.SlidesApi(mock).presentations.pages; |
| 4236 var arg_presentationId = "foo"; | 4149 var arg_presentationId = "foo"; |
| 4237 var arg_pageObjectId = "foo"; | 4150 var arg_pageObjectId = "foo"; |
| 4238 var arg_thumbnailProperties_thumbnailSize = "foo"; | 4151 var arg_thumbnailProperties_thumbnailSize = "foo"; |
| 4239 var arg_thumbnailProperties_mimeType = "foo"; | 4152 var arg_thumbnailProperties_mimeType = "foo"; |
| 4240 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4153 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4241 var path = (req.url).path; | 4154 var path = (req.url).path; |
| 4242 var pathOffset = 0; | 4155 var pathOffset = 0; |
| 4243 var index; | 4156 var index; |
| 4244 var subPart; | 4157 var subPart; |
| 4245 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4158 unittest.expect( |
| 4159 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 4246 pathOffset += 1; | 4160 pathOffset += 1; |
| 4247 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); | 4161 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 4162 unittest.equals("v1/presentations/")); |
| 4248 pathOffset += 17; | 4163 pathOffset += 17; |
| 4249 index = path.indexOf("/pages/", pathOffset); | 4164 index = path.indexOf("/pages/", pathOffset); |
| 4250 unittest.expect(index >= 0, unittest.isTrue); | 4165 unittest.expect(index >= 0, unittest.isTrue); |
| 4251 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4166 subPart = |
| 4167 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| 4252 pathOffset = index; | 4168 pathOffset = index; |
| 4253 unittest.expect(subPart, unittest.equals("$arg_presentationId")); | 4169 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 4254 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/pages/")); | 4170 unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| 4171 unittest.equals("/pages/")); |
| 4255 pathOffset += 7; | 4172 pathOffset += 7; |
| 4256 index = path.indexOf("/thumbnail", pathOffset); | 4173 index = path.indexOf("/thumbnail", pathOffset); |
| 4257 unittest.expect(index >= 0, unittest.isTrue); | 4174 unittest.expect(index >= 0, unittest.isTrue); |
| 4258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4175 subPart = |
| 4176 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| 4259 pathOffset = index; | 4177 pathOffset = index; |
| 4260 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); | 4178 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); |
| 4261 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/thumbnail")); | 4179 unittest.expect(path.substring(pathOffset, pathOffset + 10), |
| 4180 unittest.equals("/thumbnail")); |
| 4262 pathOffset += 10; | 4181 pathOffset += 10; |
| 4263 | 4182 |
| 4264 var query = (req.url).query; | 4183 var query = (req.url).query; |
| 4265 var queryOffset = 0; | 4184 var queryOffset = 0; |
| 4266 var queryMap = {}; | 4185 var queryMap = {}; |
| 4267 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4186 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4268 parseBool(n) { | 4187 parseBool(n) { |
| 4269 if (n == "true") return true; | 4188 if (n == "true") return true; |
| 4270 if (n == "false") return false; | 4189 if (n == "false") return false; |
| 4271 if (n == null) return null; | 4190 if (n == null) return null; |
| 4272 throw new core.ArgumentError("Invalid boolean: $n"); | 4191 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4273 } | 4192 } |
| 4193 |
| 4274 if (query.length > 0) { | 4194 if (query.length > 0) { |
| 4275 for (var part in query.split("&")) { | 4195 for (var part in query.split("&")) { |
| 4276 var keyvalue = part.split("="); | 4196 var keyvalue = part.split("="); |
| 4277 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4197 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4198 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 4278 } | 4199 } |
| 4279 } | 4200 } |
| 4280 unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, uni
ttest.equals(arg_thumbnailProperties_thumbnailSize)); | 4201 unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, |
| 4281 unittest.expect(queryMap["thumbnailProperties.mimeType"].first, unittest
.equals(arg_thumbnailProperties_mimeType)); | 4202 unittest.equals(arg_thumbnailProperties_thumbnailSize)); |
| 4282 | 4203 unittest.expect(queryMap["thumbnailProperties.mimeType"].first, |
| 4204 unittest.equals(arg_thumbnailProperties_mimeType)); |
| 4283 | 4205 |
| 4284 var h = { | 4206 var h = { |
| 4285 "content-type" : "application/json; charset=utf-8", | 4207 "content-type": "application/json; charset=utf-8", |
| 4286 }; | 4208 }; |
| 4287 var resp = convert.JSON.encode(buildThumbnail()); | 4209 var resp = convert.JSON.encode(buildThumbnail()); |
| 4288 return new async.Future.value(stringResponse(200, h, resp)); | 4210 return new async.Future.value(stringResponse(200, h, resp)); |
| 4289 }), true); | 4211 }), true); |
| 4290 res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties
_thumbnailSize: arg_thumbnailProperties_thumbnailSize, thumbnailProperties_mimeT
ype: arg_thumbnailProperties_mimeType).then(unittest.expectAsync1(((api.Thumbnai
l response) { | 4212 res |
| 4213 .getThumbnail(arg_presentationId, arg_pageObjectId, |
| 4214 thumbnailProperties_thumbnailSize: |
| 4215 arg_thumbnailProperties_thumbnailSize, |
| 4216 thumbnailProperties_mimeType: arg_thumbnailProperties_mimeType) |
| 4217 .then(unittest.expectAsync1(((api.Thumbnail response) { |
| 4291 checkThumbnail(response); | 4218 checkThumbnail(response); |
| 4292 }))); | 4219 }))); |
| 4293 }); | 4220 }); |
| 4294 | |
| 4295 }); | 4221 }); |
| 4296 | |
| 4297 | |
| 4298 } | 4222 } |
| 4299 | |
| OLD | NEW |