mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Started header bar view
This commit is contained in:
13
test/js/views/headerBar.unit.js
Normal file
13
test/js/views/headerBar.unit.js
Normal file
@ -0,0 +1,13 @@
|
||||
describe('HeaderBar View', function() {
|
||||
beforeEach(function() {
|
||||
var h = document.createElement('header');
|
||||
h.innerHTML = '<a class="button">Click</a><h2 class="title">What what what</h2>';
|
||||
h.appendChild('h1');
|
||||
});
|
||||
|
||||
it('Should init', function() {
|
||||
var bar = new ionic.views.HeaderBar({
|
||||
el: h
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user