Debian Codegraph @

util/buildscripts/tests/css/flattenTest.js

raw symbols SCIP
1 //Test file for the flattening of CSS files.
2 //Run this file from the util/buildscripts/tests/css directory.
3
4 //Example call to run the test:
5 //java -classpath ../../../shrinksafe/js.jar org.mozilla.javascript.tools.shell.Main flattenTest.js
6
7 load("../../jslib/logger.js");
8 load("../../jslib/buildUtil.js");
9 load("../../jslib/fileUtil.js");
10
11 var result = buildUtil.flattenCss( "blue/one.css", fileUtil.readFile("blue/one.css"));
12
13 /* Copy the blue folder to a folder called temp then try this command
14 (warning, it modifies the folder contents
15 var result = buildUtil.optimizeCss("temp", "comments");
16 */
17
18 print(result);