From baffa7f919f501d83daefea01cb0f2103329b7b6 Mon Sep 17 00:00:00 2001 From: Ken Russell Date: Thu, 17 Jun 2021 17:39:47 -0700 Subject: [PATCH] Add test of toDataURL after compositing the WebGL canvas. (#3293) * Add test of toDataURL after compositing the WebGL canvas. Regression test for https://crbug.com/1216489 , where this path was broken in Chromium when using SwiftShader. Test passes in Firefox Nightly and Safari Technology Preview. * Add to test list --- sdk/tests/conformance/canvas/00_test_list.txt | 1 + .../canvas/to-data-url-after-composite.html | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 sdk/tests/conformance/canvas/to-data-url-after-composite.html diff --git a/sdk/tests/conformance/canvas/00_test_list.txt b/sdk/tests/conformance/canvas/00_test_list.txt index 58c48131f9..558163de17 100644 --- a/sdk/tests/conformance/canvas/00_test_list.txt +++ b/sdk/tests/conformance/canvas/00_test_list.txt @@ -13,6 +13,7 @@ drawingbuffer-test.html --min-version 1.0.4 render-after-resize-test.html --min-version 1.0.2 texture-bindings-unaffected-on-resize.html --min-version 1.0.2 to-data-url-test.html +--min-version 1.0.4 to-data-url-after-composite.html viewport-unchanged-upon-resize.html --min-version 1.0.4 webgl-to-2d-canvas.html diff --git a/sdk/tests/conformance/canvas/to-data-url-after-composite.html b/sdk/tests/conformance/canvas/to-data-url-after-composite.html new file mode 100644 index 0000000000..668b9c7154 --- /dev/null +++ b/sdk/tests/conformance/canvas/to-data-url-after-composite.html @@ -0,0 +1,51 @@ + + + + + +WebGL toDataURL after composite test + + + + + + + +
+
+ + + +