mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Syntax highlighting.
This commit is contained in:
parent
c11be25ff8
commit
6b7427454a
105 changed files with 17571 additions and 91 deletions
44
sh/tests/cases/007_collapse_interaction.html
Normal file
44
sh/tests/cases/007_collapse_interaction.html
Normal file
|
@ -0,0 +1,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>
|
Loading…
Add table
Add a link
Reference in a new issue