⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130677 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 1:22:42 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] EWK2UnitTestBase.ewk_cookie_manager_accept_policy unit test is failing
​https://bugs.webkit.org/show_bug.cgi?id=98663

Patch by Christophe Dumez <Christophe Dumez> on 2012-10-08
Reviewed by Laszlo Gombos.

EWK2UnitTestBase.ewk_cookie_manager_accept_policy unit test was
failing because the elements of a list were checked in a given
order but the list was not sorted beforehand.

  • UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:

(sortHostNames):
(TEST_F):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r130671 r130677  
     12012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL][WK2] EWK2UnitTestBase.ewk_cookie_manager_accept_policy unit test is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=98663
     5
     6        Reviewed by Laszlo Gombos.
     7
     8        EWK2UnitTestBase.ewk_cookie_manager_accept_policy unit test was
     9        failing because the elements of a list were checked in a given
     10        order but the list was not sorted beforehand.
     11
     12        * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
     13        (sortHostNames):
     14        (TEST_F):
     15
    1162012-10-08  Jinwoo Song  <jinwoo7.song@samsung.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp

    r130637 r130677  
    117117}
    118118
     119static int compareHostNames(const void* hostName1, const void* hostName2)
     120{
     121    return strcmp(static_cast<const char*>(hostName1), static_cast<const char*>(hostName2));
     122}
     123
    119124TEST_F(EWK2UnitTestBase, ewk_cookie_manager_accept_policy)
    120125{
    … …  
    142147    hostnames = getHostnamesWithCookies(cookieManager);
    143148    ASSERT_EQ(2, eina_list_count(hostnames));
     149    hostnames = eina_list_sort(hostnames, eina_list_count(hostnames), compareHostNames);
    144150    ASSERT_STREQ(FIRST_PARTY_DOMAIN, static_cast<char*>(eina_list_nth(hostnames, 0)));
    145151    ASSERT_STREQ(THIRD_PARTY_DOMAIN, static_cast<char*>(eina_list_nth(hostnames, 1)));
Note: See TracChangeset for help on using the changeset viewer.