Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / change-context.html
blob9e247594c3e5bcaaafb4f4a98e6a524a59b06eab
1 This test ensures that changing the context does not crash.
2 <canvas id="canvas"></canvas><br />
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var canvas = document.getElementById("canvas");
8 var ctx1 = canvas.getContext("2d");
9 var ctx2 = canvas.getContext("");
10 ctx1.save();
12 canvas.parentNode.removeChild(canvas);
14 if (window.GCController)
15 GCController.collect();
17 ctx1.save();
19 </script>