Bug 632493 - Handle non-finite values for lineTo per spec; r=roc

This commit is contained in:
Ms2ger 2011-03-29 14:05:00 -04:00
Родитель bc883e0241
Коммит f1d4c09e5a
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2089,7 +2089,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::LineTo(float x, float y)
{
if (!FloatValidate(x,y))
return NS_ERROR_DOM_SYNTAX_ERR;
return NS_OK;
mHasPath = PR_TRUE;
mThebes->LineTo(gfxPoint(x, y));

Просмотреть файл

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