summaryrefslogtreecommitdiff
path: root/test/scaladoc/javascript/test-index.js
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-04-20 14:37:39 +0000
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-04-20 14:37:39 +0000
commitb477d7389bba6d53f18f9ea3defd445013f24df3 (patch)
tree58265a26bbc8288e37c08e54d8e8238d6782f23e /test/scaladoc/javascript/test-index.js
parent5485932c5a822c2761682326381217697eb2ae4e (diff)
downloadscala-b477d7389bba6d53f18f9ea3defd445013f24df3.tar.gz
scala-b477d7389bba6d53f18f9ea3defd445013f24df3.tar.bz2
scala-b477d7389bba6d53f18f9ea3defd445013f24df3.zip
[scaladoc] kindFilter should switch show/hide a...
[scaladoc] kindFilter should switch show/hide anchor of package. Closes #4463. Review by malayeri.
Diffstat (limited to 'test/scaladoc/javascript/test-index.js')
-rw-r--r--test/scaladoc/javascript/test-index.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/scaladoc/javascript/test-index.js b/test/scaladoc/javascript/test-index.js
new file mode 100644
index 0000000000..121366c931
--- /dev/null
+++ b/test/scaladoc/javascript/test-index.js
@@ -0,0 +1,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);
+});