mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 14:35:18 -04:00
Rename mainrow.
This commit is contained in:
parent
96b6ff7fff
commit
7704a00d7b
8 changed files with 16 additions and 16 deletions
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue