Commit 3816e0c5 authored by Simon Chae's avatar Simon Chae
Browse files

Issue #3666: Apply useWideViewPort to WebSetting

parent 1680452c
......@@ -281,6 +281,7 @@ class SystemEngineSession(
override var userAgentString by WebSetting(s::getUserAgentString, s::setUserAgentString)
override var displayZoomControls by WebSetting(s::getDisplayZoomControls, s::setDisplayZoomControls)
override var loadWithOverviewMode by WebSetting(s::getLoadWithOverviewMode, s::setLoadWithOverviewMode)
override var useWideViewPort by WebSetting(s::getUseWideViewPort, s::setUseWideViewPort)
override var supportMultipleWindows by WebSetting(s::supportMultipleWindows, s::setSupportMultipleWindows)
override var allowFileAccessFromFileURLs by WebSetting(
s::getAllowFileAccessFromFileURLs, s::setAllowFileAccessFromFileURLs)
......@@ -637,7 +637,8 @@ class SystemEngineSessionTest {
fun desktopMode() {
val userAgentMobile = "Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 Mobile Safari/537.36"
val engineSession = spy(SystemEngineSession(testContext))
val defaultSettings = DefaultSettings()
val engineSession = spy(SystemEngineSession(testContext, defaultSettings))
val webView = mock<WebView>()
val webViewSettings = mock<WebSettings>()
var desktopMode = false
Supports Markdown
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