Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset

--HG--
extra : commitid : ABZ4sRFrE7H
This commit is contained in:
Brian Grinstead 2015-10-01 13:26:11 -07:00
Родитель 365b592767
Коммит ca3ad23ec4
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1929,7 +1929,7 @@ MarkupContainer.prototype = {
// If this is the last child, use the closing <div.tag-line> of parent as indicator
this.markup.indicateDragTarget(this.elt.nextElementSibling ||
this.markup.getContainer(this.node.parentNode()).closeTagLine);
}, this.GRAB_DELAY);
}, this.markup.GRAB_DELAY);
},
/**

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

@ -27,6 +27,10 @@ add_task(function*() {
ok(!el.isDragging, "isDragging should not be set to true immediately");
info("Waiting for 10ms");
yield wait(10);
ok(!el.isDragging, "isDragging should not be set to true after a brief wait");
info("Waiting " + (GRAB_DELAY + 1) + "ms");
yield wait(GRAB_DELAY + 1);
ok(el.isDragging, "isDragging true after GRAB_DELAY has passed");