Skip to content
Permalink
Browse files
REGRESSION(r188206): [EFL] Adjust scrollbar width to ewk_view_content…
…s_size_get API test

https://bugs.webkit.org/show_bug.cgi?id=148701

Reviewed by Csaba Osztrogonác.

r188206 applied to use non-overlay scrollbar on EFL minibrowser. So we need to
adjust scrollwidth to ewk_view_contents_size_get API test as well.

* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):


Canonical link: https://commits.webkit.org/166834@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Gyuyoung committed Sep 2, 2015
1 parent 7034dfc commit 586a41e326e3f3aba1720171d79ea7cba4fb9402
Showing 2 changed files with 16 additions and 1 deletion.
@@ -1,3 +1,16 @@
2015-09-02 Gyuyoung Kim <gyuyoung.kim@webkit.org>

REGRESSION(r188206): [EFL] Adjust scrollbar width to ewk_view_contents_size_get API test
https://bugs.webkit.org/show_bug.cgi?id=148701

Reviewed by Csaba Osztrogonác.

r188206 applied to use non-overlay scrollbar on EFL minibrowser. So we need to
adjust scrollwidth to ewk_view_contents_size_get API test as well.

* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):

2015-09-02 Emanuele Aina <emanuele.aina@collabora.com>

Fix build with ENABLE(DATABASE_PROCESS) and !ENABLE(INDEXED_DATABASE)
@@ -33,6 +33,8 @@ static bool fullScreenCallbackCalled;
static bool obtainedPageContents = false;
static bool scriptExecuteCallbackCalled;

static const int scrollBarWidth = 10;

static struct {
const char* expectedMessage;
bool called;
@@ -1205,7 +1207,7 @@ TEST_F(EWK2ViewTest, ewk_view_contents_size_get)
ASSERT_TRUE(loadUrlSync(environment->defaultTestPageUrl()));
ewk_view_contents_size_get(webView(), &contentsWidth, &contentsHeight);

EXPECT_EQ(environment->defaultWidth(), contentsWidth);
EXPECT_EQ(environment->defaultWidth() - scrollBarWidth, contentsWidth);
EXPECT_EQ(environment->defaultHeight(), contentsHeight);

#if HAVE(CAIRO_SURFACE_SET_DEVICE_SCALE)

0 comments on commit 586a41e

Please sign in to comment.