summaryrefslogtreecommitdiff
path: root/tests/unit-tests/collapsible/collapsible-tests.js
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2012-09-10 16:57:39 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2012-09-10 16:57:39 +0900
commitb087adb7b7df900f9656425e5cea9dc7abdf935b (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /tests/unit-tests/collapsible/collapsible-tests.js
parent3f08f13c69c30821bcd1a6f1f010395afb8e356a (diff)
downloadweb-ui-fw-b087adb7b7df900f9656425e5cea9dc7abdf935b.tar.gz
web-ui-fw-b087adb7b7df900f9656425e5cea9dc7abdf935b.tar.bz2
web-ui-fw-b087adb7b7df900f9656425e5cea9dc7abdf935b.zip
Export
Diffstat (limited to 'tests/unit-tests/collapsible/collapsible-tests.js')
-rwxr-xr-xtests/unit-tests/collapsible/collapsible-tests.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/unit-tests/collapsible/collapsible-tests.js b/tests/unit-tests/collapsible/collapsible-tests.js
deleted file mode 100755
index 8b98f1cc..00000000
--- a/tests/unit-tests/collapsible/collapsible-tests.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * collapse unit tests
- */
-
-(function ($) {
- module( "collapse test" );
-
- var unit_collapse = function ( widget ) {
- var created_collapse = widget.collapsible(),
- obj_collapse = created_collapse.data( "collapsible" );
-
- ok( created_collapse, "Create" );
-
- /* Check Option */
- equal( obj_collapse.options.expandCueText, " click to expand contents", "Collapsed test -> expandCueText" );
- equal( obj_collapse.options.collapseCueText, " click to collapse contents", "Collapsed test -> collapseCueText" );
- equal( obj_collapse.options.collapsed, true, "Collapsed test -> collapsed" );
- equal( obj_collapse.options.heading, "h1,h2,h3,h4,h5,h6,legend", "Collapsed test -> heading" );
- equal( obj_collapse.options.theme, null, "Collapsed test -> theme" );
- equal( obj_collapse.options.contentTheme, null, "Collapsed test -> contentTheme" );
-
- /* Check event */
- created_collapse.trigger("collpase");
- equal( created_collapse.hasClass("ui-collapsible-collapsed") , true, "API test -> collapse" );
-
- created_collapse.trigger("expand");
- equal( created_collapse.hasClass("ui-collapsible-collapsed") , false, "API test -> expand" );
- };
-
- test( "collapse test", function () {
- unit_collapse( $("#collapsedContent") );
- });
-})(jQuery);