зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset
--HG-- extra : commitid : ABZ4sRFrE7H
This commit is contained in:
Родитель
365b592767
Коммит
ca3ad23ec4
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче