8398c9048d
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
21 lines
414 B
JavaScript
21 lines
414 B
JavaScript
//Test file for the conditional comment inclusion/exclusion code.
|
|
//Run this file from the util/buildscripts/tests directory.
|
|
|
|
load("../jslib/buildUtil.js");
|
|
load("../jslib/fileUtil.js");
|
|
load("../jslib/logger.js");
|
|
|
|
|
|
|
|
|
|
var result = buildUtil.processConditionals(
|
|
"conditionalTest.txt",
|
|
fileUtil.readFile("conditionalTest.txt"),
|
|
{
|
|
loader: "xdomain",
|
|
shouldInclude: true,
|
|
nesting: 1
|
|
}
|
|
);
|
|
|
|
print(result);
|