Add minimize() method to views
Change-Id: I2d55d0459374b678b5a4417701c9db9b57af8242
diff --git a/dev/js/spec/pluginSpec.js b/dev/js/spec/pluginSpec.js
index c0d741d..cabeae9 100644
--- a/dev/js/spec/pluginSpec.js
+++ b/dev/js/spec/pluginSpec.js
@@ -201,6 +201,14 @@
widget.resize({ height : 9 });
expect(iframe.style.height).toEqual('9px');
});
+
+ it('should be minimizable', function () {
+ var widget = widgetClass.create("Test", "https://example", 56);
+ var we = widget.element();
+ expect(we.classList.contains('show')).toBeTruthy();
+ widget.minimize();
+ expect(we.classList.contains('show')).toBeFalsy();
+ });
});
describe('KorAP.Plugin.Service', function () {