Changeset 130677 in webkit
- Timestamp:
- Oct 8, 2012, 1:22:42 PM (14 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r130671 r130677 1 2012-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 1 16 2012-10-08 Jinwoo Song <jinwoo7.song@samsung.com> 2 17 -
trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp
r130637 r130677 117 117 } 118 118 119 static int compareHostNames(const void* hostName1, const void* hostName2) 120 { 121 return strcmp(static_cast<const char*>(hostName1), static_cast<const char*>(hostName2)); 122 } 123 119 124 TEST_F(EWK2UnitTestBase, ewk_cookie_manager_accept_policy) 120 125 { … … 142 147 hostnames = getHostnamesWithCookies(cookieManager); 143 148 ASSERT_EQ(2, eina_list_count(hostnames)); 149 hostnames = eina_list_sort(hostnames, eina_list_count(hostnames), compareHostNames); 144 150 ASSERT_STREQ(FIRST_PARTY_DOMAIN, static_cast<char*>(eina_list_nth(hostnames, 0))); 145 151 ASSERT_STREQ(THIRD_PARTY_DOMAIN, static_cast<char*>(eina_list_nth(hostnames, 1)));
Note:
See TracChangeset
for help on using the changeset viewer.