aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2014-08-22 17:23:02 +0800
committerJinwei Zhao <[email protected]>2017-01-13 15:07:42 +0800
commit80255411ee7040e0cebbf6b05d2ce323f6f2596e (patch)
tree295b0ef6c85e7cb091b63719ab041596879690fa /Back/Blocks/syntax/tests/cases/012_server_side.html
parent13be3d058713e1467ffc573a90cc694b80526135 (diff)
downloadjinwei.me-80255411ee7040e0cebbf6b05d2ce323f6f2596e.tar.gz
backup
Diffstat (limited to 'Back/Blocks/syntax/tests/cases/012_server_side.html')
-rw-r--r--Back/Blocks/syntax/tests/cases/012_server_side.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/Back/Blocks/syntax/tests/cases/012_server_side.html b/Back/Blocks/syntax/tests/cases/012_server_side.html
new file mode 100644
index 0000000..1bb4217
--- /dev/null
+++ b/Back/Blocks/syntax/tests/cases/012_server_side.html
@@ -0,0 +1,35 @@
1<script id="sh_012_server_side_input" type="text/plain">
2function helloWorld()
3{
4 // this is great!
5 for(var i = 0; i <= 1; i++)
6 alert("yay");
7}
8</script>
9
10<div id="sh_012_server_side_output">
11</div>
12
13<script type="text/javascript">
14queue(function()
15{
16 var $sh;
17
18 module('012_server_side');
19
20 test('generate markup', function()
21 {
22 var brush = new SyntaxHighlighter.brushes.JScript(),
23 code = $('#sh_012_server_side_input').html()
24 ;
25
26 brush.init({ toolbar: false });
27 $sh = $('#sh_012_server_side_output');
28 $sh.html(brush.getHtml(code));
29
30 ok_sh($sh);
31 ok_gutter($sh);
32 ok_code($sh);
33 });
34});
35</script> \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)