phetsims / number-line-integers

"Number Line: Integers" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 4 forks source link

CT maxWidth should be null or a positive number #50

Closed KatieWoe closed 5 years ago

KatieWoe commented 5 years ago
number-line-integers : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572579493185:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572579493267:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572579493267:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572579493267:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572579493267:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572600040289:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572600040368:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572600040368:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572600040368:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572600040368:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572603730951:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572603731017:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572603731017:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572603731017:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572603731017:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572619145175:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572619145254:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572619145254:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572619145254:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572619145254:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572579493185:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572579493267:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572579493267:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572579493267:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572579493267:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572579493267:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572600040289:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572600040368:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572600040368:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572600040368:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572600040368:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572600040368:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572603730951:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572603731017:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572603731017:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572603731017:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572603731017:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572603731017:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
number-line-integers : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
Error: Assertion failed: maxWidth should be null (no constraint) or a positive number
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/assert/js/assert.js?bust=1572619145175:22:13)
    at Text.setMaxWidth (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:2462:17)
    at Text.set maxWidth [as maxWidth] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:2474:34)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:4988:25
    at u (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572619145254:5:432)
    at Function.ru (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/sherpa/lib/lodash-4.17.4.min.js?bust=1572619145254:67:656)
    at Text.mutate (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:4975:9)
    at Text.Node [as constructor] (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Node.js?bust=1572619145254:527:12)
    at new Text (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/scenery/js/nodes/Text.js?bust=1572619145254:90:10)
    at new TemperatureSceneView (https://bayes.colorado.edu/continuous-testing/snapshot-1572576518427/number-line-integers/js/explore/view/TemperatureSceneView.js?bust=1572619145254:153:36)
id: Bayes Chrome
Approximately 10/31/2019, 8:48:38 PM
jbphet commented 5 years ago

This was due to a calculation that ended up with a negative width value when trying to determine how much space was available in a panel. I've added a maxWidth that prevents the situation from occurring. Closing.