Rename mainrow.

This commit is contained in:
Lars Jung 2015-04-29 19:47:37 +02:00
parent 96b6ff7fff
commit 7704a00d7b
8 changed files with 16 additions and 16 deletions

View file

@ -59,16 +59,16 @@ describe('view', function () {
assert.lengthOf($('#fallback-hints'), 0);
});
it('adds HTML #main-row to #root', function () {
it('adds HTML #mainrow to #root', function () {
modulejs.require('view/viewmode');
assert.lengthOf($('#root > #main-row'), 1);
assert.lengthOf($('#root > #mainrow'), 1);
});
it('adds HTML #content to #main-row', function () {
it('adds HTML #content to #mainrow', function () {
modulejs.require('view/viewmode');
assert.lengthOf($('#main-row > #content'), 1);
assert.lengthOf($('#mainrow > #content'), 1);
});
it('adds HTML #view to #content', function () {

View file

@ -50,7 +50,7 @@ describe('module \'' + ID + '\'', function () {
beforeEach(function () {
util.restoreHtml();
this.xMainrow.$el = $('<div id="main-row"/>').appendTo('body');
this.xMainrow.$el = $('<div id="mainrow"/>').appendTo('body');
});
describe('definition', function () {
@ -95,10 +95,10 @@ describe('module \'' + ID + '\'', function () {
assert.lengthOfKeys(instance, 3);
});
it('adds HTML #content to #main-row', function () {
it('adds HTML #content to #mainrow', function () {
this.applyFn();
assert.lengthOf($('#main-row > #content'), 1);
assert.lengthOf($('#mainrow > #content'), 1);
});
it('adds HTML #view to #content', function () {

View file

@ -70,22 +70,22 @@ describe('module \'' + ID + '\'', function () {
assert.lengthOfKeys(instance, 1);
});
it('adds HTML #main-row to #root', function () {
it('adds HTML #mainrow to #root', function () {
this.applyFn();
assert.lengthOf($('#root > #main-row'), 1);
assert.lengthOf($('#root > #mainrow'), 1);
});
});
describe('.$el', function () {
it('is $(\'#main-row\')', function () {
it('is $(\'#mainrow\')', function () {
var instance = this.applyFn();
assert.isObject(instance.$el);
assert.lengthOf(instance.$el, 1);
assert.isString(instance.$el.jquery);
assert.strictEqual(instance.$el.attr('id'), 'main-row');
assert.strictEqual(instance.$el.attr('id'), 'mainrow');
});
});
});

View file

@ -40,7 +40,7 @@ describe('module \'' + ID + '\'', function () {
beforeEach(function () {
util.restoreHtml();
this.xMainrow.$el = $('<div id="main-row"/>').appendTo('body');
this.xMainrow.$el = $('<div id="mainrow"/>').appendTo('body');
this.xTopbar.$toolbar = $('<div id="toolbar"/>').appendTo('body');
});