diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests')
7 files changed, 184 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations index 5e171c2..af9a285 100644 --- a/third_party/WebKit/LayoutTests/TestExpectations +++ b/third_party/WebKit/LayoutTests/TestExpectations @@ -116,6 +116,7 @@ crbug.com/539226 [ Win ] http/tests/xmlhttprequest/open-in-body-onload-sync-to-i # Expected to fail until OffscreenCanvas can render on the gpu crbug.com/593514 virtual/gpu/fast/canvas/OffscreenCanvas-strokeRect-in-worker.html [ Failure ] +crbug.com/593514 virtual/gpu/fast/canvas/OffscreenCanvas-paths-in-worker.html [ Failure ] crbug.com/417782 [ Linux Win ] virtual/rootlayerscrolls/fast/scrolling/fractional-scroll-offset-fixed-position-non-composited.html [ Failure ] crbug.com/492664 [ Linux ] imported/csswg-test/css-writing-modes-3/box-offsets-rel-pos-vlr-005.xht [ Failure ] diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker-expected.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker-expected.html new file mode 100644 index 0000000..a390f04 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker-expected.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> +<body> +<canvas id ='output' width='200' height='400'></canvas> +<script> +var aCanvas = document.getElementById('output'); +var ctx = aCanvas.getContext('2d'); +ctx.beginPath(); +ctx.lineWidth = '10'; +ctx.strokeStyle = 'green'; +ctx.lineJoin = 'round'; +ctx.moveTo(15, 15); +ctx.lineTo(135, 15); +ctx.lineTo(70, 170); +ctx.closePath(); +ctx.stroke(); + +var path1 = new Path2D(); +path1.moveTo(150, 25); +path1.bezierCurveTo(10, 150, 10, 300, 100, 200); +ctx.strokeStyle = 'purple'; +ctx.setLineDash([ 10, 5 ]); +ctx.stroke(path1); + +ctx.fillStyle = 'red'; +ctx.beginPath() +ctx.arc(75, 325, 50, 0, Math.PI * 2, true); +ctx.arc(75, 325, 20, 0, Math.PI * 2, true); +ctx.fill("evenodd"); +</script> +</body> +</html> diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker.html new file mode 100644 index 0000000..e508669 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-paths-in-worker.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> +<body> +<canvas id='output' width='200' height='400'></canvas> +<script id='myWorker' type='text/worker'> +self.onmessage = function(e) { + var aCanvas = new OffscreenCanvas(200, 400); + var ctx = aCanvas.getContext('2d'); + + ctx.beginPath(); + ctx.lineWidth = '10'; + ctx.strokeStyle = 'green'; + ctx.lineJoin = 'round'; + ctx.moveTo(15, 15); + ctx.lineTo(135, 15); + ctx.lineTo(70, 170); + ctx.closePath(); + ctx.stroke(); + + var path1 = new Path2D(); + path1.moveTo(150, 25); + path1.bezierCurveTo(10, 150, 10, 300, 100, 200); + ctx.strokeStyle = 'purple'; + ctx.setLineDash([ 10, 5 ]); + ctx.stroke(path1); + + ctx.fillStyle = 'red'; + ctx.beginPath() + ctx.arc(75, 325, 50, 0, Math.PI * 2, true); + ctx.arc(75, 325, 20, 0, Math.PI * 2, true); + ctx.fill("evenodd"); + + var image = aCanvas.transferToImageBitmap(); + self.postMessage(image, [image]); +}; +</script> +<script> +if (window.testRunner) { + testRunner.waitUntilDone(); +} +var blob = new Blob([document.getElementById('myWorker').textContent]); +var worker = new Worker(URL.createObjectURL(blob)); +worker.addEventListener('message', msg => { + var outputCtx = document.getElementById('output').getContext('imagebitmap'); + outputCtx.transferImageBitmap(msg.data); + if (window.testRunner) { + testRunner.notifyDone(); + } +}); +worker.postMessage(""); +</script> +</body> +</html> diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt b/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt index ad186d6..811fd1b 100644 --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt @@ -484,23 +484,50 @@ interface OffscreenCanvas setter width interface OffscreenCanvasRenderingContext2D getter fillStyle + getter lineCap + getter lineDashOffset + getter lineJoin + getter lineWidth + getter miterLimit getter offscreenCanvas getter strokeStyle method arc method arcTo + method beginPath method bezierCurveTo method clearRect method closePath method constructor method ellipse + method fill method fillRect + method getLineDash method lineTo method moveTo method quadraticCurveTo method rect + method setLineDash + method stroke method strokeRect setter fillStyle + setter lineCap + setter lineDashOffset + setter lineJoin + setter lineWidth + setter miterLimit setter strokeStyle +interface Path2D + method addPath + method arc + method arcTo + method bezierCurveTo + method closePath + method constructor + method ellipse + method lineTo + method moveTo + method quadraticCurveTo + method rect interface PerformanceObserverEntryList method constructor method getEntries diff --git a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt index b574145..62a012c 100644 --- a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt +++ b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt @@ -503,23 +503,51 @@ Starting worker: resources/global-interface-listing.js [Worker] interface OffscreenCanvasRenderingContext2D [Worker] attribute @@toStringTag [Worker] getter fillStyle +[Worker] getter lineCap +[Worker] getter lineDashOffset +[Worker] getter lineJoin +[Worker] getter lineWidth +[Worker] getter miterLimit [Worker] getter offscreenCanvas [Worker] getter strokeStyle [Worker] method arc [Worker] method arcTo +[Worker] method beginPath [Worker] method bezierCurveTo [Worker] method clearRect [Worker] method closePath [Worker] method constructor [Worker] method ellipse +[Worker] method fill [Worker] method fillRect +[Worker] method getLineDash [Worker] method lineTo [Worker] method moveTo [Worker] method quadraticCurveTo [Worker] method rect +[Worker] method setLineDash +[Worker] method stroke [Worker] method strokeRect [Worker] setter fillStyle +[Worker] setter lineCap +[Worker] setter lineDashOffset +[Worker] setter lineJoin +[Worker] setter lineWidth +[Worker] setter miterLimit [Worker] setter strokeStyle +[Worker] interface Path2D +[Worker] attribute @@toStringTag +[Worker] method addPath +[Worker] method arc +[Worker] method arcTo +[Worker] method bezierCurveTo +[Worker] method closePath +[Worker] method constructor +[Worker] method ellipse +[Worker] method lineTo +[Worker] method moveTo +[Worker] method quadraticCurveTo +[Worker] method rect [Worker] interface PerformanceObserverEntryList [Worker] attribute @@toStringTag [Worker] method constructor diff --git a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt index 83d315f..e3e1459 100644 --- a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt +++ b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt @@ -4004,22 +4004,37 @@ interface OffscreenCanvas interface OffscreenCanvasRenderingContext2D attribute @@toStringTag getter fillStyle + getter lineCap + getter lineDashOffset + getter lineJoin + getter lineWidth + getter miterLimit getter offscreenCanvas getter strokeStyle method arc method arcTo + method beginPath method bezierCurveTo method clearRect method closePath method constructor method ellipse + method fill method fillRect + method getLineDash method lineTo method moveTo method quadraticCurveTo method rect + method setLineDash + method stroke method strokeRect setter fillStyle + setter lineCap + setter lineDashOffset + setter lineJoin + setter lineWidth + setter miterLimit setter strokeStyle interface Option method constructor diff --git a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt index 0a3d6c7..0d50a1f 100644 --- a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt +++ b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt @@ -490,23 +490,51 @@ Starting worker: resources/global-interface-listing.js [Worker] interface OffscreenCanvasRenderingContext2D [Worker] attribute @@toStringTag [Worker] getter fillStyle +[Worker] getter lineCap +[Worker] getter lineDashOffset +[Worker] getter lineJoin +[Worker] getter lineWidth +[Worker] getter miterLimit [Worker] getter offscreenCanvas [Worker] getter strokeStyle [Worker] method arc [Worker] method arcTo +[Worker] method beginPath [Worker] method bezierCurveTo [Worker] method clearRect [Worker] method closePath [Worker] method constructor [Worker] method ellipse +[Worker] method fill [Worker] method fillRect +[Worker] method getLineDash [Worker] method lineTo [Worker] method moveTo [Worker] method quadraticCurveTo [Worker] method rect +[Worker] method setLineDash +[Worker] method stroke [Worker] method strokeRect [Worker] setter fillStyle +[Worker] setter lineCap +[Worker] setter lineDashOffset +[Worker] setter lineJoin +[Worker] setter lineWidth +[Worker] setter miterLimit [Worker] setter strokeStyle +[Worker] interface Path2D +[Worker] attribute @@toStringTag +[Worker] method addPath +[Worker] method arc +[Worker] method arcTo +[Worker] method bezierCurveTo +[Worker] method closePath +[Worker] method constructor +[Worker] method ellipse +[Worker] method lineTo +[Worker] method moveTo +[Worker] method quadraticCurveTo +[Worker] method rect [Worker] interface PerformanceObserverEntryList [Worker] attribute @@toStringTag [Worker] method constructor |
