haikuwebkit/LayoutTests/fast/canvas/2d.context.expando-expected...

11 lines
236 B
Plaintext
Raw Permalink Normal View History

[WebGL2] Pass user-defined-properties-on-context.html layout test https://bugs.webkit.org/show_bug.cgi?id=215433 Patch by Kenneth Russell <kbr@chromium.org> on 2020-08-18 Reviewed by Yusuke Suzuki. Source/WebCore: Keep the canvas' rendering context alive from the canvas itself by adding a custom mark function for HTMLCanvasElement, and adding a new GenerateIsReachable=ImplCanvasBase extended IDL attribute, used from all rendering context types (2D, WebGL, and WebGPU). This patch does not touch OffscreenCanvas since the implementation there seems to be incomplete and there are no associated tests of GC behavior. Tests: fast/canvas/2d.context.expando.html webgpu/expando-properties.html * Modules/webgpu/GPUCanvasContext.idl: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSHTMLCanvasElementCustom.cpp: Copied from Source/WebCore/html/canvas/WebGLRenderingContext.idl. (WebCore::JSHTMLCanvasElement::visitAdditionalChildren): * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/IDLAttributes.json: * html/HTMLCanvasElement.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLRenderingContext.idl: LayoutTests: Rebaseline user-defined-properties-on-context.html, which is now fully passing. Add tests of expando properties on 2D and WebGPU contexts. Add a FIXME to the WebGPU test, as that specification no longer defines a canvas rendering context. * fast/canvas/2d.context.expando-expected.txt: Added. * fast/canvas/2d.context.expando.html: Added. * webgl/2.0.0/conformance/context/user-defined-properties-on-context-expected.txt: * webgpu/expando-properties-expected.txt: Added. * webgpu/expando-properties.html: Added. Canonical link: https://commits.webkit.org/228383@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-18 21:24:51 +00:00
Verify that expando properties are preserved on the 2d canvas context.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS globalCtx.myProperty is 2
PASS successfullyParsed is true
TEST COMPLETE