aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2014-09-23 22:34:14 +0800
committerJinwei Zhao <[email protected]>2017-01-13 15:07:44 +0800
commitb214f38d2c24a890ce36512a0c8bab965e27a508 (patch)
tree1522b651444407cbf120798e79be4657f1b472ab /Code/Blocks/syntax/tests/cases/001_basic.html
parente13882d1656b143533cec307a19425e0a56ec999 (diff)
downloadjinwei.me-b214f38d2c24a890ce36512a0c8bab965e27a508.tar.gz
README
Diffstat (limited to 'Code/Blocks/syntax/tests/cases/001_basic.html')
-rw-r--r--Code/Blocks/syntax/tests/cases/001_basic.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/Code/Blocks/syntax/tests/cases/001_basic.html b/Code/Blocks/syntax/tests/cases/001_basic.html
new file mode 100644
index 0000000..1d57334
--- /dev/null
+++ b/Code/Blocks/syntax/tests/cases/001_basic.html
@@ -0,0 +1,42 @@
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>
Powered by cgit v1.2.3 (git 2.41.0)