blob: 0b83dd27de7c665c2e81941e65283895732a9a99 (
plain)
1
2
3
4
5
6
7
8
9
10
|
let presenter = navigator.ink.requestPresenter();
let style = { color: "red", diameter: 3 };
let evt = new PointerEvent("pointerdown", {clientX: 10, clientY: 10});
presenter.then( function(p) {
test(() => {
assert_throws_dom("NotAllowedError", function() {
p.updateInkTrailStartPoint(evt, style);
}, "NotAllowedError is expected due to untrusted event.");
}, "Expected a NotAllowedError to be thrown due to untrusted event.");
})
|