New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 659156 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 658734



Sign in to add a comment

Upstream ImageBitmapRenderingContext tests to web-platform-tests

Project Member Reported by junov@chromium.org, Oct 25 2016

Issue description

Upstream ImageBitmapRenderingContext tests to web-platform-tests.

This upstreaming effort should also include a systematic review to make sure every statement in the spec that is reasonably testable is covered.
 

Comment 1 by junov@chromium.org, Oct 25 2016

Blocking: 658734
Components: Blink>Canvas
Cc: junov@chromium.org
Owner: xidac...@chromium.org
in progress...
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 1 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/300be765de46941accbb0d12fee1dba27fd06bb0

commit 300be765de46941accbb0d12fee1dba27fd06bb0
Author: xidachen <xidachen@chromium.org>
Date: Tue Nov 01 13:18:12 2016

Consolidate implementation of ImageBitmapRenderingContext

To prepare for the shipping of ImageBitmapRenderingContext, we need more
layout test coverage. When we add more tests, we found that there are
some problem in our implementation.

1. transferFromImageBitmap API should be capable of throwing DOMException.
2. After calling transferFromImageBitmap(bitmap), the bitmap should be
   detached.
3. When calling transferFromImageBitmap(bitmap), if bitmap has already
   detached, this call should throw an InvalidStateError DOMException.

The corresponding layout test cases are added.

BUG= 659156 

Review-Url: https://codereview.chromium.org/2459233002
Cr-Commit-Position: refs/heads/master@{#428988}

[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-drawImage.html
[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html
[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
[modify] https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl

Project Member

Comment 4 by bugdroid1@chromium.org, Nov 1 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4f411b5fe4cd193d6a8e88d990beea4ad0b604de

commit 4f411b5fe4cd193d6a8e88d990beea4ad0b604de
Author: rouslan <rouslan@chromium.org>
Date: Tue Nov 01 14:51:25 2016

Revert of Consolidate implementation of ImageBitmapRenderingContext (patchset #3 id:40001 of https://codereview.chromium.org/2459233002/ )

Reason for revert:
Speculative revert to fix offscreenCanvas-transferToImageBitmap-texImage2D.html.

Failed build:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Precise%20Leak/builds/1347

Error message is not helpful: "renderer crashed."

Original issue's description:
> Consolidate implementation of ImageBitmapRenderingContext
>
> To prepare for the shipping of ImageBitmapRenderingContext, we need more
> layout test coverage. When we add more tests, we found that there are
> some problem in our implementation.
>
> 1. transferFromImageBitmap API should be capable of throwing DOMException.
> 2. After calling transferFromImageBitmap(bitmap), the bitmap should be
>    detached.
> 3. When calling transferFromImageBitmap(bitmap), if bitmap has already
>    detached, this call should throw an InvalidStateError DOMException.
>
> The corresponding layout test cases are added.
>
> BUG= 659156 
>
> Committed: https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0
> Cr-Commit-Position: refs/heads/master@{#428988}

TBR=junov@chromium.org,xidachen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 659156 

Review-Url: https://codereview.chromium.org/2464093002
Cr-Commit-Position: refs/heads/master@{#429002}

[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-drawImage.html
[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html
[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
[modify] https://crrev.com/4f411b5fe4cd193d6a8e88d990beea4ad0b604de/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl

The tests are upstreamed here:

https://github.com/w3c/web-platform-tests/pull/4167
Project Member

Comment 6 by bugdroid1@chromium.org, Nov 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/807358546cf4a8451044f63c3198039004f80de1

commit 807358546cf4a8451044f63c3198039004f80de1
Author: xidachen <xidachen@chromium.org>
Date: Wed Nov 09 17:01:12 2016

Consolidate implementation of ImageBitmapRenderingContext

To prepare for the shipping of ImageBitmapRenderingContext, we need more
layout test coverage. When we add more tests, we found that there are
some problem in our implementation.

1. transferFromImageBitmap API should be capable of throwing DOMException.
2. After calling transferFromImageBitmap(bitmap), the bitmap should be
   detached.
3. When calling transferFromImageBitmap(bitmap), if bitmap has already
   detached, this call should throw an InvalidStateError DOMException.

The corresponding layout test cases are added.

BUG= 659156 

Committed: https://crrev.com/300be765de46941accbb0d12fee1dba27fd06bb0
Review-Url: https://codereview.chromium.org/2459233002
Cr-Original-Commit-Position: refs/heads/master@{#428988}
Cr-Commit-Position: refs/heads/master@{#430954}

[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-drawImage.html
[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/LayoutTests/fast/canvas/imagebitmap/transferFromImageBitmap-nullability.html
[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h
[modify] https://crrev.com/807358546cf4a8451044f63c3198039004f80de1/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.idl

Status: Fixed (was: Assigned)
The test is now on web-platform-tests

Closing this bug.

Sign in to add a comment