@fluid-experimental/property-properties 0.58.1001 → 0.58.2000-58133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/containerSerializer.d.ts.map +1 -1
  2. package/dist/containerSerializer.js +4 -10
  3. package/dist/containerSerializer.js.map +1 -1
  4. package/dist/enableValidations.d.ts.map +1 -1
  5. package/dist/enableValidations.js +1 -1
  6. package/dist/enableValidations.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/properties/abstractStaticCollectionProperty.d.ts.map +1 -1
  11. package/dist/properties/abstractStaticCollectionProperty.js +1 -28
  12. package/dist/properties/abstractStaticCollectionProperty.js.map +1 -1
  13. package/dist/properties/arrayProperty.d.ts.map +1 -1
  14. package/dist/properties/arrayProperty.js +26 -85
  15. package/dist/properties/arrayProperty.js.map +1 -1
  16. package/dist/properties/baseProperty.d.ts.map +1 -1
  17. package/dist/properties/baseProperty.js +9 -71
  18. package/dist/properties/baseProperty.js.map +1 -1
  19. package/dist/properties/boolProperty.d.ts.map +1 -1
  20. package/dist/properties/boolProperty.js +0 -1
  21. package/dist/properties/boolProperty.js.map +1 -1
  22. package/dist/properties/containerProperty.d.ts.map +1 -1
  23. package/dist/properties/containerProperty.js +4 -22
  24. package/dist/properties/containerProperty.js.map +1 -1
  25. package/dist/properties/enumArrayProperty.d.ts.map +1 -1
  26. package/dist/properties/enumArrayProperty.js +2 -14
  27. package/dist/properties/enumArrayProperty.js.map +1 -1
  28. package/dist/properties/enumProperty.d.ts.map +1 -1
  29. package/dist/properties/enumProperty.js +3 -10
  30. package/dist/properties/enumProperty.js.map +1 -1
  31. package/dist/properties/floatProperties.js +0 -2
  32. package/dist/properties/floatProperties.js.map +1 -1
  33. package/dist/properties/index.d.ts +7 -38
  34. package/dist/properties/index.d.ts.map +1 -1
  35. package/dist/properties/index.js +37 -68
  36. package/dist/properties/index.js.map +1 -1
  37. package/dist/properties/indexedCollectionBaseProperty.d.ts.map +1 -1
  38. package/dist/properties/indexedCollectionBaseProperty.js +6 -18
  39. package/dist/properties/indexedCollectionBaseProperty.js.map +1 -1
  40. package/dist/properties/intProperties.d.ts.map +1 -1
  41. package/dist/properties/intProperties.js +3 -20
  42. package/dist/properties/intProperties.js.map +1 -1
  43. package/dist/properties/lazyLoadedProperties.js.map +1 -1
  44. package/dist/properties/mapProperty.d.ts.map +1 -1
  45. package/dist/properties/mapProperty.js +4 -23
  46. package/dist/properties/mapProperty.js.map +1 -1
  47. package/dist/properties/namedNodeProperty.d.ts.map +1 -1
  48. package/dist/properties/namedNodeProperty.js.map +1 -1
  49. package/dist/properties/namedProperty.d.ts.map +1 -1
  50. package/dist/properties/namedProperty.js +0 -3
  51. package/dist/properties/namedProperty.js.map +1 -1
  52. package/dist/properties/nodeProperty.d.ts.map +1 -1
  53. package/dist/properties/nodeProperty.js +0 -3
  54. package/dist/properties/nodeProperty.js.map +1 -1
  55. package/dist/properties/primitiveTypeCasts.d.ts.map +1 -1
  56. package/dist/properties/primitiveTypeCasts.js +2 -2
  57. package/dist/properties/primitiveTypeCasts.js.map +1 -1
  58. package/dist/properties/referenceArrayProperty.d.ts.map +1 -1
  59. package/dist/properties/referenceArrayProperty.js +3 -16
  60. package/dist/properties/referenceArrayProperty.js.map +1 -1
  61. package/dist/properties/referenceMapProperty.d.ts.map +1 -1
  62. package/dist/properties/referenceMapProperty.js +3 -13
  63. package/dist/properties/referenceMapProperty.js.map +1 -1
  64. package/dist/properties/referenceProperty.d.ts.map +1 -1
  65. package/dist/properties/referenceProperty.js +4 -12
  66. package/dist/properties/referenceProperty.js.map +1 -1
  67. package/dist/properties/setProperty.d.ts.map +1 -1
  68. package/dist/properties/setProperty.js +3 -22
  69. package/dist/properties/setProperty.js.map +1 -1
  70. package/dist/properties/stringProperty.d.ts.map +1 -1
  71. package/dist/properties/stringProperty.js +12 -48
  72. package/dist/properties/stringProperty.js.map +1 -1
  73. package/dist/properties/uintProperties.js +0 -3
  74. package/dist/properties/uintProperties.js.map +1 -1
  75. package/dist/properties/valueArrayProperty.d.ts.map +1 -1
  76. package/dist/properties/valueArrayProperty.js +3 -45
  77. package/dist/properties/valueArrayProperty.js.map +1 -1
  78. package/dist/properties/valueMapProperty.d.ts.map +1 -1
  79. package/dist/properties/valueMapProperty.js +4 -29
  80. package/dist/properties/valueMapProperty.js.map +1 -1
  81. package/dist/properties/valueProperty.d.ts.map +1 -1
  82. package/dist/properties/valueProperty.js +2 -14
  83. package/dist/properties/valueProperty.js.map +1 -1
  84. package/dist/propertyFactory.d.ts.map +1 -1
  85. package/dist/propertyFactory.js +35 -72
  86. package/dist/propertyFactory.js.map +1 -1
  87. package/dist/propertyTemplate.d.ts.map +1 -1
  88. package/dist/propertyTemplate.js +0 -14
  89. package/dist/propertyTemplate.js.map +1 -1
  90. package/dist/propertyTemplateWrapper.d.ts.map +1 -1
  91. package/dist/propertyTemplateWrapper.js +4 -12
  92. package/dist/propertyTemplateWrapper.js.map +1 -1
  93. package/dist/propertyUtils.d.ts.map +1 -1
  94. package/dist/propertyUtils.js.map +1 -1
  95. package/dist/test/properties/arrayProperty.spec.js +82 -82
  96. package/dist/test/properties/arrayProperty.spec.js.map +1 -1
  97. package/dist/test/properties/baseProperty.spec.js +53 -53
  98. package/dist/test/properties/baseProperty.spec.js.map +1 -1
  99. package/dist/test/properties/containerProperty.spec.js +25 -25
  100. package/dist/test/properties/containerProperty.spec.js.map +1 -1
  101. package/dist/test/properties/customArrayProperty.spec.js +35 -35
  102. package/dist/test/properties/customArrayProperty.spec.js.map +1 -1
  103. package/dist/test/properties/enumArrayProperty.spec.js +6 -6
  104. package/dist/test/properties/enumArrayProperty.spec.js.map +1 -1
  105. package/dist/test/properties/enumProperty.spec.js +26 -26
  106. package/dist/test/properties/enumProperty.spec.js.map +1 -1
  107. package/dist/test/properties/float32.spec.js.map +1 -1
  108. package/dist/test/properties/int64ArrayProperty.spec.js +22 -22
  109. package/dist/test/properties/int64ArrayProperty.spec.js.map +1 -1
  110. package/dist/test/properties/int64MapProperty.spec.js +28 -28
  111. package/dist/test/properties/int64MapProperty.spec.js.map +1 -1
  112. package/dist/test/properties/int64Property.spec.js +11 -11
  113. package/dist/test/properties/int64Property.spec.js.map +1 -1
  114. package/dist/test/properties/isLeafNode.spec.js +25 -25
  115. package/dist/test/properties/isLeafNode.spec.js.map +1 -1
  116. package/dist/test/properties/mapProperty.spec.js +110 -110
  117. package/dist/test/properties/mapProperty.spec.js.map +1 -1
  118. package/dist/test/properties/namedNodeProperty.spec.js +5 -5
  119. package/dist/test/properties/namedNodeProperty.spec.js.map +1 -1
  120. package/dist/test/properties/nodeProperty.spec.js +160 -160
  121. package/dist/test/properties/nodeProperty.spec.js.map +1 -1
  122. package/dist/test/properties/referenceProperty.spec.js +21 -21
  123. package/dist/test/properties/referenceProperty.spec.js.map +1 -1
  124. package/dist/test/properties/relationshipProperty.spec.js +4 -4
  125. package/dist/test/properties/relationshipProperty.spec.js.map +1 -1
  126. package/dist/test/properties/setProperty.spec.js +32 -32
  127. package/dist/test/properties/setProperty.spec.js.map +1 -1
  128. package/dist/test/properties/stringProperty.spec.js +38 -38
  129. package/dist/test/properties/stringProperty.spec.js.map +1 -1
  130. package/dist/test/properties/uint64Property.spec.js +3 -3
  131. package/dist/test/properties/uint64Property.spec.js.map +1 -1
  132. package/dist/test/properties/valueMapProperty.spec.js +28 -28
  133. package/dist/test/properties/valueMapProperty.spec.js.map +1 -1
  134. package/dist/test/properties/valueProperty.spec.js +7 -7
  135. package/dist/test/properties/valueProperty.spec.js.map +1 -1
  136. package/dist/test/propertyFactory.spec.js +559 -560
  137. package/dist/test/propertyFactory.spec.js.map +1 -1
  138. package/dist/test/propertyTemplateWrapper.spec.js +38 -38
  139. package/dist/test/propertyTemplateWrapper.spec.js.map +1 -1
  140. package/dist/test/propertyUtils.spec.js +5 -5
  141. package/dist/test/propertyUtils.spec.js.map +1 -1
  142. package/dist/test/reversibleChangeset.spec.js +266 -266
  143. package/dist/test/reversibleChangeset.spec.js.map +1 -1
  144. package/dist/test/setup.js.map +1 -1
  145. package/dist/test/tsconfig.tsbuildinfo +145 -145
  146. package/dist/test/utils.spec.js +508 -517
  147. package/dist/test/utils.spec.js.map +1 -1
  148. package/dist/test/validation/badMissingSemverInTypeid.js +9 -9
  149. package/dist/test/validation/badMissingSemverInTypeid.js.map +1 -1
  150. package/dist/test/validation/badPrimitiveTypeid.js +5 -5
  151. package/dist/test/validation/badPrimitiveTypeid.js.map +1 -1
  152. package/dist/test/validation/goodColorId.js +42 -42
  153. package/dist/test/validation/goodColorId.js.map +1 -1
  154. package/dist/test/validation/goodColorPalette.js +2 -2
  155. package/dist/test/validation/goodColorPalette.js.map +1 -1
  156. package/dist/test/validation/goodPointId.js +9 -9
  157. package/dist/test/validation/goodPointId.js.map +1 -1
  158. package/dist/test/validation/reversibleChangeSetTestData.js +1 -1
  159. package/dist/test/validation/reversibleChangeSetTestData.js.map +1 -1
  160. package/lib/containerSerializer.js +4 -10
  161. package/lib/containerSerializer.js.map +1 -1
  162. package/lib/enableValidations.js +1 -1
  163. package/lib/enableValidations.js.map +1 -1
  164. package/lib/index.js +1 -1
  165. package/lib/index.js.map +1 -1
  166. package/lib/properties/abstractStaticCollectionProperty.js +1 -28
  167. package/lib/properties/abstractStaticCollectionProperty.js.map +1 -1
  168. package/lib/properties/arrayProperty.js +26 -85
  169. package/lib/properties/arrayProperty.js.map +1 -1
  170. package/lib/properties/baseProperty.js +7 -69
  171. package/lib/properties/baseProperty.js.map +1 -1
  172. package/lib/properties/boolProperty.js +0 -1
  173. package/lib/properties/boolProperty.js.map +1 -1
  174. package/lib/properties/containerProperty.js +4 -22
  175. package/lib/properties/containerProperty.js.map +1 -1
  176. package/lib/properties/enumArrayProperty.js +2 -14
  177. package/lib/properties/enumArrayProperty.js.map +1 -1
  178. package/lib/properties/enumProperty.js +3 -10
  179. package/lib/properties/enumProperty.js.map +1 -1
  180. package/lib/properties/floatProperties.js +0 -2
  181. package/lib/properties/floatProperties.js.map +1 -1
  182. package/lib/properties/index.js +7 -38
  183. package/lib/properties/index.js.map +1 -1
  184. package/lib/properties/indexedCollectionBaseProperty.js +6 -18
  185. package/lib/properties/indexedCollectionBaseProperty.js.map +1 -1
  186. package/lib/properties/intProperties.js +3 -20
  187. package/lib/properties/intProperties.js.map +1 -1
  188. package/lib/properties/lazyLoadedProperties.js.map +1 -1
  189. package/lib/properties/mapProperty.js +4 -23
  190. package/lib/properties/mapProperty.js.map +1 -1
  191. package/lib/properties/namedNodeProperty.js.map +1 -1
  192. package/lib/properties/namedProperty.js +0 -3
  193. package/lib/properties/namedProperty.js.map +1 -1
  194. package/lib/properties/nodeProperty.js +0 -3
  195. package/lib/properties/nodeProperty.js.map +1 -1
  196. package/lib/properties/primitiveTypeCasts.js +2 -2
  197. package/lib/properties/primitiveTypeCasts.js.map +1 -1
  198. package/lib/properties/referenceArrayProperty.js +3 -16
  199. package/lib/properties/referenceArrayProperty.js.map +1 -1
  200. package/lib/properties/referenceMapProperty.js +3 -13
  201. package/lib/properties/referenceMapProperty.js.map +1 -1
  202. package/lib/properties/referenceProperty.js +4 -12
  203. package/lib/properties/referenceProperty.js.map +1 -1
  204. package/lib/properties/setProperty.js +3 -22
  205. package/lib/properties/setProperty.js.map +1 -1
  206. package/lib/properties/stringProperty.js +12 -48
  207. package/lib/properties/stringProperty.js.map +1 -1
  208. package/lib/properties/uintProperties.js +0 -3
  209. package/lib/properties/uintProperties.js.map +1 -1
  210. package/lib/properties/valueArrayProperty.js +3 -45
  211. package/lib/properties/valueArrayProperty.js.map +1 -1
  212. package/lib/properties/valueMapProperty.js +4 -29
  213. package/lib/properties/valueMapProperty.js.map +1 -1
  214. package/lib/properties/valueProperty.js +2 -14
  215. package/lib/properties/valueProperty.js.map +1 -1
  216. package/lib/propertyFactory.js +35 -72
  217. package/lib/propertyFactory.js.map +1 -1
  218. package/lib/propertyTemplate.js +0 -14
  219. package/lib/propertyTemplate.js.map +1 -1
  220. package/lib/propertyTemplateWrapper.js +4 -12
  221. package/lib/propertyTemplateWrapper.js.map +1 -1
  222. package/lib/propertyUtils.js.map +1 -1
  223. package/package.json +13 -6
@@ -1 +1 @@
1
- {"version":3,"file":"enumArrayProperty.spec.js","sourceRoot":"","sources":["../../../src/test/properties/enumArrayProperty.spec.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,yCAAyC;AACzC;;;GAGG;AACH,IAAI,eAAe,EAAE,GAAG,CAAC;AAEzB,QAAQ,CAAC,mBAAmB,EAAE;IAC1B;;OAEG;IACH,MAAM,CAAC;QACH,GAAG,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAA;QAClE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC;QACnD,MAAM,oBAAoB,GAAG;YACzB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE;gBACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBACvB,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBACvB,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE;aAC3B;YACD,MAAM,EAAE,gCAAgC;SAC3C,CAAC;QAEF,MAAM,sBAAsB,GAAG;YAC3B,UAAU,EAAE;gBACR;oBACI,OAAO,EAAE,OAAO;oBAChB,EAAE,EAAE,WAAW;oBACf,MAAM,EAAE,gCAAgC;oBACxC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;iBACnB;aACJ;YACD,MAAM,EAAE,2BAA2B;SACtC,CAAC;QAEF,eAAe,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAClD,eAAe,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE;Q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C,gBAAgB,EAAE,CAAC;QAC5D,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable no-unused-expressions*/\n/**\n * @fileoverview In this file, we will test the functions of a EnumArrayProperty object\n * described in /src/properties/enumArrayProperty.js\n */\nvar PropertyFactory, MSG;\n\ndescribe('EnumArrayProperty', function () {\n /**\n * Get all the objects we need in this test here.\n */\n before(function () {\n MSG = require('@fluid-experimental/property-common').constants.MSG\n PropertyFactory = require('../..').PropertyFactory;\n const enumUnoDosTresSchema = {\n inherits: 'Enum',\n properties: [\n { id: 'uno', value: 1 },\n { id: 'dos', value: 2 },\n { id: 'tres', value: 3 }\n ],\n typeid: 'autodesk.enum:unoDosTres-1.0.0'\n };\n\n const enumAndEnumArraySchema = {\n properties: [\n {\n context: 'array',\n id: 'enumArray',\n typeid: 'autodesk.enum:unoDosTres-1.0.0',\n value: [2, 1, 2]\n }\n ],\n typeid: 'autodesk.enum:enums-1.0.0'\n };\n\n PropertyFactory._reregister(enumUnoDosTresSchema);\n PropertyFactory._reregister(enumAndEnumArraySchema);\n });\n\n it('Should be able to get a value', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n expect(property.get('enumArray').getEnumString(0)).to.equal('dos');\n });\n\n it('Should be able to getValues', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 2]);\n });\n\n it('Should be able to getEnumStrings', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').getEnumStrings(0, 3)).to.deep.equal(['dos', 'uno', 'dos']);\n });\n\n it('Should be able to set a value using an Enum number', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n property.get('enumArray').set(0, 1);\n expect(property.get('enumArray').get(0)).to.equal(1);\n });\n\n it('Should throw on setting invalid Enum number', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function () {\n property.get('enumArray').set(0, -100);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to set a value using an Enum string', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n property.get('enumArray').set(0, 'uno');\n expect(property.get('enumArray').get(0)).to.equal(1);\n });\n\n it('Should throw on setting invalid Enum string', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function () {\n property.get('enumArray').set(0, 'badString');\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to insert a value using an Enum number', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n property.get('enumArray').insertRange(2, [1]);\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 1, 2]);\n });\n\n it('Should throw on inserting invalid Enum number', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function () {\n property.get('enumArray').insertRange(0, [-100]);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to insert a value using an Enum string', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n property.get('enumArray').insertRange(2, ['uno']);\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 1, 2]);\n });\n\n it('Should throw on inserting invalid Enum string', function () {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function () {\n property.get('enumArray').insertRange(0, ['badString']);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to overide default values on creation with initialValues', function () {\n let initialValues = { 'enumArray': [3, 2, 3] };\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0', null, initialValues);\n\n expect(property.get('enumArray').getValues()).to.deep.equal([3, 2, 3]);\n expect(property.get('enumArray').getEnumStrings(0, 3)).to.deep.equal(['tres', 'dos', 'tres']);\n });\n\n it('.getValidEnumList should return expected enum list', function () {\n var property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n var enumList = property.get('enumArray').getValidEnumList();\n expect(enumList).to.have.nested.property('uno.value', 1);\n expect(enumList).to.have.nested.property('dos.value', 2);\n expect(enumList).to.have.nested.property('tres.value', 3);\n });\n});\n"]}
1
+ {"version":3,"file":"enumArrayProperty.spec.js","sourceRoot":"","sources":["../../../src/test/properties/enumArrayProperty.spec.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0CAA0C;AAC1C;;;GAGG;AACH,IAAI,eAAe,EAAE,GAAG,CAAC;AAEzB,QAAQ,CAAC,mBAAmB,EAAE;IAC1B;;OAEG;IACH,MAAM,CAAC;QACH,GAAG,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC;QACnE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC;QACnD,MAAM,oBAAoB,GAAG;YACzB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE;gBACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBACvB,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE;gBACvB,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE;aAC3B;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C,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACvE,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAClG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE;QACrD,IAAI,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;QACnE,IAAI,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAC5D,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable no-unused-expressions */\n/**\n * @fileoverview In this file, we will test the functions of a EnumArrayProperty object\n * described in /src/properties/enumArrayProperty.js\n */\nvar PropertyFactory, MSG;\n\ndescribe('EnumArrayProperty', function() {\n /**\n * Get all the objects we need in this test here.\n */\n before(function() {\n MSG = require('@fluid-experimental/property-common').constants.MSG;\n PropertyFactory = require('../..').PropertyFactory;\n const enumUnoDosTresSchema = {\n inherits: 'Enum',\n properties: [\n { id: 'uno', value: 1 },\n { id: 'dos', value: 2 },\n { id: 'tres', value: 3 },\n ],\n typeid: 'autodesk.enum:unoDosTres-1.0.0',\n };\n\n const enumAndEnumArraySchema = {\n properties: [\n {\n context: 'array',\n id: 'enumArray',\n typeid: 'autodesk.enum:unoDosTres-1.0.0',\n value: [2, 1, 2],\n },\n ],\n typeid: 'autodesk.enum:enums-1.0.0',\n };\n\n PropertyFactory._reregister(enumUnoDosTresSchema);\n PropertyFactory._reregister(enumAndEnumArraySchema);\n });\n\n it('Should be able to get a value', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n expect(property.get('enumArray').getEnumString(0)).to.equal('dos');\n });\n\n it('Should be able to getValues', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 2]);\n });\n\n it('Should be able to getEnumStrings', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').getEnumStrings(0, 3)).to.deep.equal(['dos', 'uno', 'dos']);\n });\n\n it('Should be able to set a value using an Enum number', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n property.get('enumArray').set(0, 1);\n expect(property.get('enumArray').get(0)).to.equal(1);\n });\n\n it('Should throw on setting invalid Enum number', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function() {\n property.get('enumArray').set(0, -100);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to set a value using an Enum string', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n expect(property.get('enumArray').get(0)).to.equal(2);\n property.get('enumArray').set(0, 'uno');\n expect(property.get('enumArray').get(0)).to.equal(1);\n });\n\n it('Should throw on setting invalid Enum string', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function() {\n property.get('enumArray').set(0, 'badString');\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to insert a value using an Enum number', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n property.get('enumArray').insertRange(2, [1]);\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 1, 2]);\n });\n\n it('Should throw on inserting invalid Enum number', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function() {\n property.get('enumArray').insertRange(0, [-100]);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to insert a value using an Enum string', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n\n property.get('enumArray').insertRange(2, ['uno']);\n expect(property.get('enumArray').getValues()).to.deep.equal([2, 1, 1, 2]);\n });\n\n it('Should throw on inserting invalid Enum string', function() {\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n expect(function() {\n property.get('enumArray').insertRange(0, ['badString']);\n }).to.throw(MSG.UNKNOWN_ENUM);\n });\n\n it('Should be able to overide default values on creation with initialValues', function() {\n let initialValues = { 'enumArray': [3, 2, 3] };\n let property = PropertyFactory.create('autodesk.enum:enums-1.0.0', null, initialValues);\n\n expect(property.get('enumArray').getValues()).to.deep.equal([3, 2, 3]);\n expect(property.get('enumArray').getEnumStrings(0, 3)).to.deep.equal(['tres', 'dos', 'tres']);\n });\n\n it('.getValidEnumList should return expected enum list', function() {\n var property = PropertyFactory.create('autodesk.enum:enums-1.0.0');\n var enumList = property.get('enumArray').getValidEnumList();\n expect(enumList).to.have.nested.property('uno.value', 1);\n expect(enumList).to.have.nested.property('dos.value', 2);\n expect(enumList).to.have.nested.property('tres.value', 3);\n });\n});\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- /* eslint-disable no-unused-expressions*/
5
+ /* eslint-disable no-unused-expressions */
6
6
  /**
7
7
  * @fileoverview In this file, we will test the functions of a EnumProperty object
8
8
  * described in /src/properties/enumProperty.js
@@ -28,8 +28,8 @@ describe('Test EnumProperty', function () {
28
28
  properties: [
29
29
  { id: "m", value: 1, annotation: { description: "meter" } },
30
30
  { id: "cm", value: 2, annotation: { description: "centimeter" } },
31
- { id: "mm", value: 3, annotation: { description: "millimeter" } }
32
- ]
31
+ { id: "mm", value: 3, annotation: { description: "millimeter" } },
32
+ ],
33
33
  };
34
34
  PropertyFactory._reregister(TestEnumTemplate);
35
35
  // Enums can also be defined in line in a template
@@ -42,8 +42,8 @@ describe('Test EnumProperty', function () {
42
42
  properties: [
43
43
  { id: "solid", value: 100, annotation: { description: "solid line" } },
44
44
  { id: "dashed", value: 200, annotation: { description: "dashed line" } },
45
- { id: "dotted", value: 300, annotation: { description: "dotted line" } }
46
- ]
45
+ { id: "dotted", value: 300, annotation: { description: "dotted line" } },
46
+ ],
47
47
  },
48
48
  {
49
49
  id: "style",
@@ -53,8 +53,8 @@ describe('Test EnumProperty', function () {
53
53
  typeid: "Uint32",
54
54
  annotation: {
55
55
  description: "border thickness in Pixels",
56
- unit: "Adsk.Core:Units.Imaging-1.0.0"
57
- }
56
+ unit: "Adsk.Core:Units.Imaging-1.0.0",
57
+ },
58
58
  },
59
59
  {
60
60
  id: "secondLevelInlineEnum",
@@ -62,27 +62,27 @@ describe('Test EnumProperty', function () {
62
62
  properties: [
63
63
  { id: "A", value: 0, annotation: { description: "The Letter A." } },
64
64
  { id: "B", value: 76596785, annotation: { description: "The Letter B." } },
65
- { id: "C", value: -199999, annotation: { description: "The Letter C." } }
66
- ]
67
- }
68
- ]
69
- }
70
- ]
65
+ { id: "C", value: -199999, annotation: { description: "The Letter C." } },
66
+ ],
67
+ },
68
+ ],
69
+ },
70
+ ],
71
71
  };
72
72
  PropertyFactory._reregister(TestInlineEnumTemplate);
73
73
  TestBaseContainingEnumTemplate = {
74
74
  typeid: 'autodesk.core:CustomWithEnumID-1.0.0',
75
75
  properties: [{
76
- id: 'MyEnum', typeid: 'autodesk.core:UnitsEnum-1.0.0'
77
- }
78
- ]
76
+ id: 'MyEnum', typeid: 'autodesk.core:UnitsEnum-1.0.0',
77
+ },
78
+ ],
79
79
  };
80
80
  PropertyFactory._reregister(TestBaseContainingEnumTemplate);
81
81
  TestEnumArrayTemplate = {
82
82
  typeid: 'autodesk.core:EnumArrayTestID-1.0.0',
83
83
  properties: [{
84
- id: 'MyEnumArray', typeid: 'autodesk.core:UnitsEnum-1.0.0', context: 'array'
85
- }]
84
+ id: 'MyEnumArray', typeid: 'autodesk.core:UnitsEnum-1.0.0', context: 'array',
85
+ }],
86
86
  };
87
87
  PropertyFactory._reregister(TestEnumArrayTemplate);
88
88
  });
@@ -96,10 +96,10 @@ describe('Test EnumProperty', function () {
96
96
  properties: [
97
97
  { id: "m", value: 1, annotation: { description: "meter" } },
98
98
  { id: "cm", value: 2, annotation: { description: "centimeter" } },
99
- { id: "mm", value: 3, annotation: { description: "millimeter" } }
100
- ]
101
- }
102
- ]
99
+ { id: "mm", value: 3, annotation: { description: "millimeter" } },
100
+ ],
101
+ },
102
+ ],
103
103
  };
104
104
  let copyOfTemplate = deepCopy(enumTemplate);
105
105
  PropertyFactory._reregister(enumTemplate);
@@ -196,8 +196,8 @@ describe('Test EnumProperty', function () {
196
196
  // check result
197
197
  expect(changeSet1.getSerializedChangeSet()).to.deep.equal({
198
198
  'enum<autodesk.core:UnitsEnum-1.0.0>': {
199
- MyEnum: 2
200
- }
199
+ MyEnum: 2,
200
+ },
201
201
  });
202
202
  expect(conflicts).to.have.length(1);
203
203
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.COLLIDING_SET);
@@ -213,8 +213,8 @@ describe('Test EnumProperty', function () {
213
213
  expect(enumArray.getEnumString(2)).to.equal('mm');
214
214
  expect(enumArray.serialize()).to.deep.equal({
215
215
  'insert': [
216
- [0, [2, 1, 3]]
217
- ]
216
+ [0, [2, 1, 3]],
217
+ ],
218
218
  });
219
219
  });
220
220
  it('.setRange should throw an error when in_offset is not an integer', function ()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rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable no-unused-expressions*/\n/**\n * @fileoverview In this file, we will test the functions of a EnumProperty object\n * described in /src/properties/enumProperty.js\n */\n\nvar PropertyFactory, TestEnumTemplate, TestInlineEnumTemplate, TestEnumArrayTemplate,\n BaseProperty, ChangeSet, TestBaseContainingEnumTemplate, MSG, deepCopy, _;\n\ndescribe('Test EnumProperty', function () {\n /**\n * Get all the objects we need in this test here.\n */\n before(function () {\n PropertyFactory = require('../..').PropertyFactory;\n BaseProperty = require('../..').BaseProperty;\n ChangeSet = require('@fluid-experimental/property-changeset').ChangeSet\n MSG = require('@fluid-experimental/property-common').constants.MSG\n _ = require('lodash');\n deepCopy = _.cloneDeep;\n\n\n // the following templates are copies from the specification\n // disableling the single quote rule to keep exact copies\n TestEnumTemplate = {\n typeid: \"autodesk.core:UnitsEnum-1.0.0\",\n inherits: \"Enum\",\n annotation: { description: \"The metric units\" },\n properties: [\n { id: \"m\", value: 1, annotation: { description: \"meter\" } },\n { id: \"cm\", value: 2, annotation: { description: \"centimeter\" } },\n { id: \"mm\", value: 3, annotation: { description: \"millimeter\" } }\n ]\n };\n PropertyFactory._reregister(TestEnumTemplate);\n\n // Enums can also be defined in line in a template\n TestInlineEnumTemplate = {\n typeid: \"Adsk.Core:UI.Border-1.0.0\",\n properties: [\n {\n id: \"lineType\",\n typeid: \"Enum\",\n properties: [\n { id: \"solid\", value: 100, annotation: { description: \"solid line\" } },\n { id: \"dashed\", value: 200, annotation: { description: \"dashed line\" } },\n { id: \"dotted\", value: 300, annotation: { description: \"dotted line\" } }\n ]\n },\n {\n id: \"style\",\n properties: [\n {\n id: \"thickness\",\n typeid: \"Uint32\",\n annotation: {\n description: \"border thickness in Pixels\",\n unit: \"Adsk.Core:Units.Imaging-1.0.0\"\n }\n },\n {\n id: \"secondLevelInlineEnum\",\n typeid: \"Enum\",\n properties: [\n { id: \"A\", value: 0, annotation: { description: \"The Letter A.\" } },\n { id: \"B\", value: 76596785, annotation: { description: \"The Letter B.\" } },\n { id: \"C\", value: -199999, annotation: { description: \"The Letter C.\" } }\n ]\n }\n ]\n }\n ]\n };\n\n PropertyFactory._reregister(TestInlineEnumTemplate);\n\n TestBaseContainingEnumTemplate = {\n typeid: 'autodesk.core:CustomWithEnumID-1.0.0',\n properties: [{\n id: 'MyEnum', typeid: 'autodesk.core:UnitsEnum-1.0.0'\n }\n ]\n };\n PropertyFactory._reregister(TestBaseContainingEnumTemplate);\n\n TestEnumArrayTemplate = {\n typeid: 'autodesk.core:EnumArrayTestID-1.0.0',\n properties: [{\n id: 'MyEnumArray', typeid: 'autodesk.core:UnitsEnum-1.0.0', context: 'array'\n }]\n };\n PropertyFactory._reregister(TestEnumArrayTemplate);\n });\n\n it('@bugFix should not modify the registered template', function () {\n let enumTemplate = {\n typeid: \"autodesk.core:testEnum-1.0.0\",\n annotation: { description: \"The metric units\" },\n properties: [{\n typeid: \"Enum\",\n id: 'preset',\n properties: [\n { id: \"m\", value: 1, annotation: { description: \"meter\" } },\n { id: \"cm\", value: 2, annotation: { description: \"centimeter\" } },\n { id: \"mm\", value: 3, annotation: { description: \"millimeter\" } }\n ]\n }\n ]\n };\n let copyOfTemplate = deepCopy(enumTemplate);\n PropertyFactory._reregister(enumTemplate);\n expect(copyOfTemplate).to.deep.equal(enumTemplate);\n expect(PropertyFactory.getTemplate(copyOfTemplate.typeid).serialize()).to.deep.equal(copyOfTemplate);\n });\n\n it('should correctly set/get the Enum values', function () {\n\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n\n enumProp.setEnumByString('cm');\n expect(enumProp.getValue()).to.equal(2);\n expect(enumProp.getEnumString()).to.equal('cm');\n\n enumProp.setEnumByString('mm');\n expect(enumProp.getValue()).to.equal(3);\n expect(enumProp.getEnumString()).to.equal('mm');\n\n var enumInlineProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n var inlinedEnum = enumInlineProp._properties.lineType;\n inlinedEnum.setEnumByString(\"solid\");\n expect(inlinedEnum.getValue()).to.equal(100);\n expect(inlinedEnum.getEnumString()).to.equal('solid');\n\n var secondLevelInlineProperty = enumInlineProp._properties.style.secondLevelInlineEnum;\n secondLevelInlineProperty.setEnumByString('B');\n expect(secondLevelInlineProperty.getValue()).to.equal(76596785);\n expect(secondLevelInlineProperty.getEnumString()).to.equal('B');\n\n enumInlineProp._properties.style.thickness.value = 5;\n\n var firstOne = enumInlineProp.serialize();\n var anotherEnumInlineProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n anotherEnumInlineProp.deserialize(firstOne);\n var anotherOne = anotherEnumInlineProp.serialize();\n expect(firstOne).to.deep.equal(anotherOne);\n });\n\n it('should throw on setting invalid Enum strings', function () {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n expect(function () {\n enumProp.setEnumByString('BadGuy');\n }).to.throw();\n });\n\n it('should throw on setting invalid Enum values', function () {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n expect(function () {\n enumProp.setValue(23);\n }).to.throw();\n });\n\n it('should correctly squash Enums', function () {\n var enum1 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n enum1._properties.MyEnum.value = 1;\n var squashedChangeset = new ChangeSet(enum1.serialize({ 'dirtyOnly': false }));\n\n enum1._properties.MyEnum.value = 2;\n var changes = enum1.serialize({ 'dirtyOnly': true });\n squashedChangeset.applyChangeSet(changes);\n\n var serializedChangeset = enum1.serialize({ 'dirtyOnly': false });\n expect(serializedChangeset).to.deep.equal(squashedChangeset.getSerializedChangeSet());\n });\n\n it('should have a default value that is the lowest valid value', function () {\n var enumProp = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n expect(enumProp.get('MyEnum').value).to.equal(1);\n });\n\n it('should have a default value of 0 if 0 is a valid value', function () {\n var enumProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n expect(enumProp.get('style').get('secondLevelInlineEnum').value).to.equal(0);\n });\n\n it('should be possible to dynamically add an Enum to a NodeProperty', function () {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n var myNode = PropertyFactory.create('NodeProperty');\n myNode.insert('myEnum', enumProp);\n myNode._properties.myEnum.value = 2;\n var myNodeCopy = PropertyFactory.create('NodeProperty');\n myNodeCopy.deserialize(myNode.serialize({ 'dirtyOnly': false }));\n // test if the dictionary of the copy is initialized correctly\n expect(myNodeCopy._properties.myEnum.getEnumString()).to.equal('cm');\n\n // test the consitency of the copy\n expect(myNode.serialize({ 'dirtyOnly': false })).to.deep.equal(myNodeCopy.serialize({ 'dirtyOnly': false }));\n });\n\n it('should correctly rebase Properties containing Enum values and correctly show conflicts', function () {\n var baseProperty1 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n\n // Create two copies of this state\n var baseProperty2 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n baseProperty2.deserialize(baseProperty1.serialize({ 'dirtyOnly': false }));\n var baseProperty3 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n baseProperty3.deserialize(baseProperty1.serialize({ 'dirtyOnly': false }));\n\n // Make sure the states are clear\n baseProperty1.cleanDirty(BaseProperty.MODIFIED_STATE_FLAGS.DIRTY |\n BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);\n baseProperty2.cleanDirty(BaseProperty.MODIFIED_STATE_FLAGS.DIRTY |\n BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);\n\n // Apply the operations to the two properties in parallel\n baseProperty1._properties.MyEnum.value = 2;\n baseProperty2._properties.MyEnum.value = 3;\n\n // Get the ChangeSets\n var changeSet1 = new ChangeSet(baseProperty1.serialize({ 'dirtyOnly': true }));\n var changeSet2 = baseProperty2.serialize({ 'dirtyOnly': true });\n\n // Perform the actual rebase\n var conflicts = [];\n changeSet1._rebaseChangeSet(changeSet2, conflicts);\n\n // check result\n expect(changeSet1.getSerializedChangeSet()).to.deep.equal({\n 'enum<autodesk.core:UnitsEnum-1.0.0>': {\n MyEnum: 2\n }\n });\n expect(conflicts).to.have.length(1);\n expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.COLLIDING_SET);\n expect(conflicts[0].path).to.be.equal('');\n expect(conflicts[0].conflictingChange['enum<autodesk.core:UnitsEnum-1.0.0>'].MyEnum).to.be.equal(2);\n });\n\n it('specialized EnumArrayProperty should work correctly', function () {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm', 3]);\n enumArray.setRange(2, ['m']);\n enumArray.remove(0, 1);\n expect(enumArray.getEnumString(2)).to.equal('mm');\n expect(enumArray.serialize()).to.deep.equal(\n {\n 'insert': [\n [0, [2, 1, 3]]\n ]\n }\n );\n });\n\n it('.setRange should throw an error when in_offset is not an integer', function () {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.setRange('test', ['m']); })\n .to.throw(MSG.NOT_NUMBER);\n });\n\n it('.setRange should throw an error when in_array is not an array', function () {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.setRange(2, 'm'); })\n .to.throw(MSG.IN_ARRAY_NOT_ARRAY + 'EnumArrayProperty.setRange');\n });\n\n it('.set should throw an error when in_offset is not an integer', function () {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.set('test', 'm'); })\n .to.throw(MSG.NOT_NUMBER);\n });\n\n it('.set should throw an error when in_value is an array', function () {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.set(2, ['m']); }).to.throw(MSG.VALUE_STRING_OR_NUMBER);\n });\n\n it('isPrimitiveType should evaluate to true', function () {\n var enum1 = PropertyFactory.create(TestEnumTemplate.typeid);\n expect(enum1.isPrimitiveType()).to.equal(true);\n });\n\n it('.getValidEnumList should return expected enum list', function () {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n var enumList = enumProp.getValidEnumList();\n expect(enumList).to.have.nested.property('m.value', 1);\n expect(enumList).to.have.nested.property('cm.value', 2);\n expect(enumList).to.have.nested.property('mm.value', 3);\n });\n});\n"]}
1
+ {"version":3,"file":"enumProperty.spec.js","sourceRoot":"","sources":["../../../src/test/properties/enumProperty.spec.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0CAA0C;AAC1C;;;GAGG;AAEH,IAAI,eAAe,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,qBAAqB,EAChF,YAAY,EAAE,SAAS,EAAE,8BAA8B,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAE9E,QAAQ,CAAC,mBAAmB,EAAE;IAC1B;;OAEG;IACH,MAAM,CAAC;QACH,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC;QACnD,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC;QAC7C,SAAS,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC,SAAS,CAAC;QACxE,GAAG,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC;QACnE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtB,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC;QAEvB,4DAA4D;QAC5D,yDAAyD;QACzD,gBAAgB,GAAG;YACf,MAAM,EAAE,+BAA+B;YACvC,QAAQ,EAAE,MAAM;YAChB,U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Q,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACvD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACxD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable no-unused-expressions */\n/**\n * @fileoverview In this file, we will test the functions of a EnumProperty object\n * described in /src/properties/enumProperty.js\n */\n\nvar PropertyFactory, TestEnumTemplate, TestInlineEnumTemplate, TestEnumArrayTemplate,\n BaseProperty, ChangeSet, TestBaseContainingEnumTemplate, MSG, deepCopy, _;\n\ndescribe('Test EnumProperty', function() {\n /**\n * Get all the objects we need in this test here.\n */\n before(function() {\n PropertyFactory = require('../..').PropertyFactory;\n BaseProperty = require('../..').BaseProperty;\n ChangeSet = require('@fluid-experimental/property-changeset').ChangeSet;\n MSG = require('@fluid-experimental/property-common').constants.MSG;\n _ = require('lodash');\n deepCopy = _.cloneDeep;\n\n // the following templates are copies from the specification\n // disableling the single quote rule to keep exact copies\n TestEnumTemplate = {\n typeid: \"autodesk.core:UnitsEnum-1.0.0\",\n inherits: \"Enum\",\n annotation: { description: \"The metric units\" },\n properties: [\n { id: \"m\", value: 1, annotation: { description: \"meter\" } },\n { id: \"cm\", value: 2, annotation: { description: \"centimeter\" } },\n { id: \"mm\", value: 3, annotation: { description: \"millimeter\" } },\n ],\n };\n PropertyFactory._reregister(TestEnumTemplate);\n\n // Enums can also be defined in line in a template\n TestInlineEnumTemplate = {\n typeid: \"Adsk.Core:UI.Border-1.0.0\",\n properties: [\n {\n id: \"lineType\",\n typeid: \"Enum\",\n properties: [\n { id: \"solid\", value: 100, annotation: { description: \"solid line\" } },\n { id: \"dashed\", value: 200, annotation: { description: \"dashed line\" } },\n { id: \"dotted\", value: 300, annotation: { description: \"dotted line\" } },\n ],\n },\n {\n id: \"style\",\n properties: [\n {\n id: \"thickness\",\n typeid: \"Uint32\",\n annotation: {\n description: \"border thickness in Pixels\",\n unit: \"Adsk.Core:Units.Imaging-1.0.0\",\n },\n },\n {\n id: \"secondLevelInlineEnum\",\n typeid: \"Enum\",\n properties: [\n { id: \"A\", value: 0, annotation: { description: \"The Letter A.\" } },\n { id: \"B\", value: 76596785, annotation: { description: \"The Letter B.\" } },\n { id: \"C\", value: -199999, annotation: { description: \"The Letter C.\" } },\n ],\n },\n ],\n },\n ],\n };\n\n PropertyFactory._reregister(TestInlineEnumTemplate);\n\n TestBaseContainingEnumTemplate = {\n typeid: 'autodesk.core:CustomWithEnumID-1.0.0',\n properties: [{\n id: 'MyEnum', typeid: 'autodesk.core:UnitsEnum-1.0.0',\n },\n ],\n };\n PropertyFactory._reregister(TestBaseContainingEnumTemplate);\n\n TestEnumArrayTemplate = {\n typeid: 'autodesk.core:EnumArrayTestID-1.0.0',\n properties: [{\n id: 'MyEnumArray', typeid: 'autodesk.core:UnitsEnum-1.0.0', context: 'array',\n }],\n };\n PropertyFactory._reregister(TestEnumArrayTemplate);\n });\n\n it('@bugFix should not modify the registered template', function() {\n let enumTemplate = {\n typeid: \"autodesk.core:testEnum-1.0.0\",\n annotation: { description: \"The metric units\" },\n properties: [{\n typeid: \"Enum\",\n id: 'preset',\n properties: [\n { id: \"m\", value: 1, annotation: { description: \"meter\" } },\n { id: \"cm\", value: 2, annotation: { description: \"centimeter\" } },\n { id: \"mm\", value: 3, annotation: { description: \"millimeter\" } },\n ],\n },\n ],\n };\n let copyOfTemplate = deepCopy(enumTemplate);\n PropertyFactory._reregister(enumTemplate);\n expect(copyOfTemplate).to.deep.equal(enumTemplate);\n expect(PropertyFactory.getTemplate(copyOfTemplate.typeid).serialize()).to.deep.equal(copyOfTemplate);\n });\n\n it('should correctly set/get the Enum values', function() {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n\n enumProp.setEnumByString('cm');\n expect(enumProp.getValue()).to.equal(2);\n expect(enumProp.getEnumString()).to.equal('cm');\n\n enumProp.setEnumByString('mm');\n expect(enumProp.getValue()).to.equal(3);\n expect(enumProp.getEnumString()).to.equal('mm');\n\n var enumInlineProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n var inlinedEnum = enumInlineProp._properties.lineType;\n inlinedEnum.setEnumByString(\"solid\");\n expect(inlinedEnum.getValue()).to.equal(100);\n expect(inlinedEnum.getEnumString()).to.equal('solid');\n\n var secondLevelInlineProperty = enumInlineProp._properties.style.secondLevelInlineEnum;\n secondLevelInlineProperty.setEnumByString('B');\n expect(secondLevelInlineProperty.getValue()).to.equal(76596785);\n expect(secondLevelInlineProperty.getEnumString()).to.equal('B');\n\n enumInlineProp._properties.style.thickness.value = 5;\n\n var firstOne = enumInlineProp.serialize();\n var anotherEnumInlineProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n anotherEnumInlineProp.deserialize(firstOne);\n var anotherOne = anotherEnumInlineProp.serialize();\n expect(firstOne).to.deep.equal(anotherOne);\n });\n\n it('should throw on setting invalid Enum strings', function() {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n expect(function() {\n enumProp.setEnumByString('BadGuy');\n }).to.throw();\n });\n\n it('should throw on setting invalid Enum values', function() {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n expect(function() {\n enumProp.setValue(23);\n }).to.throw();\n });\n\n it('should correctly squash Enums', function() {\n var enum1 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n enum1._properties.MyEnum.value = 1;\n var squashedChangeset = new ChangeSet(enum1.serialize({ 'dirtyOnly': false }));\n\n enum1._properties.MyEnum.value = 2;\n var changes = enum1.serialize({ 'dirtyOnly': true });\n squashedChangeset.applyChangeSet(changes);\n\n var serializedChangeset = enum1.serialize({ 'dirtyOnly': false });\n expect(serializedChangeset).to.deep.equal(squashedChangeset.getSerializedChangeSet());\n });\n\n it('should have a default value that is the lowest valid value', function() {\n var enumProp = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n expect(enumProp.get('MyEnum').value).to.equal(1);\n });\n\n it('should have a default value of 0 if 0 is a valid value', function() {\n var enumProp = PropertyFactory.create('Adsk.Core:UI.Border-1.0.0');\n expect(enumProp.get('style').get('secondLevelInlineEnum').value).to.equal(0);\n });\n\n it('should be possible to dynamically add an Enum to a NodeProperty', function() {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n var myNode = PropertyFactory.create('NodeProperty');\n myNode.insert('myEnum', enumProp);\n myNode._properties.myEnum.value = 2;\n var myNodeCopy = PropertyFactory.create('NodeProperty');\n myNodeCopy.deserialize(myNode.serialize({ 'dirtyOnly': false }));\n // test if the dictionary of the copy is initialized correctly\n expect(myNodeCopy._properties.myEnum.getEnumString()).to.equal('cm');\n\n // test the consitency of the copy\n expect(myNode.serialize({ 'dirtyOnly': false })).to.deep.equal(myNodeCopy.serialize({ 'dirtyOnly': false }));\n });\n\n it('should correctly rebase Properties containing Enum values and correctly show conflicts', function() {\n var baseProperty1 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n\n // Create two copies of this state\n var baseProperty2 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n baseProperty2.deserialize(baseProperty1.serialize({ 'dirtyOnly': false }));\n var baseProperty3 = PropertyFactory.create('autodesk.core:CustomWithEnumID-1.0.0');\n baseProperty3.deserialize(baseProperty1.serialize({ 'dirtyOnly': false }));\n\n // Make sure the states are clear\n baseProperty1.cleanDirty(BaseProperty.MODIFIED_STATE_FLAGS.DIRTY |\n BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);\n baseProperty2.cleanDirty(BaseProperty.MODIFIED_STATE_FLAGS.DIRTY |\n BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);\n\n // Apply the operations to the two properties in parallel\n baseProperty1._properties.MyEnum.value = 2;\n baseProperty2._properties.MyEnum.value = 3;\n\n // Get the ChangeSets\n var changeSet1 = new ChangeSet(baseProperty1.serialize({ 'dirtyOnly': true }));\n var changeSet2 = baseProperty2.serialize({ 'dirtyOnly': true });\n\n // Perform the actual rebase\n var conflicts = [];\n changeSet1._rebaseChangeSet(changeSet2, conflicts);\n\n // check result\n expect(changeSet1.getSerializedChangeSet()).to.deep.equal({\n 'enum<autodesk.core:UnitsEnum-1.0.0>': {\n MyEnum: 2,\n },\n });\n expect(conflicts).to.have.length(1);\n expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.COLLIDING_SET);\n expect(conflicts[0].path).to.be.equal('');\n expect(conflicts[0].conflictingChange['enum<autodesk.core:UnitsEnum-1.0.0>'].MyEnum).to.be.equal(2);\n });\n\n it('specialized EnumArrayProperty should work correctly', function() {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm', 3]);\n enumArray.setRange(2, ['m']);\n enumArray.remove(0, 1);\n expect(enumArray.getEnumString(2)).to.equal('mm');\n expect(enumArray.serialize()).to.deep.equal(\n {\n 'insert': [\n [0, [2, 1, 3]],\n ],\n },\n );\n });\n\n it('.setRange should throw an error when in_offset is not an integer', function() {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.setRange('test', ['m']); })\n .to.throw(MSG.NOT_NUMBER);\n });\n\n it('.setRange should throw an error when in_array is not an array', function() {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.setRange(2, 'm'); })\n .to.throw(MSG.IN_ARRAY_NOT_ARRAY + 'EnumArrayProperty.setRange');\n });\n\n it('.set should throw an error when in_offset is not an integer', function() {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.set('test', 'm'); })\n .to.throw(MSG.NOT_NUMBER);\n });\n\n it('.set should throw an error when in_value is an array', function() {\n var enum1 = PropertyFactory.create('autodesk.core:EnumArrayTestID-1.0.0');\n var enumArray = enum1._properties.MyEnumArray;\n enumArray.insertRange(0, [1, 'cm', 'mm']);\n expect(() => { enumArray.set(2, ['m']); }).to.throw(MSG.VALUE_STRING_OR_NUMBER);\n });\n\n it('isPrimitiveType should evaluate to true', function() {\n var enum1 = PropertyFactory.create(TestEnumTemplate.typeid);\n expect(enum1.isPrimitiveType()).to.equal(true);\n });\n\n it('.getValidEnumList should return expected enum list', function() {\n var enumProp = PropertyFactory.create('autodesk.core:UnitsEnum-1.0.0');\n var enumList = enumProp.getValidEnumList();\n expect(enumList).to.have.nested.property('m.value', 1);\n expect(enumList).to.have.nested.property('cm.value', 2);\n expect(enumList).to.have.nested.property('mm.value', 3);\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"float32.spec.js","sourceRoot":"","sources":["../../../src/test/properties/float32.spec.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG;AACH,QAAQ,CAAC,SAAS,EAAE;IAClB,IAAI,eAAe,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC;QACL,eAAe,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC,eAAe,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,4CAA4C,EAAE;QACrD,EAAE,CAAC,8BAA8B,EAAE,UAAU,IAAI;YAC/C,IAAI,EAAE,CAAC;YACP,IAAI,KAAK,CAAC;YACV,MAAM,KAAK,GAAG,GAAG,CAAC;YAClB,IAAI;gBACF,EAAE,GAAG,IAAI,eAAe,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;gBAChD,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;aACpB;YAAC,OAAO,CAAC,EAAE;gBACV,KAAK,GAAG,CAAC,CAAC;aACX;oBAAS;gBACR,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC9B,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBAClC,IAAI,EAAE,CAAC;aACR;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * @fileoverview In this file, we will test Float32\n * object described in /src/properties/float32.js\n */\ndescribe('Float32', function () {\n var Float32Property;\n\n /**\n * Get all the objects we need in this test here.\n */\n before(function () {\n Float32Property = require('../../properties/floatProperties').Float32Property;\n });\n\n describe('Checking the value stored in ValueProperty', function () {\n it('should return the same value', function (done) {\n var fp;\n var error;\n const value = 100;\n try {\n fp = new Float32Property({ id: 'temperature' });\n fp.setValue(value);\n } catch (e) {\n error = e;\n } finally {\n expect(fp).to.not.equal(null);\n expect(fp.getValue()).to.equal(value);\n expect(error).to.equal(undefined);\n done();\n }\n });\n });\n});\n"]}
1
+ {"version":3,"file":"float32.spec.js","sourceRoot":"","sources":["../../../src/test/properties/float32.spec.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG;AACH,QAAQ,CAAC,SAAS,EAAE;IAClB,IAAI,eAAe,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC;QACL,eAAe,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC,eAAe,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,4CAA4C,EAAE;QACrD,EAAE,CAAC,8BAA8B,EAAE,UAAS,IAAI;YAC9C,IAAI,EAAE,CAAC;YACP,IAAI,KAAK,CAAC;YACV,MAAM,KAAK,GAAG,GAAG,CAAC;YAClB,IAAI;gBACF,EAAE,GAAG,IAAI,eAAe,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;gBAChD,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;aACpB;YAAC,OAAO,CAAC,EAAE;gBACV,KAAK,GAAG,CAAC,CAAC;aACX;oBAAS;gBACR,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC9B,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBAClC,IAAI,EAAE,CAAC;aACR;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * @fileoverview In this file, we will test Float32\n * object described in /src/properties/float32.js\n */\ndescribe('Float32', function() {\n var Float32Property;\n\n /**\n * Get all the objects we need in this test here.\n */\n before(function() {\n Float32Property = require('../../properties/floatProperties').Float32Property;\n });\n\n describe('Checking the value stored in ValueProperty', function() {\n it('should return the same value', function(done) {\n var fp;\n var error;\n const value = 100;\n try {\n fp = new Float32Property({ id: 'temperature' });\n fp.setValue(value);\n } catch (e) {\n error = e;\n } finally {\n expect(fp).to.not.equal(null);\n expect(fp.getValue()).to.equal(value);\n expect(error).to.equal(undefined);\n done();\n }\n });\n });\n});\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- /* eslint-disable no-unused-expressions*/
5
+ /* eslint-disable no-unused-expressions */
6
6
  /**
7
7
  * @fileoverview In this file, we will test the Int64ArrayProperty
8
8
  * object described in /src/properties/arrayProperty.js
@@ -22,8 +22,8 @@ describe('Int64ArrayProperty', function () {
22
22
  var SimpleInt64TestPropertyTemplate = {
23
23
  typeid: 'autodesk.tests:SimpleInt64TestProperty-1.0.0',
24
24
  properties: [
25
- { id: 'int64Property', typeid: 'Int64', context: 'array' }
26
- ]
25
+ { id: 'int64Property', typeid: 'Int64', context: 'array' },
26
+ ],
27
27
  };
28
28
  PropertyFactory._reregister(SimpleInt64TestPropertyTemplate);
29
29
  myInt64Prop = PropertyFactory.create('Int64', 'array');
@@ -79,7 +79,7 @@ describe('Int64ArrayProperty', function () {
79
79
  removalChangeSet = myInt64Prop.serialize({
80
80
  'dirtyOnly': true,
81
81
  'includeRootTypeid': false,
82
- 'dirtinessType': BaseProperty.MODIFIED_STATE_FLAGS.DIRTY
82
+ 'dirtinessType': BaseProperty.MODIFIED_STATE_FLAGS.DIRTY,
83
83
  });
84
84
  expect(removalChangeSet).to.have.all.keys(['remove']);
85
85
  expect(removalChangeSet.remove).to.have.length(1);
@@ -111,7 +111,7 @@ describe('Int64ArrayProperty', function () {
111
111
  t.cleanDirty();
112
112
  t.push(new Int64(4, 5));
113
113
  expect(t.serialize({ 'dirtyOnly': true })).to.deep.equal({
114
- 'insert': [[2, [[4, 5]]]]
114
+ 'insert': [[2, [[4, 5]]]],
115
115
  });
116
116
  });
117
117
  it('Should handle modifies correctly', function () {
@@ -120,7 +120,7 @@ describe('Int64ArrayProperty', function () {
120
120
  t.cleanDirty();
121
121
  t.set(1, new Int64(4, 5));
122
122
  expect(t.serialize({ 'dirtyOnly': true })).to.deep.equal({
123
- 'modify': [[1, [[4, 5]]]]
123
+ 'modify': [[1, [[4, 5]]]],
124
124
  });
125
125
  });
126
126
  });
@@ -182,12 +182,12 @@ describe('Int64ArrayProperty', function () {
182
182
  callbacks: [insertInt64Value, insertInt64Value, removeArrayElement, removeArrayElement],
183
183
  post: function (changeset) {
184
184
  expect(changeset).to.be.empty;
185
- }
185
+ },
186
186
  });
187
187
  });
188
188
  it('should work for mixed modifies and inserts', function () {
189
189
  testChangeSetSquashing({
190
- callbacks: [insertInt64Value, modifyInt64Value, insertInt64Value, modifyInt64Value]
190
+ callbacks: [insertInt64Value, modifyInt64Value, insertInt64Value, modifyInt64Value],
191
191
  });
192
192
  });
193
193
  it('an insert, modify and a remove should give an empty changeset', function () {
@@ -195,13 +195,13 @@ describe('Int64ArrayProperty', function () {
195
195
  callbacks: [insertInt64Value, modifyInt64Value, removeArrayElement],
196
196
  post: function (changeset) {
197
197
  expect(changeset).to.be.empty;
198
- }
198
+ },
199
199
  });
200
200
  });
201
201
  it('work for modifies after an already existing insert', function () {
202
202
  testChangeSetSquashing({
203
203
  pre: insertInt64Value,
204
- callbacks: [modifyInt64Value, modifyInt64Value]
204
+ callbacks: [modifyInt64Value, modifyInt64Value],
205
205
  });
206
206
  });
207
207
  it('of modify and remove after an already existing insert should work', function () {
@@ -210,7 +210,7 @@ describe('Int64ArrayProperty', function () {
210
210
  callbacks: [modifyInt64Value, removeArrayElement],
211
211
  post: function (changeset) {
212
212
  expect(changeset['array<Int64>'].int64Property).to.have.all.keys('remove');
213
- }
213
+ },
214
214
  });
215
215
  });
216
216
  });
@@ -291,14 +291,14 @@ describe('Int64ArrayProperty', function () {
291
291
  it('with a NOP should be possible', function () {
292
292
  testRebasing({
293
293
  op2: insertInt64Value,
294
- compareToSequential: true
294
+ compareToSequential: true,
295
295
  });
296
296
  });
297
297
  it('with independent inserts should be possible', function () {
298
298
  testRebasing({
299
299
  op1: insertInt64Value,
300
300
  op2: insertInt64Value,
301
- compareToSequential: true
301
+ compareToSequential: true,
302
302
  });
303
303
  });
304
304
  it('with independent removes should be possible', function () {
@@ -313,7 +313,7 @@ describe('Int64ArrayProperty', function () {
313
313
  op2: function (root) {
314
314
  root.removeRange(0, 1);
315
315
  },
316
- compareToSequential: true
316
+ compareToSequential: true,
317
317
  });
318
318
  });
319
319
  it('with a modify and a remove should possible', function () {
@@ -321,7 +321,7 @@ describe('Int64ArrayProperty', function () {
321
321
  prepare: insertInt64Value,
322
322
  op1: modifyInt64Value,
323
323
  op2: removeArrayElement,
324
- compareToSequential: true
324
+ compareToSequential: true,
325
325
  });
326
326
  });
327
327
  it('with a remove and a modify should possible', function () {
@@ -334,7 +334,7 @@ describe('Int64ArrayProperty', function () {
334
334
  expect(conflicts).to.have.length(1);
335
335
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.ENTRY_MODIFIED_AFTER_REMOVE);
336
336
  expect(conflicts[0].path).to.be.equal('int64Property');
337
- }
337
+ },
338
338
  });
339
339
  });
340
340
  it('with two compatible removes should be possible', function () {
@@ -345,7 +345,7 @@ describe('Int64ArrayProperty', function () {
345
345
  compareToSequential: false,
346
346
  checkResult: function (conflicts, changeSet) {
347
347
  expect(ChangeSet.isEmptyChangeSet(changeSet)).to.be.ok;
348
- }
348
+ },
349
349
  });
350
350
  });
351
351
  it('with two independent modifies should be possible', function () {
@@ -360,7 +360,7 @@ describe('Int64ArrayProperty', function () {
360
360
  compareToSequential: true,
361
361
  checkResult: function (conflicts, changeSet) {
362
362
  expect(conflicts).to.be.empty;
363
- }
363
+ },
364
364
  });
365
365
  });
366
366
  it('with two conflicting modifies should be possible and report a conflict', function () {
@@ -376,7 +376,7 @@ describe('Int64ArrayProperty', function () {
376
376
  expect(changeSet['array<Int64>'].int64Property.modify[0][1]).to.deep.equal([[0, 2]]);
377
377
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.COLLIDING_SET);
378
378
  expect(conflicts[0].path).to.be.equal('int64Property');
379
- }
379
+ },
380
380
  });
381
381
  });
382
382
  it('with modify followed by remove+insert should work', function () {
@@ -393,7 +393,7 @@ describe('Int64ArrayProperty', function () {
393
393
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.REMOVE_AFTER_MODIFY);
394
394
  expect(conflicts[0].path).to.be.equal('int64Property');
395
395
  expect(changeSet['array<Int64>'].int64Property).to.have.all.keys('remove', 'insert');
396
- }
396
+ },
397
397
  });
398
398
  });
399
399
  it('with remove + insert followed by modify should report conflict', function () {
@@ -409,7 +409,7 @@ describe('Int64ArrayProperty', function () {
409
409
  expect(conflicts).to.have.length(1);
410
410
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.ENTRY_MODIFIED_AFTER_REMOVE);
411
411
  expect(conflicts[0].path).to.be.equal('int64Property');
412
- }
412
+ },
413
413
  });
414
414
  });
415
415
  it('with conflicting inserts should report conflict', function () {
@@ -422,7 +422,7 @@ describe('Int64ArrayProperty', function () {
422
422
  expect(conflicts).to.have.length(1);
423
423
  expect(conflicts[0].type).to.be.equal(ChangeSet.ConflictType.INSERTED_ENTRY_WITH_SAME_KEY);
424
424
  expect(conflicts[0].path).to.be.equal('int64Property');
425
- }
425
+ },
426
426
  });
427
427
  });
428
428
  });