mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
@@ -57,6 +57,7 @@
|
||||
|
||||
/* Disable changing game. */
|
||||
loot.dom.enable('gameMenu', false);
|
||||
loot.dom.enable('refreshContentButton', false);
|
||||
|
||||
this.currentState = State.SORTING_STATE;
|
||||
}
|
||||
@@ -78,6 +79,7 @@
|
||||
|
||||
/* Enable changing game. */
|
||||
loot.dom.enable('gameMenu');
|
||||
loot.dom.enable('refreshContentButton');
|
||||
|
||||
this.currentState = State.DEFAULT_STATE;
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ describe('State', () => {
|
||||
getShown('applySortButton').should.be.true();
|
||||
getShown('cancelSortButton').should.be.true();
|
||||
getEnabled('gameMenu').should.be.false();
|
||||
getEnabled('refreshContentButton').should.be.false();
|
||||
});
|
||||
|
||||
it('should throw an error if called in the editing state', () => {
|
||||
@@ -150,6 +151,7 @@ describe('State', () => {
|
||||
getShown('applySortButton').should.be.true();
|
||||
getShown('cancelSortButton').should.be.true();
|
||||
getEnabled('gameMenu').should.be.false();
|
||||
getEnabled('refreshContentButton').should.be.false();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -166,6 +168,7 @@ describe('State', () => {
|
||||
getShown('applySortButton').should.be.false();
|
||||
getShown('cancelSortButton').should.be.false();
|
||||
getEnabled('gameMenu').should.be.true();
|
||||
getEnabled('refreshContentButton').should.be.true();
|
||||
});
|
||||
|
||||
it('should throw an error if called in the editing state', () => {
|
||||
@@ -186,6 +189,7 @@ describe('State', () => {
|
||||
should(getShown('applySortButton')).be.undefined();
|
||||
should(getShown('cancelSortButton')).be.undefined();
|
||||
should(getEnabled('gameMenu')).be.undefined();
|
||||
should(getEnabled('refreshContentButton')).be.undefined();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user