Files
Matthew Dean 432286970a [Needs reviews!] Mega test refactor (#4378)
* Migrate Less to use valid CSS

* Re-organize test structure

* Lots of test refactoring

* More test updates

* Add restructured tests

* WIP

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>

* More fixes to tests

* More test fixes

* All tests passing

* WIP fix tests

* Finished fixing browser tests

* Improve test coverage

* Add debug tests

* Add back debug tests to show equal test coverage

* Fix browser tests

* More test coverage

* Fix sourcemap absolute path for CI

* More source map normalization for Windows

* Fix source map normalization

* Another attempted fix for Windows

---------

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>
2025-12-06 11:28:46 -08:00

41 lines
951 B
Plaintext

// JavaScript evaluation tests
.eval {
js: `42`;
js: `1 + 1`;
js: `"hello world"`;
js: `[1, 2, 3]`;
title: `typeof process.title`;
ternary: `(1 + 1 == 2 ? true : false)`;
multiline: `(function(){var x = 1 + 1;
return x})()`;
}
.scope {
--empty: `+function(){}`;
@foo: 42;
var: `parseInt(this.foo.toJS())`;
escaped: ~`2 + 5 + 'px'`;
}
.vars {
@var: `4 + 4`;
width: @var;
}
.escape-interpol {
@world: "world";
width: ~`"hello" + " " + @{world}`;
}
.arrays {
@ary: 1, 2, 3;
@ary2: 1 2 3;
ary: `@{ary}.join(', ')`;
ary1: `@{ary2}.join(', ')`;
}
.transitions(...) {
@arg: ~`"@{arguments}".replace(/[\[\]]*/g, '')`;
one: @arg; // rounded to integers
two: ~`"@{arguments}"`; // rounded to integers
three: @arguments; // OK
}
.test-rule-tran {
.transitions(opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;);
}