Reviewed by Gustavo Noronha Silva.
* UIProcess/API/gtk/tests/TestBackForwardList.cpp:
(testBackForwardListLimitAndCache): Use an int instead of size_t
because we want to print them as ints and do subtraction on them.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@106145
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2012-01-27 Martin Robinson <mrobinson@igalia.com>
+ Fix a compilation warning in a WebKit2 GTK+ API test.
+
+ Reviewed by Gustavo Noronha Silva.
+
+ * UIProcess/API/gtk/tests/TestBackForwardList.cpp:
+ (testBackForwardListLimitAndCache): Use an int instead of size_t
+ because we want to print them as ints and do subtraction on them.
+
+2012-01-27 Martin Robinson <mrobinson@igalia.com>
+
[GTK] [WK2] Implement the policy client
https://bugs.webkit.org/show_bug.cgi?id=76343
#include <webkit2/webkit2.h>
// Back forward list limit is 100 by default.
-static const size_t kBackForwardListLimit = 100;
+static const int kBackForwardListLimit = 100;
static WebKitTestServer* kServer;
static void testBackForwardListLimitAndCache(BackForwardListTest* test, gconstpointer)
{
- for (size_t i = 0; i < kBackForwardListLimit; i++) {
+ for (int i = 0; i < kBackForwardListLimit; i++) {
GOwnPtr<char> path(g_strdup_printf("/Page%d", i));
test->m_changedFlags = BackForwardListTest::CurrentItem | BackForwardListTest::AddedItem;
test->loadURI(kServer->getURIForPath(path.get()).data());