From b214f38d2c24a890ce36512a0c8bab965e27a508 Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 23 Sep 2014 22:34:14 +0800 Subject: README --- Back/Blocks/syntax/tests/commonjs_tests.js | 52 ------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 Back/Blocks/syntax/tests/commonjs_tests.js (limited to 'Back/Blocks/syntax/tests/commonjs_tests.js') diff --git a/Back/Blocks/syntax/tests/commonjs_tests.js b/Back/Blocks/syntax/tests/commonjs_tests.js deleted file mode 100644 index cda8162..0000000 --- a/Back/Blocks/syntax/tests/commonjs_tests.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a CommonJS compatibility test. You can run this file with node. - */ -require.paths.unshift(__dirname + '/../scripts'); - -var sys = require('sys'), - shSyntaxHighlighter = require('shCore').SyntaxHighlighter, - code = 'test', - brushes = [ - 'AS3', - 'AppleScript', - 'Bash', - 'CSharp', - 'ColdFusion', - 'Cpp', - 'Css', - 'Delphi', - 'Diff', - 'Erlang', - 'Groovy', - 'JScript', - 'Java', - 'JavaFX', - 'Perl', - 'Php', - 'Plain', - 'PowerShell', - 'Python', - 'Ruby', - 'Sass', - 'Scala', - 'Sql', - 'Vb', - 'Xml' - ] - ; - -brushes.sort(); - -for (var i = 0; i < brushes.length; i++) -{ - var name = brushes[i], - brush = require('shBrush' + name).Brush - ; - - brush = new brush(); - brush.init({ toolbar: false }); - - var result = brush.getHtml(code); - - sys.puts(name + (result != null ? ': ok' : ': NOT OK')); -} -- cgit v1.2.3