aboutsummaryrefslogtreecommitdiff
blob: 1d57334c188f55feee5a755a8ce697ed2fe1e40c (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
36
37
38
39
40
41
42
<pre id="sh_001_basic" class="brush: js;" title="Title/caption should render">
	/**
	 * multiline comment 
	 */
	
	text
	
	// single line comment
	
	text
	
	"string" text 'string' text "string"
	"string with \" escape" text 'string with \' escape' text "string with \" escape"
	
	var code = '\
		function helloWorld()\
		{\
			// this is great!\
			for(var i = 0; i &lt;= 1; i++)\
				alert("yay");\
		}\
		';
</pre>

<script type="text/javascript">
queue(function()
{
	var $sh;
	
	module('001_basic');

	test('basic html check of default elements', function()
	{
		$sh = $('#sh_001_basic');
		ok_sh($sh);
		ok_toolbar($sh);
		ok_caption($sh, 'Title/caption should render');
		ok_gutter($sh);
		ok_code($sh);
	});
});
</script>
Powered by cgit v1.2.3 (git 2.41.0)