diff options
author | JinweiClarkChao <[email protected]> | 2014-09-23 22:34:14 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-13 15:07:44 +0800 |
commit | b214f38d2c24a890ce36512a0c8bab965e27a508 (patch) | |
tree | 1522b651444407cbf120798e79be4657f1b472ab /Code/Blocks/syntax/tests/cases/009_class_name.html | |
parent | e13882d1656b143533cec307a19425e0a56ec999 (diff) | |
download | jinwei.me-b214f38d2c24a890ce36512a0c8bab965e27a508.tar.gz |
README
Diffstat (limited to 'Code/Blocks/syntax/tests/cases/009_class_name.html')
-rw-r--r-- | Code/Blocks/syntax/tests/cases/009_class_name.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Code/Blocks/syntax/tests/cases/009_class_name.html b/Code/Blocks/syntax/tests/cases/009_class_name.html new file mode 100644 index 0000000..f2437d5 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/009_class_name.html | |||
@@ -0,0 +1,32 @@ | |||
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"> | ||
15 | queue(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> | ||