Bug 501957 - Fix test_contextmenu_list.xul to deal with fractional positions. r=enndeakin

This commit is contained in:
Markus Stange 2009-07-21 14:36:41 +02:00
Родитель a29d7ab7fb
Коммит 88ba32cdf0
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -156,8 +156,8 @@ function checkContextMenu(event)
var frombase = (gTestId == -1 || gTestId == 1);
if (!frombase)
rect = event.originalTarget.getBoundingClientRect();
left = frombase ? rect.left + 7 : rect.left;
top = frombase ? rect.top + 4 : rect.bottom;
left = Math.round(frombase ? rect.left + 7 : rect.left);
top = Math.round(frombase ? rect.top + 4 : rect.bottom);
is(event.clientX, left, gTestElement + " clientX " + gSelectionStep + " " + gTestId + "," + frombase);
is(event.clientY, top, gTestElement + " clientY " + gSelectionStep + " " + gTestId);