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

This commit is contained in:
Brian Grinstead 2015-10-01 13:26:11 -07:00
parent 442348ecd9
commit 298bdf596d
2 changed files with 5 additions and 1 deletions

View File

@ -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);
},
/**

View File

@ -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");