Bug 1633577 [wpt PR 23278] - Add Blink flag and IDLs for Delegated Ink Trail, a=testonly
authorMario Bianucci <mabian@microsoft.com>
Wed, 13 May 2020 03:55:14 +0000
changeset 530993 00b5c7d1b9d08bf741831035a33c47bac1be2846
parent 530992 9e284d177f1b44043a8c65233f4e039f6f703f01
child 530994 25fc026783f95b3bb7a40d562251169eb0a41be6
push id37435
push userapavel@mozilla.com
push dateWed, 20 May 2020 15:28:23 +0000
treeherdermozilla-central@5415da14ec9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1633577, 23278, 1052145, 2161932, 763903
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1633577 [wpt PR 23278] - Add Blink flag and IDLs for Delegated Ink Trail, a=testonly Automatic update from web-platform-tests Add Blink flag and IDLs for Delegated Ink Trail Create a Blink flag to hide upcoming feature behind, and add skeleton IDLs, .cc and .h files for the feature. TL;DR of feature: Provide developers a simple JS API to improve inking latency. Latency is reduced by forwarding points from browser to GPU process more directly, and then drawing them on the swapchain just before the swap occurs, connecting them to the point most recently rendered by the app. Explainer here: https://github.com/WICG/ink-enhancement i2p: https://groups.google.com/a/chromium.org/d/msg/blink-dev/JeGBzAfR_Bw/Ppo1u7ofBgAJ Bug: 1052145 Change-Id: Ib0e1b1f6c4fbeaee551ca37770dbd72bdeeaa6b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161932 Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by: Daniel Libby <dlibby@microsoft.com> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Mario Bianucci <mabian@microsoft.com> Cr-Commit-Position: refs/heads/master@{#763903} -- wpt-commits: c07deabcfc966cd2a5eade9bde7d826998b1a1cd wpt-pr: 23278
testing/web-platform/tests/delegated-ink/requestPresenter-returns-valid-promise.tentative.window.js
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/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