namibia
df0489e1eeeeab5a9bd44e1d84fce49924fe1bac
namibia / public / js / lib / syntaxhighlighter / tests / cases / 007_collapse_interaction.html
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 43 44 |
<script type="text/javascript"> queue(function() { var $sh; module('007_collapse_interaction'); function clickA($a) { SyntaxHighlighter.toolbar.handler({ target: $a[0], preventDefault: function() {} }); }; test('expand collapsed block with title', function() { $sh = $('#sh_007_collapse_a'); ok_sh($sh); ok_toolbar($sh); ok_collapsed($sh); var $a = $sh.find('.toolbar a.toolbar_item.command_expandSource'); clickA($a); ok($a.not(':visible'), 'Expand not visible'); ok_code($sh); }); test('expand collapsed block without title', function() { $sh = $('#sh_007_collapse_b'); ok_sh($sh); ok_toolbar($sh); ok_collapsed($sh); var $a = $sh.find('.toolbar a.toolbar_item.command_expandSource'); clickA($a); ok($a.not(':visible'), 'Expand not visible'); ok_code($sh); }); }); </script> |
Commits for namibiapublic/js/lib/syntaxhighlighter/tests/cases/007_collapse_interaction.html
Revision | Author | Commited | Message |
---|---|---|---|
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |