blob: 9ee2a3aabe66151c1c9e1b4eddd4ec8932d92663 [file] [log] [blame]
<!DOCTYPE html>
<canvas id="canvas" width="100" height="100"></canvas>
<script src="../resources/js-test.js"></script>
<script>
description('Check that assigning |null| and |undefined| to currentTransform ' +
'do not cause crashes, but do throw exceptions.');
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var undef;
shouldThrow("context.currentTransform = null;");
shouldThrow("context.currentTransform = undef;");
</script>