mirror of
https://github.com/servo/servo.git
synced 2025-07-13 02:13:40 +01:00
25 lines
735 B
HTML
25 lines
735 B
HTML
<!DOCTYPE html>
|
|
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
|
<title>OffscreenCanvas test: 2d.text.font.parse.system</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/canvas-tests.js"></script>
|
|
|
|
<h1>2d.text.font.parse.system</h1>
|
|
<p class="desc">System fonts must be computed to explicit values</p>
|
|
|
|
|
|
<script>
|
|
var t = async_test("System fonts must be computed to explicit values");
|
|
t.step(function() {
|
|
|
|
var offscreenCanvas = new OffscreenCanvas(100, 50);
|
|
var ctx = offscreenCanvas.getContext('2d');
|
|
|
|
ctx.font = 'message-box';
|
|
_assertDifferent(ctx.font, 'message-box', "ctx.font", "'message-box'");
|
|
|
|
t.done();
|
|
|
|
});
|
|
</script>
|