summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/chrome/selectAtPoint.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/chrome/selectAtPoint.html')
-rw-r--r--dom/tests/mochitest/chrome/selectAtPoint.html12
1 files changed, 3 insertions, 9 deletions
diff --git a/dom/tests/mochitest/chrome/selectAtPoint.html b/dom/tests/mochitest/chrome/selectAtPoint.html
index 8c625e6f7..6326b500f 100644
--- a/dom/tests/mochitest/chrome/selectAtPoint.html
+++ b/dom/tests/mochitest/chrome/selectAtPoint.html
@@ -127,13 +127,7 @@
targetPoint = { xPos: rect.left + ((charDims.width * 4) + (charDims.width / 2)),
yPos: rect.top + (charDims.height / 2) };
setEnd(dwu, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_CHARACTER);
- if (isLinux || isMac) {
- // XXX I think this is a bug, the right hand selection is 4.5 characters over with a
- // monspaced font. what we want: t(te)s(ts)election1 what we get: t(te)st(se)lection1
- checkSelection(document, "split selection", "tese");
- } else if (isWindows) {
- checkSelection(document, "split selection", "tets");
- }
+ checkSelection(document, "split selection", "tets");
// Trying to select where there's no text, should fail but not throw
let result = dwu.selectAtPoint(rect.left - 20, rect.top - 20, Ci.nsIDOMWindowUtils.SELECT_CHARACTER, false);
@@ -228,7 +222,7 @@
<style type="text/css">
body {
- font-family: monospace;
+ font-family: 'Courier New';
margin-left: 40px;
margin-top: 40px;
padding: 0;
@@ -267,7 +261,7 @@ body {
<br />
-<iframe id="frame1" src="data:text/html,<html><body style='margin: 0; padding: 0; font-family: monospace;' onload='window.parent.onFrameLoad();'><div id='sel2'>ttestselection2 Lorem ipsum dolor sit amet, at duo debet graeci, vivendum vulputate per ut.</div><br/><br/></body></html>"></iframe>
+<iframe id="frame1" src="data:text/html,<html><body style='margin: 0; padding: 0; font-family: \'Courier New\';' onload='window.parent.onFrameLoad();'><div id='sel2'>ttestselection2 Lorem ipsum dolor sit amet, at duo debet graeci, vivendum vulputate per ut.</div><br/><br/></body></html>"></iframe>
<br/>