Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / canvas / test / test_2d.composite.operation.nullsuffix.html
blob0be326f37e8d62317e821649556ba2c02f921319
1 <!DOCTYPE HTML>
2 <title>Canvas test: 2d.composite.operation.nullsuffix - bug 401788</title>
3 <script src="/MochiKit/MochiKit.js"></script>
4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
5 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
6 <body>
7 <canvas id="c" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
8 <script>
10 SimpleTest.waitForExplicitFinish();
11 MochiKit.DOM.addLoadEvent(function () {
13 var canvas = document.getElementById('c');
14 var ctx = canvas.getContext('2d');
16 var _thrown_outer = false;
17 try {
19 ctx.globalCompositeOperation = 'xor';
20 ctx.globalCompositeOperation = 'source-over\0';
21 ok(ctx.globalCompositeOperation == 'xor', "ctx.globalCompositeOperation == 'xor'");
23 } catch (e) {
24 _thrown_outer = true;
26 todo(!_thrown_outer, 'should not throw exception');
28 SimpleTest.finish();
30 });
31 </script>