When fuzz testing the State wrapper with phet-io-wrappers/state/?sim=fourier-making-waves&phetioDebug&fuzz, this error occurs:
assert.js:25 Uncaught Error: Assertion failed: Property value not valid: value failed isValidValue: 5
at window.assertions.assertFunction (assert.js:25:13)
at Function.isValueValid (ValidatorDef.ts:326:39)
at validate (validate.ts:37:18)
at Property.ts:183:34
at TinyProperty.emit (TinyEmitter.ts:93:9)
at ZoomLevelProperty._notifyListeners (Property.ts:285:23)
at ZoomLevelProperty.set (Property.ts:217:14)
at ZoomLevelProperty.set value [as value] (Property.ts:355:10)
at listener (ZoomButtonGroup.ts:80:9)
at TinyEmitter.emit (TinyEmitter.ts:93:9)
Some problems:
[x] ZoomLevelProperty is not instrumented.
[x] In ZoomLevelProperty constructor, option isValidValue is not needed, that should be handled by option range:
super( axisDescriptions.indexOf( axisDescriptionProperty.value ), {
range: new Range( 0, axisDescriptions.length - 1 ),
isValidValue: value => value >= 0 && value < axisDescriptions.length
} );
[x] ZoomLevelProperty should have option numberType: 'Integer'.
When fuzz testing the State wrapper with
phet-io-wrappers/state/?sim=fourier-making-waves&phetioDebug&fuzz
, this error occurs:Some problems:
[x] ZoomLevelProperty is not instrumented.
[x] In ZoomLevelProperty constructor, option
isValidValue
is not needed, that should be handled by optionrange
:numberType: 'Integer'
.