Revert "Reland: [shapedetection] Add some shapedetection tests"
This reverts commit 19f78e3e. Reason for revert: consistently fails (via timeout) on the Mac10.11 Tests bot https://ci.chromium.org/p/chromium/builders/ci/Mac10.11%20Tests even since it first landed on this run: https://ci.chromium.org/p/chromium/builders/ci/Mac10.11%20Tests/40038 BUG=979170 Original change's description: > Reland: [shapedetection] Add some shapedetection tests > > The original CL has been reverted because the test > external/wpt/shape-detection/detection-HTMLVideoElement-invalid-state.html > is flaky. > > In the previous CL, the way to create a HTMLVideoElement with 'HAVE_METADATA' > state is wrong, because simply loading a video file its readyState should > be >= HAVE_METADATA during loadedmetadata event. Which is the reason of the flaky. > > This reland CL leverages MediaSource API to precisely trigger a transition > to HAVE_METADATA state by invoking `appendBuffer()` with an initialization segment. > > See relevant spec: https://w3c.github.io/media-source/#sourcebuffer-init-segment-received > > Original change's description: > > [shapedetection] Add some shapedetection tests > > > > Cover following two checkpoints: > > - If the ImageBitmapSource is an HTMLVideoElement object whose readyState attribute > > is either HAVE_NOTHING or HAVE_METADATA then reject the Promise with a new > > DOMException whose name is InvalidStateError. > > - If the ImageBitmapSource argument is an HTMLCanvasElement whose bitmap’s origin-clean > > flag is false, then reject the Promise with a new DOMException whose name is SecurityError. > > > > spec: https://wicg.github.io/shape-detection-api/#image-sources-for-detection > > Change-Id: I0522d0340d3cb0291df6be65dfc1ab99037b30f7 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1666766 > > Reviewed-by: Reilly Grant <reillyg@chromium.org> > > Commit-Queue: Wanming Lin <wanming.lin@intel.com> > > Cr-Commit-Position: refs/heads/master@{#671578} > > Bug: 979170 > Change-Id: I963c3b6bce86791f5bedde7849c2e439b28c5481 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688460 > Reviewed-by: Reilly Grant <reillyg@chromium.org> > Commit-Queue: Wanming Lin <wanming.lin@intel.com> > Cr-Commit-Position: refs/heads/master@{#675956} TBR=reillyg@chromium.org,mcasas@chromium.org,wanming.lin@intel.com # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 979170 Change-Id: Ia07d24517436bf2e45086251cef82441bb966192 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700387Reviewed-by:Mark Pearson <mpearson@chromium.org> Commit-Queue: Mark Pearson <mpearson@chromium.org> Cr-Commit-Position: refs/heads/master@{#677084}
Showing
Please register or sign in to comment