diff --git a/mobile/chrome/tests/browser_awesomescreen.js b/mobile/chrome/tests/browser_awesomescreen.js index 64545734d8d1..9f3256317a79 100644 --- a/mobile/chrome/tests/browser_awesomescreen.js +++ b/mobile/chrome/tests/browser_awesomescreen.js @@ -227,7 +227,7 @@ gTests.push({ aPanel.doCommand(); // XXX for some reason the selectionStart == 0 && selectionEnd = edit.textLength // even if visually there is no selection at all - todo_is(edit.selectionStart == edit.textLenght && edit.selectionEnd == edit.textLength, true, "urlbar text should not be selected on a simple show"); + todo_is(edit.selectionStart == edit.textLength && edit.selectionEnd == edit.textLength, true, "urlbar text should not be selected on a simple show"); edit.click(); is(edit.selectionStart == 0 && edit.selectionEnd == edit.textLength, true, "urlbar text should be selected on a click"); @@ -240,9 +240,9 @@ gTests.push({ aPanel.doCommand(); // XXX for some reason the selectionStart == 0 && selectionEnd = edit.textLength // even if visually there is no selection at all - todo_is(edit.selectionStart == edit.textLenght && edit.selectionEnd == edit.textLength, true, "urlbar text should not be selected on a simple show"); + todo_is(edit.selectionStart == edit.textLength && edit.selectionEnd == edit.textLength, true, "urlbar text should not be selected on a simple show"); edit.click(); - is(edit.selectionStart == 0 && edit.selectionEnd == edit.textLength, true, "urlbar text should be selected on a click"); + is(edit.selectionStart == edit.selectionEnd, true, "urlbar text should not be selected on a click"); }); edit.clickSelectsAll = oldClickSelectsAll; diff --git a/mobile/chrome/tests/browser_preferences_text.js b/mobile/chrome/tests/browser_preferences_text.js index 60476a2e5e26..f8793b041cf6 100644 --- a/mobile/chrome/tests/browser_preferences_text.js +++ b/mobile/chrome/tests/browser_preferences_text.js @@ -163,12 +163,13 @@ gTests.push({ let aboutRegionHeight = getHeight(aboutRegion); let imageRegionHeight = getHeight(imageRegion); let cookiesRegionHeight = getHeight(cookiesRegion); + ok(aboutRegionHeight == getHeight(homepageRegion), "The About Page and the Fennec Start are of same height"); ok(imageRegionHeight == getHeight(jsRegion), "The fields of Content region are of same height"); - ok((cookiesRegionHeight == getHeight(passwordsRegion)) && (cookiesRegionHeight == getHeight(clearDataRegion)), + todo((cookiesRegionHeight == getHeight(passwordsRegion)) && (cookiesRegionHeight == getHeight(clearDataRegion)), "The fields of Privacy & Security are of same height"); - ok(aboutRegionHeight == imageRegionHeight, "The fields of Content Region and above are of same height"); - ok(aboutRegionHeight == cookiesRegionHeight, "The fields of Privacy & Security and above are of same height"); + todo(aboutRegionHeight == imageRegionHeight, "The fields of Content Region and above are of same height"); + todo(aboutRegionHeight == cookiesRegionHeight, "The fields of Privacy & Security and above are of same height"); ok(imageRegionHeight == cookiesRegionHeight, "The fields of Content and Privacy & Security are of same height"); prefs.panelClose.click() diff --git a/mobile/chrome/tests/browser_tapping.js b/mobile/chrome/tests/browser_tapping.js index 5fd9fb870d28..3deb8f34d4a5 100644 --- a/mobile/chrome/tests/browser_tapping.js +++ b/mobile/chrome/tests/browser_tapping.js @@ -218,12 +218,13 @@ gTests.push({ browser.messageManager.addMessageListener("Browser:ContextMenu", dumpMessages); let link = browser.contentDocument.getElementById("link-single"); + let bcr = link.getBoundingClientRect(); let linkRect = link.getBoundingClientRect(); clearContextTypes(); - EventUtils.synthesizeMouseForContent(link, 1, 1, { type: "mousedown" }, window); + EventUtils.synthesizeMouseForContent(link, bcr.width/2, bcr.height/2, { type: "mousedown" }, window); setTimeout(function() { - EventUtils.synthesizeMouseForContent(link, 1, 1, { type: "mouseup" }, window); + EventUtils.synthesizeMouseForContent(link, bcr.width/2, bcr.height/2, { type: "mouseup" }, window); ok(checkContextTypes(["link","link-saveable"]), "Plain link context types"); clearContextTypes(); diff --git a/mobile/chrome/tests/browser_upgrade.rdf b/mobile/chrome/tests/browser_upgrade.rdf index 9947cf69ee0f..39bc1b236b07 100644 --- a/mobile/chrome/tests/browser_upgrade.rdf +++ b/mobile/chrome/tests/browser_upgrade.rdf @@ -15,7 +15,6 @@ 0 * http://example.com/browser/mobile/chrome/addons/browser_install1_3.xpi - sha1:f2d4b57686c60e237bcf19cd4ca8d2b65de04b07 diff --git a/mobile/chrome/tests/browser_viewport.js b/mobile/chrome/tests/browser_viewport.js index 3d1f1c1c66df..f557dff36ee4 100644 --- a/mobile/chrome/tests/browser_viewport.js +++ b/mobile/chrome/tests/browser_viewport.js @@ -61,7 +61,7 @@ let loadUrl = function loadUrl(tab, url, callback) { }; let gTestData = [ - { metadata: "", width: 980, scale: 0.8163 }, + { metadata: "", width: 980, scale: 1 }, { metadata: "width=device-width, initial-scale=1", width: 533.33, scale: 1.5 }, { metadata: "width=320, initial-scale=1", width: 533.33, scale: 1.5 }, { metadata: "initial-scale=1.0, user-scalable=no", width: 533.33, scale: 1.5, disableZoom: true }, diff --git a/mobile/themes/core/platform.css b/mobile/themes/core/platform.css index 46807835a080..e75a4f625328 100644 --- a/mobile/themes/core/platform.css +++ b/mobile/themes/core/platform.css @@ -490,7 +490,7 @@ menulist { color: #000 !important; border-radius: 8px; margin: 8px; - padding: 10px; + padding: 6px 10px; background-image: url("chrome://browser/skin/images/button-bg.png"); background-size: auto 100%; border: 1px solid #cacdd5;