diff options
author | Jinwei Zhao <[email protected]> | 2015-12-19 22:24:42 +0900 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-13 15:07:45 +0800 |
commit | dbcebe1def5c355120c61b575390d1d9ac355f67 (patch) | |
tree | 70e61cc34a690c63ff80962e9ef883fe69dba6d3 /Code/Blocks/syntax/tests/commonjs_tests.js | |
parent | 7e473afdca63f0ceed5d895c3be3b43f213ca136 (diff) | |
download | jinwei.me-dbcebe1def5c355120c61b575390d1d9ac355f67.tar.gz |
clear up
Diffstat (limited to 'Code/Blocks/syntax/tests/commonjs_tests.js')
-rw-r--r-- | Code/Blocks/syntax/tests/commonjs_tests.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Code/Blocks/syntax/tests/commonjs_tests.js b/Code/Blocks/syntax/tests/commonjs_tests.js deleted file mode 100644 index cda8162..0000000 --- a/Code/Blocks/syntax/tests/commonjs_tests.js +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /** | ||
2 | * This is a CommonJS compatibility test. You can run this file with node. | ||
3 | */ | ||
4 | require.paths.unshift(__dirname + '/../scripts'); | ||
5 | |||
6 | var sys = require('sys'), | ||
7 | shSyntaxHighlighter = require('shCore').SyntaxHighlighter, | ||
8 | code = 'test', | ||
9 | brushes = [ | ||
10 | 'AS3', | ||
11 | 'AppleScript', | ||
12 | 'Bash', | ||
13 | 'CSharp', | ||
14 | 'ColdFusion', | ||
15 | 'Cpp', | ||
16 | 'Css', | ||
17 | 'Delphi', | ||
18 | 'Diff', | ||
19 | 'Erlang', | ||
20 | 'Groovy', | ||
21 | 'JScript', | ||
22 | 'Java', | ||
23 | 'JavaFX', | ||
24 | 'Perl', | ||
25 | 'Php', | ||
26 | 'Plain', | ||
27 | 'PowerShell', | ||
28 | 'Python', | ||
29 | 'Ruby', | ||
30 | 'Sass', | ||
31 | 'Scala', | ||
32 | 'Sql', | ||
33 | 'Vb', | ||
34 | 'Xml' | ||
35 | ] | ||
36 | ; | ||
37 | |||
38 | brushes.sort(); | ||
39 | |||
40 | for (var i = 0; i < brushes.length; i++) | ||
41 | { | ||
42 | var name = brushes[i], | ||
43 | brush = require('shBrush' + name).Brush | ||
44 | ; | ||
45 | |||
46 | brush = new brush(); | ||
47 | brush.init({ toolbar: false }); | ||
48 | |||
49 | var result = brush.getHtml(code); | ||
50 | |||
51 | sys.puts(name + (result != null ? ': ok' : ': NOT OK')); | ||
52 | } | ||