4 https://bugzilla.mozilla.org/show_bug.cgi?id=861938
8 <title>Test for Bug
861938</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=861938">Mozilla Bug
861938</a>
15 <div id=
"content" style=
"display: none">
20 <script type=
"application/javascript">
22 /** Test for Bug
861938 **/
25 var canvas = document.createElement(
"canvas");
26 canvas.getContext('
2d').fill(undefined);
28 ok(true,
"Should be able to pass undefined to fill()");
30 ok(false,
"Should be able to pass undefined to fill()");