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

@ -1,4 +1,4 @@
#main-row { #mainrow {
.flex-row; .flex-row;
flex: 1 1 auto; flex: 1 1 auto;
order: 50; order: 50;

View file

@ -124,7 +124,7 @@ modulejs.define('ext/info', ['_', '$', 'modernizr', 'core/event', 'core/format',
return; return;
} }
var $info = $(template).appendTo('#main-row'); var $info = $(template).appendTo('#mainrow');
$img = $info.find('.icon img'); $img = $info.find('.icon img');
$label = $info.find('.label'); $label = $info.find('.label');
$time = $info.find('.time'); $time = $info.find('.time');

View file

@ -189,7 +189,7 @@ modulejs.define('ext/tree', ['_', '$', 'core/event', 'core/location', 'core/reso
} }
$('<div id="tree"/>') $('<div id="tree"/>')
.appendTo('#main-row') .appendTo('#mainrow')
.on('click', '.indicator', createOnIndicatorClick()); .on('click', '.indicator', createOnIndicatorClick());
$(settingsTemplate) $(settingsTemplate)

View file

@ -1,6 +1,6 @@
modulejs.define('view/mainrow', ['$', 'view/root'], function ($, root) { modulejs.define('view/mainrow', ['$', 'view/root'], function ($, root) {
var template = '<div id="main-row"/>'; var template = '<div id="mainrow"/>';
var $el = $(template).appendTo(root.$el); var $el = $(template).appendTo(root.$el);
return { return {

View file

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

View file

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

View file

@ -70,22 +70,22 @@ describe('module \'' + ID + '\'', function () {
assert.lengthOfKeys(instance, 1); assert.lengthOfKeys(instance, 1);
}); });
it('adds HTML #main-row to #root', function () { it('adds HTML #mainrow to #root', function () {
this.applyFn(); this.applyFn();
assert.lengthOf($('#root > #main-row'), 1); assert.lengthOf($('#root > #mainrow'), 1);
}); });
}); });
describe('.$el', function () { describe('.$el', function () {
it('is $(\'#main-row\')', function () { it('is $(\'#mainrow\')', function () {
var instance = this.applyFn(); var instance = this.applyFn();
assert.isObject(instance.$el); assert.isObject(instance.$el);
assert.lengthOf(instance.$el, 1); assert.lengthOf(instance.$el, 1);
assert.isString(instance.$el.jquery); 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 () { beforeEach(function () {
util.restoreHtml(); 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'); this.xTopbar.$toolbar = $('<div id="toolbar"/>').appendTo('body');
}); });