PageRenderTime 13ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/syntaxhighlighter_3.0.83/tests/cases/012_server_side.html

#
HTML | 35 lines | 29 code | 6 blank | 0 comment | 0 complexity | cca4a78ffa4a8780536e324c2c2e34d4 MD5 | raw file
 1<script id="sh_012_server_side_input" type="text/plain">
 2function helloWorld()
 3{
 4	// this is great!
 5	for(var i = 0; i <= 1; i++)
 6		alert("yay");
 7}
 8</script>
 9
10<div id="sh_012_server_side_output">
11</div>
12
13<script type="text/javascript">
14queue(function()
15{
16	var $sh;
17	
18	module('012_server_side');
19
20	test('generate markup', function()
21	{
22		var brush = new SyntaxHighlighter.brushes.JScript(),
23			code = $('#sh_012_server_side_input').html()
24			;
25	
26		brush.init({ toolbar: false });
27		$sh = $('#sh_012_server_side_output');
28		$sh.html(brush.getHtml(code));
29		
30		ok_sh($sh);
31		ok_gutter($sh);
32		ok_code($sh);
33	});
34});
35</script>