PageRenderTime 46ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <pre id="sh_001_basic" class="brush: js;" title="Title/caption should render">
  2. /**
  3. * multiline comment
  4. */
  5. text
  6. // single line comment
  7. text
  8. "string" text 'string' text "string"
  9. "string with \" escape" text 'string with \' escape' text "string with \" escape"
  10. var code = '\
  11. function helloWorld()\
  12. {\
  13. // this is great!\
  14. for(var i = 0; i &lt;= 1; i++)\
  15. alert("yay");\
  16. }\
  17. ';
  18. </pre>
  19. <script type="text/javascript">
  20. queue(function()
  21. {
  22. var $sh;
  23. module('001_basic');
  24. test('basic html check of default elements', function()
  25. {
  26. $sh = $('#sh_001_basic');
  27. ok_sh($sh);
  28. ok_toolbar($sh);
  29. ok_caption($sh, 'Title/caption should render');
  30. ok_gutter($sh);
  31. ok_code($sh);
  32. });
  33. });
  34. </script>