source: Dev/trunk/src/client/util/buildscripts/tests/css/flattenTest.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 617 bytes
Line 
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
7load("../../jslib/logger.js");
8load("../../jslib/buildUtil.js");
9load("../../jslib/fileUtil.js");
10
11var 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
15var result = buildUtil.optimizeCss("temp", "comments");
16*/
17
18print(result);
Note: See TracBrowser for help on using the repository browser.