mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Refactor topbar and crumb.
This commit is contained in:
parent
d5a0dce27a
commit
ba315be9e5
7 changed files with 114 additions and 128 deletions
|
@ -83,10 +83,10 @@ describe('module \'' + ID + '\'', function () {
|
|||
assert.lengthOf($('#topbar > #toolbar'), 1);
|
||||
});
|
||||
|
||||
it('adds HTML #crumbbar to #topbar', function () {
|
||||
it('adds HTML #flowbar to #topbar', function () {
|
||||
|
||||
this.applyFn();
|
||||
assert.lengthOf($('#topbar > #crumbbar'), 1);
|
||||
assert.lengthOf($('#topbar > #flowbar'), 1);
|
||||
});
|
||||
|
||||
it('adds HTML #backlink to #topbar', function () {
|
||||
|
@ -139,15 +139,15 @@ describe('module \'' + ID + '\'', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('.$crumbbar', function () {
|
||||
describe('.$flowbar', function () {
|
||||
|
||||
it('is $(\'#crumbbar\')', function () {
|
||||
it('is $(\'#flowbar\')', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.isObject(instance.$crumbbar);
|
||||
assert.lengthOf(instance.$crumbbar, 1);
|
||||
assert.isString(instance.$crumbbar.jquery);
|
||||
assert.strictEqual(instance.$crumbbar.attr('id'), 'crumbbar');
|
||||
assert.isObject(instance.$flowbar);
|
||||
assert.lengthOf(instance.$flowbar, 1);
|
||||
assert.isString(instance.$flowbar.jquery);
|
||||
assert.strictEqual(instance.$flowbar.attr('id'), 'flowbar');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue