/lib/syntaxhighlighter_3.0.83/tests/cases/005_no_gutter.html

# · HTML · 33 lines · 28 code · 5 blank · 0 comment · 0 complexity · d4fd3a35e443e21ff799a3afc6fefa54 MD5 · raw file

  1. <pre id="sh_005_no_gutter" class="brush: java; gutter: false;">
  2. public Image getImage(URL url, String name) {
  3. try {
  4. /*
  5. Regular multiline comment.
  6. */
  7. return getImage(new URL(url, name));
  8. } catch (MalformedURLException e) {
  9. return null;
  10. }
  11. }
  12. </pre>
  13. <script type="text/javascript">
  14. queue(function()
  15. {
  16. var $sh;
  17. module('005_no_gutter');
  18. test('check that there is no gutter', function()
  19. {
  20. $sh = $('#sh_005_no_gutter');
  21. ok_sh($sh);
  22. ok_toolbar($sh);
  23. ok_code($sh);
  24. ok($sh.find('> .syntaxhighlighter.nogutter').length == 1, '.nogutter present');
  25. ok($sh.find('> .syntaxhighlighter > table > tbody > tr > .gutter').length == 0, 'Gutter not present');
  26. });
  27. });
  28. </script>