We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba5883 commit 069d1e4Copy full SHA for 069d1e4
test/unit/views/modalView.unit.js
@@ -0,0 +1,19 @@
1
+describe('Modal View', function() {
2
+ var h;
3
+ beforeEach(function() {
4
+ m = document.createElement('modal');
5
+ m.innerHTML = '<a class="button">Click</a><h1 class="title">What what what</h1>';
6
+ });
7
+
8
+ it('Should init', function() {
9
+ var mod = new ionic.views.Modal({
10
+ el: m
11
12
+ expect(mod.focusFirstInput).toBe(false);
13
+ expect(mod.unfocusOnHide).toBe(true);
14
+ expect(mod.focusFirstDelay).toBe(600);
15
+ expect(mod.backdropClickToClose).toBe(true);
16
+ expect(mod.hardwareBackButtonClose).toBe(true);
17
18
19
+});
0 commit comments