Bug 976563 - Force-enable double-tap-to-zoom to restore talos baseline. r=wesj

This commit is contained in:
Kartikaya Gupta 2014-04-07 10:09:45 -04:00
Родитель 35c25b7f91
Коммит 70b9ac4aa7
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,6 @@
package org.mozilla.gecko.tests; package org.mozilla.gecko.tests;
import org.json.JSONObject;
public class testCheck2 extends PixelTest { public class testCheck2 extends PixelTest {
@Override @Override
@ -10,6 +11,17 @@ public class testCheck2 extends PixelTest {
public void testCheck2() { public void testCheck2() {
String url = getAbsoluteUrl("/startup_test/fennecmark/cnn/cnn.com/index.html"); String url = getAbsoluteUrl("/startup_test/fennecmark/cnn/cnn.com/index.html");
// Enable double-tap zooming
JSONObject jsonPref = new JSONObject();
try {
jsonPref.put("name", "browser.ui.zoom.force-user-scalable");
jsonPref.put("type", "bool");
jsonPref.put("value", true);
setPreferenceAndWaitForChange(jsonPref);
} catch (Exception ex) {
mAsserter.ok(false, "exception in testCheck2", ex.toString());
}
blockForGeckoReady(); blockForGeckoReady();
loadAndPaint(url); loadAndPaint(url);