aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2014-08-22 17:23:02 +0800
committerJinwei Zhao <[email protected]>2017-01-13 15:07:42 +0800
commit80255411ee7040e0cebbf6b05d2ce323f6f2596e (patch)
tree295b0ef6c85e7cb091b63719ab041596879690fa /Blocks/syntax/tests/cases/007_collapse_interaction.html
parent13be3d058713e1467ffc573a90cc694b80526135 (diff)
downloadjinwei.me-80255411ee7040e0cebbf6b05d2ce323f6f2596e.tar.gz
backup
Diffstat (limited to 'Blocks/syntax/tests/cases/007_collapse_interaction.html')
-rw-r--r--Blocks/syntax/tests/cases/007_collapse_interaction.html44
1 files changed, 0 insertions, 44 deletions
diff --git a/Blocks/syntax/tests/cases/007_collapse_interaction.html b/Blocks/syntax/tests/cases/007_collapse_interaction.html
deleted file mode 100644
index ea72046..0000000
--- a/Blocks/syntax/tests/cases/007_collapse_interaction.html
+++ /dev/null
@@ -1,44 +0,0 @@
1<script type="text/javascript">
2queue(function()
3{
4 var $sh;
5
6 module('007_collapse_interaction');
7
8 function clickA($a)
9 {
10 SyntaxHighlighter.toolbar.handler({
11 target: $a[0],
12 preventDefault: function() {}
13 });
14 };
15
16 test('expand collapsed block with title', function()
17 {
18 $sh = $('#sh_007_collapse_a');
19
20 ok_sh($sh);
21 ok_toolbar($sh);
22 ok_collapsed($sh);
23
24 var $a = $sh.find('.toolbar a.toolbar_item.command_expandSource');
25 clickA($a);
26 ok($a.not(':visible'), 'Expand not visible');
27 ok_code($sh);
28 });
29
30 test('expand collapsed block without title', function()
31 {
32 $sh = $('#sh_007_collapse_b');
33
34 ok_sh($sh);
35 ok_toolbar($sh);
36 ok_collapsed($sh);
37
38 var $a = $sh.find('.toolbar a.toolbar_item.command_expandSource');
39 clickA($a);
40 ok($a.not(':visible'), 'Expand not visible');
41 ok_code($sh);
42 });
43});
44</script>
Powered by cgit v1.2.3 (git 2.41.0)