Add panel types
Change-Id: I27692ae25756924993a0b1843d8227fa83c590f8
diff --git a/dev/js/spec/panelSpec.js b/dev/js/spec/panelSpec.js
index e53c464..9799b07 100644
--- a/dev/js/spec/panelSpec.js
+++ b/dev/js/spec/panelSpec.js
@@ -30,6 +30,8 @@
it('should be initializable', function () {
var panel = panelClass.create();
var e = panel.element();
+
+ expect(panel.type).toEqual('base');
expect(e.tagName).toEqual("DIV");
expect(e.classList.contains("panel")).toBeTruthy();
expect(e.firstChild.tagName).toEqual("DIV");
@@ -118,6 +120,7 @@
it('should be initializable', function () {
var show = {};
var result = resultClass.create(show);
+ expect(result.type).toEqual('result');
expect(result.element().children.length).toEqual(2);
expect(result.element().firstChild.children.length).toEqual(0);
});
@@ -201,6 +204,7 @@
// Create pagination class object
var pagination = paginationClass.create();
let list = pagination.actions().element();
+ expect(pagination.type).toEqual('pagination');
expect(list.classList.contains('button-group-list')).toBeTruthy();
expect(list.classList.contains('visible')).toBeFalsy();