зеркало из https://github.com/mozilla/pjs.git
248 строки
17 KiB
HTML
248 строки
17 KiB
HTML
<!DOCTYPE HTML>
|
|
<title>Canvas test: 2d.gradient.radial.nonfinite</title>
|
|
<!-- Testing: createRadialGradient() throws NOT_SUPPORTED_ERR if arguments are not finite -->
|
|
<script src="/MochiKit/packed.js"></script>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
|
<body>
|
|
<canvas id="c" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
|
<script>
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
MochiKit.DOM.addLoadEvent(function () {
|
|
|
|
var canvas = document.getElementById('c');
|
|
var ctx = canvas.getContext('2d');
|
|
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(-Infinity, 0, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(NaN, 0, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, -Infinity, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, NaN, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, -Infinity, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, NaN, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, -Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, NaN, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, -Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, NaN, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, 0, -Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, 0, NaN);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, Infinity, 1, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, Infinity, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(Infinity, 0, 1, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, 0, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, Infinity, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, Infinity, 1, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, Infinity, 0, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, 0, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, Infinity, 0, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, Infinity, Infinity, 1);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, Infinity, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, Infinity, 0, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
var _thrown = undefined; try {
|
|
ctx.createRadialGradient(0, 0, 1, 0, Infinity, Infinity);
|
|
} catch (e) { _thrown = e }; todo(_thrown && _thrown.code == DOMException.NOT_SUPPORTED_ERR, "should throw NOT_SUPPORTED_ERR");
|
|
|
|
SimpleTest.finish();
|
|
|
|
});
|
|
</script>
|
|
|