Bug 1098151 - Make the test a bit more forgiving to pass on Mac, like the following test.

MANUAL PUSH: Fix orange.

CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2020-03-30 18:01:57 +02:00
Родитель 2e7a5a707a
Коммит 0bd5a5bb55
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -39,7 +39,7 @@ function runTests() {
var editor5 = document.getElementById("editor5");
var editor6 = document.getElementById("editor6");
is(editor1.getBoundingClientRect().height, editor0.getBoundingClientRect().height,
ok(Math.abs(editor1.getBoundingClientRect().height - editor0.getBoundingClientRect().height) <= 1,
"an editor having a <br> element and an empty editor should be same height");
ok(Math.abs(editor1.getBoundingClientRect().height - editor2.getBoundingClientRect().height) <= 1,
"an editor having only a <br> element and an editor having \"a\" should be same height");