Automatic update from web-platform-tests Update canvas language tests Remove the tentative naming for https://github.com/whatwg/html/pull/10873. And make all the tests verify two languages, because browsers differ in which language they consider the default. -- wpt-commits: 20365259dffd3f467b695c4ed0d03006fe50ce23 wpt-pr: 51041
29 lines
725 B
HTML
29 lines
725 B
HTML
<!DOCTYPE html>
|
|
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
|
<meta charset="UTF-8">
|
|
<title>OffscreenCanvas test: 2d.text.lang.default</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
|
|
|
<h1>2d.text.lang.default</h1>
|
|
<p class="desc"></p>
|
|
|
|
|
|
<script>
|
|
var t = async_test("");
|
|
var t_pass = t.done.bind(t);
|
|
var t_fail = t.step_func(function(reason) {
|
|
throw reason;
|
|
});
|
|
t.step(function() {
|
|
|
|
var canvas = new OffscreenCanvas(100, 50);
|
|
var ctx = canvas.getContext('2d');
|
|
|
|
_assertSame(ctx.lang, 'inherit', "ctx.lang", "'inherit'");
|
|
t.done();
|
|
|
|
});
|
|
</script>
|