diff --git a/delegated-ink/requestPresenter-returns-valid-promise.tentative.window.js b/delegated-ink/requestPresenter-returns-valid-promise.tentative.window.js new file mode 100644 index 00000000000000..0a54115ee11ab7 --- /dev/null +++ b/delegated-ink/requestPresenter-returns-valid-promise.tentative.window.js @@ -0,0 +1,11 @@ +test(() => { + assert_implements(typeof navigator.ink !== "undefined", 'ink is not supported'); +}, "navigator needs to support ink to run this test."); + +promise_test(t => { + return promise_rejects_js(t, TypeError, navigator.ink.requestPresenter('bad-type')); +}, "Receive rejected promise for a bad type."); + +promise_test(() => { + return navigator.ink.requestPresenter('delegated-ink-trail'); +}, "Received fulfilled promise for a good type."); \ No newline at end of file