Fix .dropEmbedded()/.clickAt() test instability
They were passing in Chrome 48, they're still passing in Firefox 45, but
they're failing in Chrome 50, missing the 'm' by 1 pixel. Now it's
solidly in the 'm' in all browsers.
diff --git a/test/unit/publicapi.test.js b/test/unit/publicapi.test.js
index 91ef1f0..55645b6 100644
--- a/test/unit/publicapi.test.js
+++ b/test/unit/publicapi.test.js
@@ -790,7 +790,7 @@
var box = mq.el().getBoundingClientRect();
var clientX = box.left + 30;
- var clientY = box.top + 40;
+ var clientY = box.top + 30;
var target = document.elementFromPoint(clientX, clientY);
assert.equal(document.activeElement, document.body);
@@ -815,7 +815,7 @@
var box = mq.el().getBoundingClientRect();
var clientX = box.left + 30;
- var clientY = box.top + 40;
+ var clientY = box.top + 30;
assert.equal(document.activeElement, document.body);
mq.clickAt(clientX, clientY).write('x');
@@ -858,7 +858,7 @@
mq.el().scrollIntoView();
- mq.dropEmbedded(mqx + 30, mqy + 40, {
+ mq.dropEmbedded(mqx + 30, mqy + 30, {
htmlString: '<span class="embedded-html"></span>',
text: function () { return "embedded text" },
latex: function () { return "embedded latex" }