[WebKit2][gtk] Fix assert while running TestWebKitSettings
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 08:53:07 +0000 (08:53 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 08:53:07 +0000 (08:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=72469

Patch by Nayan Kumar K <nayankk@motorola.com> on 2011-11-17
Reviewed by Martin Robinson.

* UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
(testWebKitSettings): Correct the test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100578 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitSettings.cpp

index d8e1c0fd8603cf94fb9a18dbedab5af9b9b05804..45f23fbb006e0291b9f49ab35873bceb41428a6a 100644 (file)
@@ -1,3 +1,13 @@
+2011-11-17  Nayan Kumar K  <nayankk@motorola.com>
+
+        [WebKit2][gtk] Fix assert while running TestWebKitSettings
+        https://bugs.webkit.org/show_bug.cgi?id=72469
+
+        Reviewed by Martin Robinson.
+
+        * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
+        (testWebKitSettings): Correct the test.
+
 2011-11-16  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Use a URI instead of local path to create download destination in WebKit2
index 46c6fffe72065af055a9806c812fd87bb056d836..548d581d1c556e97be7d8ac9f2eb22f345d5f824 100644 (file)
@@ -147,8 +147,8 @@ static void testWebKitSettings(Test*, gconstpointer)
     webkit_settings_set_default_monospace_font_size(settings, 12);
     g_assert_cmpuint(webkit_settings_get_default_monospace_font_size(settings), ==, 12);
 
-    // Default minimum font size is 5.
-    g_assert_cmpuint(webkit_settings_get_minimum_font_size(settings), ==, 5);
+    // Default minimum font size is 0.
+    g_assert_cmpuint(webkit_settings_get_minimum_font_size(settings), ==, 0);
     webkit_settings_set_minimum_font_size(settings, 7);
     g_assert_cmpuint(webkit_settings_get_minimum_font_size(settings), ==, 7);