forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.dropotron-tests.ts
42 lines (39 loc) · 1.18 KB
/
jquery.dropotron-tests.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="jquery.dropotron.d.ts" />
/**
* @summary Test for "dropotron" without configurations.
*/
function testDropotron() {
var foo: JQuery = $('#main-nav > ul');
foo.dropotron();
}
/**
* @summary Test for "dropotron" with configurations.
*/
function testDropotronConfiguration() {
var config: DropotronConfiguration = {
selectorParent: null,
baseZIndex: 1000,
menuClass: 'dropotron',
expandMode: 'hover',
hoverDelay: 150,
hideDelay: 250,
openerClass: 'opener',
openerActiveClass: 'active',
submenuClassPrefix: 'level-',
mode: 'fade',
speed: 'fast',
easing: 'swing',
alignment: 'left',
offsetX: 0,
offsetY: 0,
globalOffsetY: 0,
IEOffsetX: 0,
IEOffsetY: 0,
noOpenerFade: true,
detach: true,
cloneOnDetach: true
};
var foo: JQuery = $('#main-nav > ul');
foo.dropotron(config);
}