Update viewmode.

This commit is contained in:
Lars Jung 2015-04-29 16:23:24 +02:00
parent c3803b2e84
commit a5d04198dc
2 changed files with 41 additions and 32 deletions

View file

@ -122,6 +122,15 @@ describe('module \'' + ID + '\'', function () {
this.applyFn();
assert.lengthOf($('head > style'), styleTagCount + 1);
});
it('style contains possibly correct text', function () {
this.applyFn();
var text = $('head > style').eq(0).text();
assert.isTrue(text.indexOf('#view.view-details.view-size-') >= 0);
assert.isTrue(text.indexOf('#view.view-grid.view-size-') >= 0);
assert.isTrue(text.indexOf('#view.view-icons.view-size-') >= 0);
});
});
describe('works', function () {