Bug 133171 - [WebKit2-EFL] Fix EWK2BackForwardListTest test fails
Summary: [WebKit2-EFL] Fix EWK2BackForwardListTest test fails
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 22:42 PDT by Shivakumar J M
Modified: 2014-06-04 02:46 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.23 KB, patch)
2014-05-21 23:35 PDT, Shivakumar J M
no flags Details | Formatted Diff | Diff
Patch-Updated (9.07 KB, patch)
2014-05-22 01:53 PDT, Shivakumar J M
no flags Details | Formatted Diff | Diff
Patch-Updated-Review (7.44 KB, patch)
2014-05-22 02:47 PDT, Shivakumar J M
no flags Details | Formatted Diff | Diff
Patch for landing (7.48 KB, patch)
2014-05-26 21:06 PDT, Shivakumar J M
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shivakumar J M 2014-05-21 22:42:23 PDT
Start  7: test_ewk2_back_forward_list
 7/68 Test  #7: test_ewk2_back_forward_list ........................***Failed    2.92 sec
Xlib:  extension "DPMS" missing on display ":55".
[==========] Running 7 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 7 tests from EWK2BackForwardListTest
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_current_item_get
[       OK ] EWK2BackForwardListTest.ewk_back_forward_list_current_item_get (367 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_previous_item_get
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:108: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_previous_item_get (379 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_next_item_get
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:129: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_next_item_get (329 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_item_at_index_get
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:156: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_item_at_index_get (328 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_count
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:180: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_count (327 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_n_back_items_copy
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:198: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_n_back_items_copy (373 ms)
[ RUN      ] EWK2BackForwardListTest.ewk_back_forward_list_n_forward_items_copy
/home/shiva.jm/webkit-git/svngitmay14/WebKit/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:234: Failure
Value of: ewk_view_title_get(webView())
  Actual: "ERROR: The requested URL could not be retrieved"
Expected: title1
Which is: "Page1"
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_n_forward_items_copy (363 ms)
[----------] 7 tests from EWK2BackForwardListTest (2467 ms total)

[----------] Global test environment tear-down
[==========] 7 tests from 1 test case ran. (2467 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 6 tests, listed below:
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_previous_item_get
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_next_item_get
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_item_at_index_get
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_count
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_n_back_items_copy
[  FAILED  ] EWK2BackForwardListTest.ewk_back_forward_list_n_forward_items_copy

 6 FAILED TESTS
Comment 1 Shivakumar J M 2014-05-21 23:35:30 PDT
Created attachment 231861 [details]
Patch

Use local test html pages instead of EWK2UnitTestServer for ewk2_back_forward_list tests.
Comment 2 Grzegorz Czajkowski 2014-05-22 00:11:00 PDT
Comment on attachment 231861 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=231861&action=review

Thanks for fixing it. The patch itself looks good to me. Please consider adding some details to ChangeLog.

> Source/WebKit2/ChangeLog:3
> +        [WebKit2-EFL] Fix EWK2BackForwardListTest test fails

Nit: generally we use [EFL][WK2] prefix.

> Source/WebKit2/ChangeLog:8
> +        Use local test html pages instead of EWK2UnitTestServer for ewk2_back_forward_list tests.

Could you mention in ChangeLog why this change is needed (why can not EWK2UnitTestServer load the page properly)? I believe that, this note will encourage reviewers to have a look at the patch.
Comment 3 Shivakumar J M 2014-05-22 01:53:39 PDT
Created attachment 231870 [details]
Patch-Updated

Updated the changeLog file, as per review comments.
Comment 4 Grzegorz Czajkowski 2014-05-22 02:32:46 PDT
Comment on attachment 231870 [details]
Patch-Updated

View in context: https://bugs.webkit.org/attachment.cgi?id=231870&action=review

> Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:-48
> -    unsigned int width = environment->defaultWidth();

Would you mind submitting those code style changes in a separate patch since those are not connected with the failures?
Comment 5 Shivakumar J M 2014-05-22 02:47:22 PDT
Created attachment 231872 [details]
Patch-Updated-Review

Removed the code style changes updated in old patch ( 231870).
Comment 6 Grzegorz Czajkowski 2014-05-22 03:54:37 PDT
Comment on attachment 231872 [details]
Patch-Updated-Review

Thanks for updates. Seems fine to me.
Comment 7 Gyuyoung Kim 2014-05-26 02:04:53 PDT
Comment on attachment 231872 [details]
Patch-Updated-Review

View in context: https://bugs.webkit.org/attachment.cgi?id=231872&action=review

LGTM

> Source/WebKit2/ChangeLog:3
> +        [EFL] [WK2] Fix EWK2BackForwardListTest test fails

ditto.
Comment 8 Shivakumar J M 2014-05-26 21:06:15 PDT
Created attachment 232107 [details]
Patch for landing
Comment 9 WebKit Commit Bot 2014-05-26 21:53:05 PDT
Comment on attachment 232107 [details]
Patch for landing

Clearing flags on attachment: 232107

Committed r169367: <http://trac.webkit.org/changeset/169367>
Comment 10 WebKit Commit Bot 2014-05-26 21:53:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Shivakumar J M 2014-06-04 02:46:10 PDT
Bug is fixed, tested in version 169584.