https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b9c97b372ba9eeb46dc8e5d488df90881bd79f1b authored by Ben Kelly on 19 March 2018, 14:38:38 UTC
Verify that fetch API `force-cache` and `only-if-cached` respect no-store/no-cache headers.
Tip revision: b9c97b3
context-preserves-canvas.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Canvas's ImageBitmapRenderingContext test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/multipage/scripting.html#the-imagebitmap-rendering-context">
<script>
var width = 10;
var height = 10;

test(function() {
    var canvas = document.createElement("canvas");
    canvas.width = width;
    canvas.height = height;
    var ctx = canvas.getContext('bitmaprenderer');
    var dstCanvas = ctx.canvas;
    assert_equals(dstCanvas.width, width);
    assert_equals(dstCanvas.height, height);
}, "Test that ctx.canvas on a ImageBitmapRenderingContext returns the original canvas");

</script>
back to top