Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / canvas / currentTransform-null.html
blob9ee2a3aabe66151c1c9e1b4eddd4ec8932d92663
1 <!DOCTYPE html>
2 <canvas id="canvas" width="100" height="100"></canvas>
3 <script src="../resources/js-test.js"></script>
4 <script>
5 description('Check that assigning |null| and |undefined| to currentTransform ' +
6 'do not cause crashes, but do throw exceptions.');
8 var canvas = document.getElementById('canvas');
9 var context = canvas.getContext('2d');
10 var undef;
11 shouldThrow("context.currentTransform = null;");
12 shouldThrow("context.currentTransform = undef;");
13 </script>