1 <pre id="sh_014_legacy_a" name="code" class="plain">basic check</pre>
2 <pre id="sh_014_legacy_b" name="code" class="plain:nocontrols">no toolbar</pre>
3 <pre id="sh_014_legacy_c" name="code" class="plain:nogutter">no gutter</pre>
4 <pre id="sh_014_legacy_d" name="code" class="plain:collapse">collapsed</pre>
5 <pre id="sh_014_legacy_e" name="code" class="plain:firstline[10]">first line</pre>
7 <script type="text/javascript">
12 dp.SyntaxHighlighter.HighlightAll('code');
16 test('basic check', function()
18 $sh = $('#sh_014_legacy_a');
25 test('no toolbar', function()
27 $sh = $('#sh_014_legacy_b');
31 ok($sh.find('> .syntaxhighlighter > .toolbar').length == 0, 'Toolbar not present');
34 test('no gutter', function()
36 $sh = $('#sh_014_legacy_c');
42 ok($sh.find('> .syntaxhighlighter.nogutter').length == 1, '.nogutter present');
43 ok($sh.find('> .syntaxhighlighter > table > tbody > tr > .gutter').length == 0, 'Gutter not present');
46 test('collapsed check', function()
48 $sh = $('#sh_014_legacy_d');
54 var $title = $sh.find('.toolbar a.toolbar_item.command_expandSource');
55 ok($title.length == 1, 'Expand present');
56 equal($title.text(), SyntaxHighlighter.config.strings.expandSource, 'Expand text');
59 test('first line check', function()
61 $sh = $('#sh_014_legacy_e');
67 equals($sh.find('.gutter .index0').text(), '10', 'First line');