Bug 939534 - Follow-up to the follow-up to address review comments to address orange that caused (mark tests fuzzy). r=me

This commit is contained in:
Jonathan Watt 2013-11-18 11:17:09 +00:00
Родитель 6c15e6aa6e
Коммит 937d3e90f6
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -148,7 +148,7 @@ function runTest()
is(text3.getEndPositionOfChar(12).y, 253, "text3 char 12 end offset");
ok(text3.getExtentOfChar(12).y < 253, "text3 char 12 extent y");
ok(ymost(text3.getExtentOfChar(12)) > 253, "text3 char 12 extent height");
is(text3.getRotationOfChar(12), 180, "text3 char 12 rotation");
isfuzzy(text3.getRotationOfChar(12), 180, 0.001, "text3 char 12 rotation");
p.x = text3.getExtentOfChar(12).x + 0.1;
p.y = ymost(text3.getExtentOfChar(12)) - 0.1;
is(text3.getCharNumAtPosition(p), 12, "text3 finding char 12");

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

@ -111,10 +111,10 @@ function runTest()
// character 12 should be on the bottom side
is(text2.getStartPositionOfChar(12).y, 860, "text2 char 12 start offset");
is(text2.getEndPositionOfChar(12).y, 860, "text2 char 12 end offset");
isfuzzy(text2.getEndPositionOfChar(12).y, 860, 0.001, "text2 char 12 end offset");
ok(text2.getExtentOfChar(12).y < 860, "text2 char 12 extent y");
ok(ymost(text2.getExtentOfChar(12)) > 860, "text2 char 12 extent height");
is(text2.getRotationOfChar(12), 180, "text2 char 12 rotation");
isfuzzy(text2.getRotationOfChar(12), 180, 0.001, "text2 char 12 rotation");
p.x = text2.getExtentOfChar(12).x + 0.1;
p.y = ymost(text2.getExtentOfChar(12)) - 0.1;
is(text2.getCharNumAtPosition(p), 12, "text2 finding char 12");