mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
30 lines
919 B
HTML
30 lines
919 B
HTML
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<!--
|
||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=
|
||
|
-->
|
||
|
<head>
|
||
|
<title>Test for Bug </title>
|
||
|
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||
|
</head>
|
||
|
<body>
|
||
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
|
||
|
<canvas id="display" height="200" width="200"></canvas>
|
||
|
<pre id="test">
|
||
|
<script type="application/javascript">
|
||
|
|
||
|
var canvas = document.getElementById("display");
|
||
|
var cx = canvas.getContext("2d");
|
||
|
|
||
|
cx.font = "italic 16px sans-serif";
|
||
|
is(cx.font, "italic 16px sans-serif", "valid font should round-trip");
|
||
|
cx.font = "bold 12px serif; background: green";
|
||
|
is(cx.font, "italic 16px sans-serif", "invalid font should be ignored");
|
||
|
|
||
|
</script>
|
||
|
</pre>
|
||
|
</body>
|
||
|
</html>
|