mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-24 19:47:11 -07:00
35 lines
No EOL
621 B
HTML
35 lines
No EOL
621 B
HTML
<script id="sh_012_server_side_input" type="text/plain">
|
|
function helloWorld()
|
|
{
|
|
// this is great!
|
|
for(var i = 0; i <= 1; i++)
|
|
alert("yay");
|
|
}
|
|
</script>
|
|
|
|
<div id="sh_012_server_side_output">
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
queue(function()
|
|
{
|
|
var $sh;
|
|
|
|
module('012_server_side');
|
|
|
|
test('generate markup', function()
|
|
{
|
|
var brush = new SyntaxHighlighter.brushes.JScript(),
|
|
code = $('#sh_012_server_side_input').html()
|
|
;
|
|
|
|
brush.init({ toolbar: false });
|
|
$sh = $('#sh_012_server_side_output');
|
|
$sh.html(brush.getHtml(code));
|
|
|
|
ok_sh($sh);
|
|
ok_gutter($sh);
|
|
ok_code($sh);
|
|
});
|
|
});
|
|
</script> |