diff options
Diffstat (limited to 'Code/Blocks/syntax/tests/cases/003_script_tag.html')
-rw-r--r-- | Code/Blocks/syntax/tests/cases/003_script_tag.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Code/Blocks/syntax/tests/cases/003_script_tag.html b/Code/Blocks/syntax/tests/cases/003_script_tag.html new file mode 100644 index 0000000..9b44292 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/003_script_tag.html | |||
@@ -0,0 +1,42 @@ | |||
1 | <div> | ||
2 | <script id="sh_003_script_tag" type="syntaxhighlighter" class="brush: csharp" title="Title/caption should render"><![CDATA[ | ||
3 | partial class Foo | ||
4 | { | ||
5 | function test() | ||
6 | { | ||
7 | yield return; | ||
8 | yield break; | ||
9 | } | ||
10 | } | ||
11 | |||
12 | function foo() | ||
13 | { | ||
14 | var vector:Vector.<Vector.<String>> = new Vector<Vector.String>>(); | ||
15 | |||
16 | for (var i = 0; i < 10; i++) | ||
17 | { | ||
18 | /* comments */ | ||
19 | } | ||
20 | } | ||
21 | ]]></script> | ||
22 | </div> | ||
23 | |||
24 | <script type="text/javascript"> | ||
25 | queue(function() | ||
26 | { | ||
27 | var $sh; | ||
28 | |||
29 | module('003_script_tag'); | ||
30 | |||
31 | test('basic html check of default elements', function() | ||
32 | { | ||
33 | $sh = $('#sh_003_script_tag'); | ||
34 | |||
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> | ||