| <!DOCTYPE html> |
| <title>Canvas test: context.unrecognised.badname</title> |
| <script src="../tests.js"></script> |
| <link rel="stylesheet" href="../tests.css"> |
| <link rel="prev" href="context.emptystring.html" title="context.emptystring"> |
| <link rel="next" href="context.unrecognised.badsuffix.html" title="context.unrecognised.badsuffix"> |
| <body class="show_output"> |
| <p> |
| <a href="context.emptystring.html" accesskey="p" title="[p] context.emptystring"><</a> |
| <a href="index.html">[index]</a> |
| <a href="context.unrecognised.badsuffix.html" accesskey="n" title="[n] context.unrecognised.badsuffix">></a> |
| <h1><a href="index.context.html">context</a>.<a href="index.context.unrecognised.html">unrecognised</a>.badname</h1> |
| <p class="desc">getContext with unrecognised context name returns null</p> |
| <div class="refs">References: |
| <ul> |
| <li><a href="spec.html#testrefs.context.unrecognised">context.unrecognised</a> |
| <li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=401788">Bugzilla</a> |
| </ul> |
| </div> |
| |
| <p class="output">Actual output:</p> |
| <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> |
| |
| <ul id="d"></ul> |
| <script> |
| _addTest(function(canvas, ctx) { |
| |
| _assertSame(canvas.getContext('This is not an implemented context in any real browser'), null, "canvas.getContext('This is not an implemented context in any real browser')", "null"); |
| |
| |
| }); |
| </script> |
| |