Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,34 @@
function waitForCompositorCommit() {
return new Promise((resolve) => {
// rAF twice.
window.requestAnimationFrame(() => {
window.requestAnimationFrame(resolve);
});
});
}
function injectInput(touchDiv) {
return new test_driver.Actions()
.addPointer("touch_pointer", "touch")
.pointerMove(0, 0, {origin: touchDiv})
.pointerDown()
.pointerMove(30, 30)
.pointerUp()
.send();
}
function runTest({target, eventName, passive, expectCancelable}) {
let touchDiv = document.getElementById("touchDiv");
let cancelable = null;
let arrived = false;
target.addEventListener(eventName, function (event) {
cancelable = event.cancelable;
arrived = true;
}, {passive});
promise_test(async () => {
await waitForCompositorCommit();
await injectInput(touchDiv);
await waitFor(() => arrived);
assert_equals(cancelable, expectCancelable);
});
}