zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
<div>
<script id="sh_003_script_tag" type="syntaxhighlighter" class="brush: csharp" title="Title/caption should render"><![CDATA[
    partial class Foo
    {
        function test()
        {
            yield return;
            yield break;
        }
    }
 
    function foo()
    {
        var vector:Vector.<Vector.<String>> = new Vector<Vector.String>>();
    
        for (var i = 0; i < 10; i++)
        {
            /* comments */
        }
    }
]]></script>
</div>
 
<script type="text/javascript">
queue(function()
{
    var $sh;
    
    module('003_script_tag');
 
    test('basic html check of default elements', function()
    {
        $sh = $('#sh_003_script_tag');
        
        ok_sh($sh);
        ok_toolbar($sh);
        ok_caption($sh, 'Title/caption should render');
        ok_gutter($sh);
        ok_code($sh);
    });
});
</script>