Bug 632469 - Handle non-finite values for clearRect per spec; r=smaug

This commit is contained in:
Ms2ger 2011-03-29 22:24:53 -04:00
parent 152132c477
commit d5bdb8e8be
2 changed files with 2 additions and 2 deletions

View File

@ -1979,7 +1979,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::ClearRect(float x, float y, float w, float h)
{
if (!FloatValidate(x,y,w,h))
return NS_ERROR_DOM_SYNTAX_ERR;
return NS_OK;
PathAutoSaveRestore pathSR(this);
gfxContextAutoSaveRestore autoSR(mThebes);

View File

@ -245,7 +245,7 @@ isPixel(ctx, 50,25, 0,255,0,255, 0);
} catch (e) {
_thrown_outer = true;
}
todo(!_thrown_outer, 'should not throw exception');
ok(!_thrown_outer, 'should not throw exception');
}