зеркало из https://github.com/mozilla/gecko-dev.git
Bug 976563 - Force-enable double-tap-to-zoom to restore talos baseline. r=wesj
This commit is contained in:
Родитель
35c25b7f91
Коммит
70b9ac4aa7
|
@ -1,5 +1,6 @@
|
|||
package org.mozilla.gecko.tests;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class testCheck2 extends PixelTest {
|
||||
@Override
|
||||
|
@ -10,6 +11,17 @@ public class testCheck2 extends PixelTest {
|
|||
public void testCheck2() {
|
||||
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();
|
||||
loadAndPaint(url);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче