diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 18:57:36 +0000 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 20:18:42 +0000 |
commit | af8b66c2c368cee8dbd57591a0daa2566f63af96 (patch) | |
tree | f00a61d72895682df8a2ee7cf8f3ec1adec05082 /plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html | |
parent | 8ce564ccfe470c3215547893db488ed6d948d867 (diff) | |
download | nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.tar.gz nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.zip |
the text viewer now does syntax highlighting for code
Diffstat (limited to 'plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html')
-rw-r--r-- | plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html b/plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html new file mode 100644 index 00000000000..c0a1201934d --- /dev/null +++ b/plugins/textviewer/syntaxhighlighter/tests/cases/013_html_script.html @@ -0,0 +1,34 @@ +<pre id="sh_013_html_script" class="brush: groovy; html-script: true"> +<hello> + <% + package free.cafekiwi.gotapi; + %> +</hello> + +<!-- + Comments here +--> +<%= print(); %> +</pre> + +<script type="text/javascript"> +queue(function() +{ + var $sh; + + module('013_html_script'); + + test('check markup', function() + { + $sh = $('#sh_013_html_script'); + + ok_sh($sh); + ok_gutter($sh); + ok_code($sh); + + ok($sh.find('.code .number1 > .htmlscript').length > 0, 'Has .htmlscript on line 1'); + ok($sh.find('.code .number3 > .groovy').length > 0, 'Has .groovy on line 3'); + ok($sh.find('.code .number10 > .groovy').length > 0, 'Has .groovy on line 10'); + }); +}); +</script>
\ No newline at end of file |