diff --git a/simple-test/01-import_and_map/_vars.scss b/simple-test/01-import_and_map/_vars.scss new file mode 100644 index 0000000000000000000000000000000000000000..a0def68dae4245be29260b13c182b40d0a7249b6 --- /dev/null +++ b/simple-test/01-import_and_map/_vars.scss @@ -0,0 +1,2 @@ + +$link-color: magenta; diff --git a/simple-test/01-import_and_map/input.scss b/simple-test/01-import_and_map/input.scss new file mode 100644 index 0000000000000000000000000000000000000000..66312a89a9244ee70f929f9f955a7066f53252c9 --- /dev/null +++ b/simple-test/01-import_and_map/input.scss @@ -0,0 +1,6 @@ + +@import 'vars'; + +a { + color: $link-color; +} diff --git a/simple-test/01-import_and_map/test.pike b/simple-test/01-import_and_map/test.pike new file mode 100644 index 0000000000000000000000000000000000000000..7c128090e5842288743e9c3cd5f6c862b20a9cb3 --- /dev/null +++ b/simple-test/01-import_and_map/test.pike @@ -0,0 +1,18 @@ +inherit "../test.pike"; + +constant BASE = __DIR__; + +int run() +{ + werror("Run in test: %s\n", basename(BASE)); + + compiler->set_options(([ + "source_map_file" : combine_path(BASE, "output.source.map"), + "omit_source_map" : false + ])); + + mixed err = catch { + compiler->compile_file(combine_path(BASE, "input.scss"), + combine_path(BASE, "output.css")); + }; +} diff --git a/simple-test/test.pike b/simple-test/test.pike new file mode 100644 index 0000000000000000000000000000000000000000..1c9d5ffd1a7c03febb82619be104bfd1cbe26075 --- /dev/null +++ b/simple-test/test.pike @@ -0,0 +1,21 @@ + +protected Tools.Sass.SCSS compiler; + +constant BASE = __DIR__; + +int main(int argc, array(string) argv) +{ + compiler = Tools.Sass.SCSS(); + compiler->set_options(([ + "output_style" : Tools.Sass.STYLE_EXPANDED + ])); + + run(); + + return 0; +} + +int run() +{ + error("Method run() not implemented!\n"); +}