/pigeoncms/Plugins/syntaxhighlighter/tests/cases/008_first_line.html

http://pigeoncms.googlecode.com/ · HTML · 29 lines · 25 code · 4 blank · 0 comment · 0 complexity · 2d1827c846fb12e57f1d1d79e6a5058a MD5 · raw file

  1. <pre id="sh_008_first_line" class="brush: java; first-line: 10">
  2. partial class Foo
  3. {
  4. function test()
  5. {
  6. yield return;
  7. }
  8. }
  9. </pre>
  10. <script type="text/javascript">
  11. queue(function()
  12. {
  13. var $sh;
  14. module('008_first_line');
  15. test('check the first line', function()
  16. {
  17. $sh = $('#sh_008_first_line');
  18. ok_sh($sh);
  19. ok_toolbar($sh);
  20. ok_gutter($sh);
  21. ok_code($sh);
  22. equals($sh.find('.gutter .index0').text(), '10', 'First line');
  23. });
  24. });
  25. </script>