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
33
sh/tests/cases/005_no_gutter.html
Normal file
33
sh/tests/cases/005_no_gutter.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<pre id="sh_005_no_gutter" class="brush: java; gutter: false;">
|
||||
public Image getImage(URL url, String name) {
|
||||
try {
|
||||
/*
|
||||
Regular multiline comment.
|
||||
*/
|
||||
return getImage(new URL(url, name));
|
||||
} catch (MalformedURLException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<script type="text/javascript">
|
||||
queue(function()
|
||||
{
|
||||
var $sh;
|
||||
|
||||
module('005_no_gutter');
|
||||
|
||||
test('check that there is no gutter', function()
|
||||
{
|
||||
$sh = $('#sh_005_no_gutter');
|
||||
|
||||
ok_sh($sh);
|
||||
ok_toolbar($sh);
|
||||
ok_code($sh);
|
||||
|
||||
ok($sh.find('> .syntaxhighlighter.nogutter').length == 1, '.nogutter present');
|
||||
ok($sh.find('> .syntaxhighlighter > table > tbody > tr > .gutter').length == 0, 'Gutter not present');
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue