aboutsummaryrefslogtreecommitdiff
blob: 1bb421737a669150e9707775295e2a9b2203c00f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<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>
Powered by cgit v1.2.3 (git 2.41.0)