/lib/syntaxhighlighter_3.0.83/tests/cases/001_basic.html
# · HTML · 42 lines · 34 code · 8 blank · 0 comment · 0 complexity · 1042e7e2093b147b9b477959ff68a856 MD5 · raw file
- <pre id="sh_001_basic" class="brush: js;" title="Title/caption should render">
- /**
- * multiline comment
- */
-
- text
-
- // single line comment
-
- text
-
- "string" text 'string' text "string"
- "string with \" escape" text 'string with \' escape' text "string with \" escape"
-
- var code = '\
- function helloWorld()\
- {\
- // this is great!\
- for(var i = 0; i <= 1; i++)\
- alert("yay");\
- }\
- ';
- </pre>
- <script type="text/javascript">
- queue(function()
- {
- var $sh;
-
- module('001_basic');
- test('basic html check of default elements', function()
- {
- $sh = $('#sh_001_basic');
- ok_sh($sh);
- ok_toolbar($sh);
- ok_caption($sh, 'Title/caption should render');
- ok_gutter($sh);
- ok_code($sh);
- });
- });
- </script>