source: tol/TolJava/WebTOLJavaDEMO/web/sh/tests/cases/009_class_name.html @ 9887b93

1941-docker-image-to-testdevel
Last change on this file since 9887b93 was 9887b93, checked in by Humberto Carralero <hacarralero@…>, 15 years ago

Importing TolJava

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3900 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 641 bytes
Line 
1<pre id="sh_009_class_name" class="brush: java; class-name: 'custom class here'">
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
14<script type="text/javascript">
15queue(function()
16{
17        var $sh;
18       
19        module('009_class_name');
20
21        test('check custom classes', function()
22        {
23                $sh = $('#sh_009_class_name');
24               
25                ok_sh($sh);
26                ok_toolbar($sh);
27                ok_gutter($sh);
28                ok_code($sh);
29                ok($sh.find('.syntaxhighlighter').is('.custom.class.here'), 'Check custom classes');
30        });
31});
32</script>
Note: See TracBrowser for help on using the repository browser.