mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 07:16:40 +02:00
Rename mainrow.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#main-row {
|
||||
#mainrow {
|
||||
.flex-row;
|
||||
flex: 1 1 auto;
|
||||
order: 50;
|
||||
|
@@ -124,7 +124,7 @@ modulejs.define('ext/info', ['_', '$', 'modernizr', 'core/event', 'core/format',
|
||||
return;
|
||||
}
|
||||
|
||||
var $info = $(template).appendTo('#main-row');
|
||||
var $info = $(template).appendTo('#mainrow');
|
||||
$img = $info.find('.icon img');
|
||||
$label = $info.find('.label');
|
||||
$time = $info.find('.time');
|
||||
|
@@ -189,7 +189,7 @@ modulejs.define('ext/tree', ['_', '$', 'core/event', 'core/location', 'core/reso
|
||||
}
|
||||
|
||||
$('<div id="tree"/>')
|
||||
.appendTo('#main-row')
|
||||
.appendTo('#mainrow')
|
||||
.on('click', '.indicator', createOnIndicatorClick());
|
||||
|
||||
$(settingsTemplate)
|
||||
|
@@ -1,6 +1,6 @@
|
||||
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);
|
||||
|
||||
return {
|
||||
|
@@ -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 () {
|
||||
|
@@ -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 () {
|
||||
|
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -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');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user