Bug 1074733 - Part 4 - fix test_canvas.html tests with negative rects to no longer expect failure. r=jmuizelaar

--HG--
extra : rebase_source : 45ca0f5ae9a580a52029f963b508e709ce6f72ba
This commit is contained in:
Lee Salzman 2015-09-10 14:10:59 -04:00
Родитель 6367070446
Коммит 71f11d170c
1 изменённых файлов: 3 добавлений и 6 удалений

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

@ -3126,7 +3126,7 @@ isPixel(ctx, 75,25, 0,255,0,255, 2);
} catch (e) {
_thrown_outer = true;
}
todo(!_thrown_outer, 'should not throw exception');
ok(!_thrown_outer, 'should not throw exception');
}
@ -3166,7 +3166,7 @@ isPixel(ctx, 75,25, 0,255,0,255, 2);
} catch (e) {
_thrown_outer = true;
}
todo(!_thrown_outer, 'should not throw exception');
ok(!_thrown_outer, 'should not throw exception');
}
@ -3591,15 +3591,12 @@ var _thrown = undefined; try {
var _thrown = undefined; try {
ctx.drawImage(document.getElementById('red_11.png'), 0, 0, 5, -5, 0, 0, 100, 50);
} catch (e) { _thrown = e }; ok(_thrown && _thrown.name == "IndexSizeError" && _thrown.code == DOMException.INDEX_SIZE_ERR, "should throw IndexSizeError");
var _thrown = undefined; try {
ctx.drawImage(document.getElementById('red_11.png'), 110, 60, -20, -20, 0, 0, 100, 50);
} catch (e) { _thrown = e }; ok(_thrown && _thrown.name == "IndexSizeError" && _thrown.code == DOMException.INDEX_SIZE_ERR, "should throw IndexSizeError");
todo_isPixel(ctx, 50,25, 0,255,0,255, 2);
} catch (e) {
_thrown_outer = true;
}
todo(!_thrown_outer, 'should not throw exception');
ok(!_thrown_outer, 'should not throw exception');
}