LzFocus.setFocus(this,false); classroot.toggle() this.setBGColor(0xCCCCCC); this.setBGColor(0xCCCCCC); this.setBGColor(0xEEEEEE); this.setBGColor(0xAAAAAA); scbox.setValue(3); assertEquals(3, scbox.getValue() ); scbox.setValue(2); assertEquals( 2, scbox.getValue() ); scbox._updateSelectionByIndex( -1, false, false); // Changing the selection to -1 should make the value become undefined, or null, // but it shouldn't just keep the same value as before. assertFalse( 2 == scbox.getValue() ); scbox.setValue(3); scbox.selectItemAt(1); assertEquals(2, scbox.getValue()); scbox.setValue(3); scbox.selectItemAt(-1); assertEquals('', scbox.getValue() );