Changeset 254399 in webkit


Ignore:
Timestamp:
Jan 11, 2020, 9:31:59 AM (5 years ago)
Author:
cathiechen
Message:

Import WPT test cases for 2dcontext/imagebitmap
https://bugs.webkit.org/show_bug.cgi?id=205908

Reviewed by Manuel Rego Casasnovas

LayoutTests/imported/w3c:

  • web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize-expected.txt:
  • web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html:
  • web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
  • web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable.html:
  • web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
  • web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html:
  • web-platform-tests/2dcontext/imagebitmap/no-coop-coep.https.window.html: Removed.
  • web-platform-tests/2dcontext/imagebitmap/no-coop-coep.https.window.js: Removed.
  • web-platform-tests/2dcontext/imagebitmap/w3c-import.log:

LayoutTests:

Update the expected files.

  • platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
  • platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
  • platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
  • platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
Location:
trunk/LayoutTests
Files:
2 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r254398 r254399  
     12020-01-11  Cathie Chen  <cathiechen@igalia.com>
     2
     3        Import WPT test cases for 2dcontext/imagebitmap
     4        https://bugs.webkit.org/show_bug.cgi?id=205908
     5
     6        Reviewed by Manuel Rego Casasnovas
     7
     8        Update the expected files.
     9
     10        * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
     11        * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
     12        * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
     13        * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
     14
    1152020-01-11  Antti Koivisto  <antti@apple.com>
    216
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r254291 r254399  
     12020-01-11  Cathie Chen  <cathiechen@igalia.com>
     2
     3        Import WPT test cases for 2dcontext/imagebitmap
     4        https://bugs.webkit.org/show_bug.cgi?id=205908
     5
     6        Reviewed by Manuel Rego Casasnovas
     7
     8        * web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize-expected.txt:
     9        * web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html:
     10        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt:
     11        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable.html:
     12        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt:
     13        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html:
     14        * web-platform-tests/2dcontext/imagebitmap/no-coop-coep.https.window.html: Removed.
     15        * web-platform-tests/2dcontext/imagebitmap/no-coop-coep.https.window.js: Removed.
     16        * web-platform-tests/2dcontext/imagebitmap/w3c-import.log:
     17
    1182020-01-09  Chris Lord  <clord@igalia.com>
    219
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize-expected.txt

    r250714 r254399  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS createImageBitmap(HTMLVideoElement) with resize option
    33
    4 NOTRUN createImageBitmap(HTMLVideoElement) with resize option
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html

    r253638 r254399  
    5656    return generateTest();
    5757});
    58 video.src = "/media/video.ogv";
     58video.src = '/media/counting.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
    5959</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt

    r251630 r254399  
     1CONSOLE MESSAGE: line 2: TypeError: Type error
    12
    23PASS Serialize ImageBitmap created from an HTMLCanvasElement
     
    1112PASS Serialize ImageBitmap created from an ImageBitmap
    1213PASS Serialize ImageBitmap created from a Blob
     14FAIL Serializing a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap)" did not throw
    1315
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable.html

    r253638 r254399  
    77<script src="/common/media.js"></script>
    88<script src="common.sub.js"></script>
     9<script src="/common/get-host-info.sub.js"></script>
    910<div id=log></div>
    1011<script>
     
    4142    }, `Serialize ImageBitmap created from ${name}`);
    4243}
     44
     45promise_test(async (t) => {
     46  const url = get_host_info().REMOTE_ORIGIN + '/images/pattern.png';
     47  const image = await makeMakeHTMLImage(url)();
     48  const bitmap = await createImageBitmap(image);
     49
     50  assert_throws('DataCloneError', () => worker.postMessage(bitmap));
     51}, 'Serializing a non-origin-clean ImageBitmap throws.');
    4352</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt

    r251630 r254399  
     1CONSOLE MESSAGE: line 2: TypeError: Type error
    12
    23PASS Transfer ImageBitmap created from an HTMLCanvasElement
     
    1112PASS Transfer ImageBitmap created from an ImageBitmap
    1213PASS Transfer ImageBitmap created from a Blob
     14FAIL Transferring a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap, [bitmap])" did not throw
    1315
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html

    r253638 r254399  
    66<script src="/common/media.js"></script>
    77<script src="common.sub.js"></script>
     8<script src="/common/get-host-info.sub.js"></script>
    89<div id=log></div>
    910<script>
     
    4041    }, `Transfer ImageBitmap created from ${name}`);
    4142}
     43
     44promise_test(async (t) => {
     45  const url = get_host_info().REMOTE_ORIGIN + '/images/pattern.png';
     46  const image = await makeMakeHTMLImage(url)();
     47  const bitmap = await createImageBitmap(image);
     48
     49  assert_throws('DataCloneError',
     50                () => worker.postMessage(bitmap, [bitmap]));
     51}, 'Transferring a non-origin-clean ImageBitmap throws.');
     52
    4253</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/w3c-import.log

    r253638 r254399  
    2828/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-sizeOverflow.html
    2929/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html
    30 /LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/no-coop-coep.https.window.js
    3130/LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/transfer-worker.js
  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt

    r253031 r254399  
    77FAIL Serialize ImageBitmap created from a bitmap SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88FAIL Serialize ImageBitmap created from a vector SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 PASS Serialize ImageBitmap created from an OffscreenCanvas
     9FAIL Serialize ImageBitmap created from an OffscreenCanvas promise_test: Unhandled rejection with value: object "InvalidStateError: Cannot create ImageBitmap from canvas that can't be rendered"
    1010FAIL Serialize ImageBitmap created from an ImageData promise_test: Unhandled rejection with value: object "TypeError: createImageBitmap with ImageData is not implemented"
    1111PASS Serialize ImageBitmap created from an ImageBitmap
    1212PASS Serialize ImageBitmap created from a Blob
     13FAIL Serializing a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap)" did not throw
    1314
  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt

    r253031 r254399  
    77FAIL Transfer ImageBitmap created from a bitmap SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88FAIL Transfer ImageBitmap created from a vector SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 PASS Transfer ImageBitmap created from an OffscreenCanvas
     9FAIL Transfer ImageBitmap created from an OffscreenCanvas promise_test: Unhandled rejection with value: object "InvalidStateError: Cannot create ImageBitmap from canvas that can't be rendered"
    1010FAIL Transfer ImageBitmap created from an ImageData promise_test: Unhandled rejection with value: object "TypeError: createImageBitmap with ImageData is not implemented"
    1111PASS Transfer ImageBitmap created from an ImageBitmap
    1212PASS Transfer ImageBitmap created from a Blob
     13FAIL Transferring a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap, [bitmap])" did not throw
    1314
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-serializable-expected.txt

    r253031 r254399  
    77FAIL Serialize ImageBitmap created from a bitmap SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88FAIL Serialize ImageBitmap created from a vector SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 PASS Serialize ImageBitmap created from an OffscreenCanvas
     9FAIL Serialize ImageBitmap created from an OffscreenCanvas promise_test: Unhandled rejection with value: object "InvalidStateError: Cannot create ImageBitmap from canvas that can't be rendered"
    1010FAIL Serialize ImageBitmap created from an ImageData promise_test: Unhandled rejection with value: object "TypeError: createImageBitmap with ImageData is not implemented"
    1111PASS Serialize ImageBitmap created from an ImageBitmap
    1212PASS Serialize ImageBitmap created from a Blob
     13FAIL Serializing a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap)" did not throw
    1314
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer-expected.txt

    r253031 r254399  
    77FAIL Transfer ImageBitmap created from a bitmap SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    88FAIL Transfer ImageBitmap created from a vector SVGImageElement promise_test: Unhandled rejection with value: object "TypeError: Type error"
    9 PASS Transfer ImageBitmap created from an OffscreenCanvas
     9FAIL Transfer ImageBitmap created from an OffscreenCanvas promise_test: Unhandled rejection with value: object "InvalidStateError: Cannot create ImageBitmap from canvas that can't be rendered"
    1010FAIL Transfer ImageBitmap created from an ImageData promise_test: Unhandled rejection with value: object "TypeError: createImageBitmap with ImageData is not implemented"
    1111PASS Transfer ImageBitmap created from an ImageBitmap
    1212PASS Transfer ImageBitmap created from a Blob
     13FAIL Transferring a non-origin-clean ImageBitmap throws. assert_throws: function "() => worker.postMessage(bitmap, [bitmap])" did not throw
    1314
Note: See TracChangeset for help on using the changeset viewer.