Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1395)

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java

Issue 1241723002: Revert "Adjust the text size using page scale information" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
index dbd541e80198e36ad5b303f8d5fa1a415441f7a5..17f94deabb90d037e0b555fc83e65c571f462f54 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
@@ -558,8 +558,6 @@ public class AwContentsTest extends AwTestBase {
}
}
- private float mPageScale;
-
private AccessibilitySnapshotNode receiveAccessibilitySnapshot(String data) throws Throwable {
final AwTestContainerView testView = createAwTestContainerViewOnMainSync(mContentsClient);
final AwContents awContents = testView.getAwContents();
@@ -582,7 +580,6 @@ public class AwContentsTest extends AwTestBase {
@Override
public void run() {
awContents.requestAccessibilitySnapshot(callback);
- mPageScale = awContents.getScale();
}
});
callbackHelper.waitForCallback(callbackCount);
@@ -634,7 +631,7 @@ public class AwContentsTest extends AwTestBase {
AccessibilitySnapshotNode child = root.children.get(0);
assertTrue(child.hasStyle);
assertEquals("foo", child.text);
- assertEquals(11.0 * mPageScale, child.textSize, 0.01);
+ assertEquals(11.0, child.textSize, 0.01);
}
@Feature({"AndroidWebView"})
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698