4 https://bugzilla.mozilla.org/show_bug.cgi?id=742191
8 <title>Test for invalid argument object
</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=742191">Mozilla Bug
742191</a>
16 <script type=
"application/javascript">
18 /** Test for Bug
742191 **/
20 var gotTypeError = false;
21 var ctx = document.createElement(
"canvas").getContext(
"2d");
23 ctx.drawImage({},
0,
0);
25 if (e instanceof TypeError) {
30 ok(gotTypeError,
"passing an invalid argument should cause a type error!");