diff options
| author | Jacob Thornton <[email protected]> | 2012-01-06 11:07:59 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-06 11:07:59 -0800 |
| commit | 64c8623533752ab155e452335457285fa06c1b70 (patch) | |
| tree | fc0de2594b462c23f804d7e2ab70830e6238acd3 /js/tests | |
| parent | 5cb76037ae70ca26a923750ca9441b04d2fbd6a7 (diff) | |
| parent | 969fbe71504f6a8159688634cce774d7ffc7ac67 (diff) | |
| download | bootstrap-64c8623533752ab155e452335457285fa06c1b70.tar.xz bootstrap-64c8623533752ab155e452335457285fa06c1b70.zip | |
Merge pull request #907 from ansman/2.0-wip
Twipsy now respects custom classes
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/bootstrap-twipsy.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-twipsy.js b/js/tests/unit/bootstrap-twipsy.js index 6623fc026..08512ca97 100644 --- a/js/tests/unit/bootstrap-twipsy.js +++ b/js/tests/unit/bootstrap-twipsy.js @@ -48,4 +48,15 @@ $(function () { ok(!$(".twipsy").length, 'twipsy removed') }) + test("should respect custom classes", function () { + var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>') + .appendTo('#qunit-fixture') + .twipsy({ template: '<div class="twipsy some-class"><div class="twipsy-arrow"/><div class="twipsy-inner"/></div>'}) + .twipsy('show') + + ok($('.twipsy').hasClass('some-class'), 'custom class is present') + twipsy.twipsy('hide') + ok(!$(".twipsy").length, 'twipsy removed') + }) + })
\ No newline at end of file |
