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

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

Issue 19693016: Hooking up setBackgroundColor from AwContents to render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ity. Created 7 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
Index: android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java
index 5998b343509414c094ce81112e1ed6d639fde9fb..42de0be09b47269272eb9f97e29a4d5053685506 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java
@@ -8,8 +8,6 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
-import android.graphics.Bitmap;
-import android.graphics.Color;
import android.net.Proxy;
import android.test.FlakyTest;
import android.test.mock.MockContext;
@@ -113,28 +111,4 @@ public class ContentViewMiscTest extends AwTestBase {
receiverRef.get().onReceive(context, intent);
assertEquals(true, proxyChanged.get());
}
-
- /**
- * @SmallTest
- * @Feature({"AndroidWebView"})
- * Bug 6931901
- */
- @DisabledTest
- public void testSetGetBackgroundColor() throws Throwable {
- loadUrlSync(mAwContents , mContentsClient.getOnPageFinishedHelper(), "about:blank");
- ThreadUtils.runOnUiThreadBlocking(new Runnable() {
- @Override
- public void run() {
- mContentViewCore.setBackgroundColor(Color.MAGENTA);
- }
- });
- int backgroundColor = ThreadUtils.runOnUiThreadBlocking(new Callable<Integer>() {
- @Override
- public Integer call() {
- Bitmap map = mContentViewCore.getBitmap(1, 1);
- return map.getPixel(0,0);
- }
- });
- assertEquals(Color.MAGENTA, backgroundColor);
- }
}

Powered by Google App Engine
This is Rietveld 408576698