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

Changeset 276195 in webkit


Ignore:
Timestamp:
Apr 16, 2021, 10:03:59 PM (5 years ago)
Author:
Lauro Moura
Message:

REGRESSION(r276164) [GTK] WKPreferencesDefaults API test is failing
https://bugs.webkit.org/show_bug.cgi?id=224710

Reviewed by Alex Christensen.

As of r276164, Mac/iOS disabled application cache by default but other
ports are still enabling it.

  • TestWebKitAPI/Tests/WebKit/WKPreferences.cpp:

(TestWebKitAPI::TEST): Add missing WPE guard and test against expected
port value instead of enforcing a single value for every port.

  • TestWebKitAPI/glib/TestExpectations.json: Remove WPE expected

failure.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r276193 r276195  
     12021-04-16  Lauro Moura  <lmoura@igalia.com>
     2
     3        REGRESSION(r276164) [GTK] WKPreferencesDefaults API test is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=224710
     5
     6        Reviewed by Alex Christensen.
     7
     8        As of r276164, Mac/iOS disabled application cache by default but other
     9        ports are still enabling it.
     10
     11        * TestWebKitAPI/Tests/WebKit/WKPreferences.cpp:
     12        (TestWebKitAPI::TEST): Add missing WPE guard and test against expected
     13        port value instead of enforcing a single value for every port.
     14        * TestWebKitAPI/glib/TestExpectations.json: Remove WPE expected
     15        failure.
     16
    1172021-04-16  Brent Fulgham  <bfulgham@apple.com>
    218
  • trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPreferences.cpp

    r276164 r276195  
    4545TEST(WebKit, WKPreferencesDefaults)
    4646{
    47 #if PLATFORM(GTK) || PLATFORM(PLAYSTATION)
     47#if PLATFORM(GTK) || PLATFORM(PLAYSTATION) || PLATFORM(WPE)
    4848    static const char* expectedStandardFontFamily = "Times";
    4949    static const char* expectedFixedFontFamily = "Courier New";
     
    5353    static const char* expectedFantasyFontFamily = "Impact";
    5454    static const char* expectedPictographFontFamily = "Times";
     55    bool expectedApplicationCacheEnabled = true;
    5556#elif WK_HAVE_C_SPI
    5657    static const char* expectedStandardFontFamily = "Times";
     
    6162    static const char* expectedFantasyFontFamily = "Papyrus";
    6263    static const char* expectedPictographFontFamily = "Apple Color Emoji";
     64    bool expectedApplicationCacheEnabled = false;
    6365#elif PLATFORM(IOS_FAMILY)
    6466    static const char* expectedStandardFontFamily = "Times";
     
    6971    static const char* expectedFantasyFontFamily = "Papyrus";
    7072    static const char* expectedPictographFontFamily = "AppleColorEmoji";
     73    bool expectedApplicationCacheEnabled = false;
    7174#endif
    7275
     
    7578    EXPECT_TRUE(WKPreferencesGetJavaScriptEnabled(preference));
    7679    EXPECT_TRUE(WKPreferencesGetLoadsImagesAutomatically(preference));
    77     EXPECT_FALSE(WKPreferencesGetOfflineWebApplicationCacheEnabled(preference));
     80    EXPECT_EQ(expectedApplicationCacheEnabled, WKPreferencesGetOfflineWebApplicationCacheEnabled(preference));
    7881    EXPECT_TRUE(WKPreferencesGetLocalStorageEnabled(preference));
    7982    EXPECT_TRUE(WKPreferencesGetXSSAuditorEnabled(preference));
  • trunk/Tools/TestWebKitAPI/glib/TestExpectations.json

    r275453 r276195  
    200200                "expected": {"gtk": {"status": ["SKIP"], "bug": "webkit.org/b/121970"}}
    201201            },
    202             "WebKit.WKPreferencesDefaults": {
    203                 "expected": {"wpe": {"status": ["FAIL"]}}
    204             },
    205202            "WebKit.HitTestResultNodeHandle": {
    206203                "expected": {"wpe": {"status": ["TIMEOUT"]}}
Note: See TracChangeset for help on using the changeset viewer.