blob: e499427f1ea73013d34394b97c1024cc9d20e978 [file] [log] [blame]
Test that CanvasAgent is able to send context attributes.
== Running test suite: Canvas.contextAttributes
-- Running test case: Create2DCanvasContext
Added canvas.
PASS: Canvas context should be "2D".
{
"colorSpace": "srgb",
"desynchronized": false
}
-- Running test case: CreateBitmapRendererCanvasContext
Added canvas.
PASS: Canvas context should be "Bitmap Renderer".
{
"alpha": true
}
-- Running test case: CreateBitmapRendererCanvasContextWithAttributes
Added canvas.
PASS: Canvas context should be "Bitmap Renderer".
{
"alpha": false
}
PASS: Canvas context should have attribute "alpha" with value "false".
-- Running test case: CreateWebGLCanvasContext
Added canvas.
PASS: Canvas context should be "WebGL".
{
"alpha": true,
"depth": true,
"stencil": false,
"antialias": true,
"premultipliedAlpha": true,
"preserveDrawingBuffer": false,
"powerPreference": "<filtered>",
"failIfMajorPerformanceCaveat": false
}
-- Running test case: CreateWebGLCanvasContextWithAttributes
Added canvas.
PASS: Canvas context should be "WebGL".
{
"alpha": false,
"depth": true,
"stencil": false,
"antialias": true,
"premultipliedAlpha": true,
"preserveDrawingBuffer": false,
"powerPreference": "<filtered>",
"failIfMajorPerformanceCaveat": false
}
PASS: Canvas context should have attribute "alpha" with value "false".