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
34
sh/tests/cases/013_html_script.html
Normal file
34
sh/tests/cases/013_html_script.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<pre id="sh_013_html_script" class="brush: groovy; html-script: true">
|
||||
<hello>
|
||||
<%
|
||||
package free.cafekiwi.gotapi;
|
||||
%>
|
||||
</hello>
|
||||
|
||||
<!--
|
||||
Comments here
|
||||
-->
|
||||
<%= print(); %>
|
||||
</pre>
|
||||
|
||||
<script type="text/javascript">
|
||||
queue(function()
|
||||
{
|
||||
var $sh;
|
||||
|
||||
module('013_html_script');
|
||||
|
||||
test('check markup', function()
|
||||
{
|
||||
$sh = $('#sh_013_html_script');
|
||||
|
||||
ok_sh($sh);
|
||||
ok_gutter($sh);
|
||||
ok_code($sh);
|
||||
|
||||
ok($sh.find('.code .number1 > .htmlscript').length > 0, 'Has .htmlscript on line 1');
|
||||
ok($sh.find('.code .number3 > .groovy').length > 0, 'Has .groovy on line 3');
|
||||
ok($sh.find('.code .number10 > .groovy').length > 0, 'Has .groovy on line 10');
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue