mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
29 lines
863 B
HTML
29 lines
863 B
HTML
<!DOCTYPE html>
|
|
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
|
<title>OffscreenCanvas test: 2d.line.join.valid</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/canvas-tests.js"></script>
|
|
|
|
<h1>2d.line.join.valid</h1>
|
|
<p class="desc">Setting lineJoin to valid values works</p>
|
|
|
|
|
|
<script>
|
|
var t = async_test("Setting lineJoin to valid values works");
|
|
t.step(function() {
|
|
|
|
var offscreenCanvas = new OffscreenCanvas(100, 50);
|
|
var ctx = offscreenCanvas.getContext('2d');
|
|
|
|
ctx.lineJoin = 'bevel'
|
|
_assertSame(ctx.lineJoin, 'bevel', "ctx.lineJoin", "'bevel'");
|
|
ctx.lineJoin = 'round';
|
|
_assertSame(ctx.lineJoin, 'round', "ctx.lineJoin", "'round'");
|
|
ctx.lineJoin = 'miter';
|
|
_assertSame(ctx.lineJoin, 'miter', "ctx.lineJoin", "'miter'");
|
|
|
|
t.done();
|
|
|
|
});
|
|
</script>
|