Skip to content

Commit

Permalink
sun and scenery-phet unit tests to run in brand=phet-io, phetsims/per…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 20, 2020
1 parent ef901e4 commit 618ef1d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/EnabledNodeTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Property from '../../axon/js/Property.js';
import Range from '../../dot/js/Range.js';
import Display from '../../scenery/js/display/Display.js';
import Node from '../../scenery/js/nodes/Node.js';
import Tandem from '../../tandem/js/Tandem.js';
import EnabledNode from './EnabledNode.js';
import HSlider from './HSlider.js';

Expand Down Expand Up @@ -79,14 +80,20 @@ QUnit.test( 'EnabledNode with PDOM', assert => {
} );

QUnit.test( 'EnabledNode in Slider', assert => {
let slider = new HSlider( new Property( 0 ), new Range( 0, 10 ) );
let slider = new HSlider( new Property( 0 ), new Range( 0, 10 ), {
tandem: Tandem.GENERAL.createTandem( 'mySlider' )
} );
testEnabledNode( assert, slider, 'For Slider' );
slider.dispose();

const myEnabledProperty = new BooleanProperty( true );
const myEnabledProperty = new BooleanProperty( true, { tandem: Tandem.GENERAL.createTandem( 'myEnabledProperty' ) } );
slider = new HSlider( new Property( 0 ), new Range( 0, 10 ), {
tandem: Tandem.GENERAL.createTandem( 'mySlider' ),
enabledProperty: myEnabledProperty
} );
testEnabledNode( assert, slider, 'For Slider' );
slider.dispose();
myEnabledProperty.dispose();
} );

/**
Expand Down

0 comments on commit 618ef1d

Please sign in to comment.