PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/syntaxhighlighter_3.0.83/tests/cases/001_basic.html

#
HTML | 42 lines | 34 code | 8 blank | 0 comment | 0 complexity | 1042e7e2093b147b9b477959ff68a856 MD5 | raw file
 1<pre id="sh_001_basic" class="brush: js;" title="Title/caption should render">
 2	/**
 3	 * multiline comment 
 4	 */
 5	
 6	text
 7	
 8	// single line comment
 9	
10	text
11	
12	"string" text 'string' text "string"
13	"string with \" escape" text 'string with \' escape' text "string with \" escape"
14	
15	var code = '\
16		function helloWorld()\
17		{\
18			// this is great!\
19			for(var i = 0; i &lt;= 1; i++)\
20				alert("yay");\
21		}\
22		';
23</pre>
24
25<script type="text/javascript">
26queue(function()
27{
28	var $sh;
29	
30	module('001_basic');
31
32	test('basic html check of default elements', function()
33	{
34		$sh = $('#sh_001_basic');
35		ok_sh($sh);
36		ok_toolbar($sh);
37		ok_caption($sh, 'Title/caption should render');
38		ok_gutter($sh);
39		ok_code($sh);
40	});
41});
42</script>