1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | <pre id="sh_013_html_script" class="brush: groovy; html-script: true"> |
|---|
| 2 | <hello> |
|---|
| 3 | <% |
|---|
| 4 | package free.cafekiwi.gotapi; |
|---|
| 5 | %> |
|---|
| 6 | </hello> |
|---|
| 7 | |
|---|
| 8 | <!-- |
|---|
| 9 | Comments here |
|---|
| 10 | --> |
|---|
| 11 | <%= print(); %> |
|---|
| 12 | </pre> |
|---|
| 13 | |
|---|
| 14 | <script type="text/javascript"> |
|---|
| 15 | queue(function() |
|---|
| 16 | { |
|---|
| 17 | var $sh; |
|---|
| 18 | |
|---|
| 19 | module('013_html_script'); |
|---|
| 20 | |
|---|
| 21 | test('check markup', function() |
|---|
| 22 | { |
|---|
| 23 | $sh = $('#sh_013_html_script'); |
|---|
| 24 | |
|---|
| 25 | ok_sh($sh); |
|---|
| 26 | ok_gutter($sh); |
|---|
| 27 | ok_code($sh); |
|---|
| 28 | |
|---|
| 29 | ok($sh.find('.code .number1 > .htmlscript').length > 0, 'Has .htmlscript on line 1'); |
|---|
| 30 | ok($sh.find('.code .number3 > .groovy').length > 0, 'Has .groovy on line 3'); |
|---|
| 31 | ok($sh.find('.code .number10 > .groovy').length > 0, 'Has .groovy on line 10'); |
|---|
| 32 | }); |
|---|
| 33 | }); |
|---|
| 34 | </script> |
|---|
Note: See
TracBrowser
for help on using the repository browser.