summaryrefslogtreecommitdiff
path: root/test/scaladoc/javascript/test-index.js
blob: 121366c9314d7e21d28433e104e2eb18608d0b8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index.PACKAGES = { pkg1: [ { 'class': 'pkg1/Foo.html', name: 'pkg1.Foo' } ] };

asyncTest('Trac #4463 - kindFilter', function () {
    setTimeout(function () {
       start();

       equal($('#tpl ol.templates:visible').size(), 1);

       kindFilter('packs');
       equal($('#tpl ol.templates:visible').size(), 0);
       equal($('#tpl li.pack a.packhide').text(), 'show');

       kindFilter('all');
       equal($('#tpl ol.templates:visible').size(), 1);
       equal($('#tpl li.pack a.packhide').text(), 'hide');
    }, 1000);
});