https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0c63aee6900a6e7d2a1057d755d1bbee46d599df authored by Geoffrey Sneddon on 15 March 2018, 18:35:23 UTC
Add test for what ".." on documentElement returns
Tip revision: 0c63aee
2d.shadow.enable.off.1.html
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>OffscreenCanvas test: 2d.shadow.enable.off.1</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/canvas-tests.js"></script>

<h1>2d.shadow.enable.off.1</h1>
<p class="desc">Shadows are not drawn when only shadowColor is set</p>


<script>
var t = async_test("Shadows are not drawn when only shadowColor is set");
t.step(function() {

var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');

ctx.shadowColor = '#f00';
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
_assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");

t.done();

});
</script>
back to top