Commit 1f0c003f authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[quickview] Update QuickView test for transparent <webview> background

Fix test after CL:1933859, now the background color is transparent.

No-try: true
No-presubmit: true
Bug: 742944
Change-Id: Ib9af5c847f5453394d8f2062f3bd97f9d2a1c901
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1933864Reviewed-by: default avatarAustin Tankiang <austinct@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718538}
parent 7c3e36ff
...@@ -461,7 +461,7 @@ ...@@ -461,7 +461,7 @@
/** /**
* Tests opening Quick View on a text document to verify that the background * Tests opening Quick View on a text document to verify that the background
* color of the <webview> root (html) element is solid white. * color of the <webview> root (html) element.
*/ */
testcase.openQuickViewBackgroundColorText = async () => { testcase.openQuickViewBackgroundColorText = async () => {
const caller = getCaller(); const caller = getCaller();
...@@ -501,8 +501,8 @@ ...@@ -501,8 +501,8 @@
const backgroundColor = await remoteCall.callRemoteTestUtil( const backgroundColor = await remoteCall.callRemoteTestUtil(
'deepExecuteScriptInWebView', appId, [webView, getBackgroundStyle]); 'deepExecuteScriptInWebView', appId, [webView, getBackgroundStyle]);
// Check: the <webview> root backgroundColor should be solid white. // Check: the <webview> root backgroundColor should be transparent.
chrome.test.assertEq('rgb(255, 255, 255)', backgroundColor[0]); chrome.test.assertEq('rgba(0, 0, 0, 0)', backgroundColor[0]);
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment