fix types in tests, add skia backend

This commit is contained in:
Anton Lavrevov
2025-08-10 22:10:55 +09:00
parent d2ecf2064e
commit 8f22d97937
31 changed files with 271 additions and 257 deletions

View File

@@ -551,6 +551,11 @@ describe('Stage', function () {
// ======================================================
it('Should not throw on clip for stage', function () {
// no asserts, because we check throw
const oldWarn = console.warn;
let called = false;
console.warn = function () {
called = true;
};
var stage = addStage({
clipFunc: function () {},
});
@@ -566,6 +571,8 @@ describe('Stage', function () {
layer.add(text);
stage.add(layer);
console.warn = oldWarn;
assert.equal(called, true);
});
// ======================================================