Bug 247875 - REGRESSION(255715@main) [WinCairo] TestWebCore.WebCoreBundleTest.BundlePathFromNameTypeDirectory is failing
Summary: REGRESSION(255715@main) [WinCairo] TestWebCore.WebCoreBundleTest.BundlePathFr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-13 20:44 PST by Fujii Hironori
Modified: 2022-11-14 01:52 PST (History)
3 users (show)

See Also:


Attachments
Patch (2.07 KB, patch)
2022-11-13 20:57 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2022-11-13 20:44:17 PST
REGRESSION(255715@main) [WinCairo] TestWebCore.WebCoreBundleTest.BundlePathFromNameTypeDirectory is failing

>     TestWebCore.WebCoreBundleTest.BundlePathFromNameTypeDirectory
> 
>         C:\home\webkit\gc\Tools\TestWebKitAPI\Tests\WebCore\win\WebCoreBundle.cpp:70
>         Expected equality of these values:
>           expected.utf8().data()
>             Which is: "C:\\home\\webkit\\gc\\WebKitBuild\\Debug\\bin64\\WebKit.resources\\en.lproj\\mediaControlsLocalizedStrings.js"
>           actual.utf8().data()
>             Which is: ""
Comment 1 Fujii Hironori 2022-11-13 20:57:04 PST
Created attachment 463512 [details]
Patch
Comment 2 Ross Kirsling 2022-11-14 00:09:07 PST
Comment on attachment 463512 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=463512&action=review

r=me with a comment, given that the GTK failure seems to be an existing flaky test.

> Tools/TestWebKitAPI/Tests/WebCore/win/WebCoreBundle.cpp:70
> +    actual = WebCore::webKitBundlePath("Localizable"_s, "strings"_s, ""_s);
> +    expected = FileSystem::pathByAppendingComponents(m_root, { "en.lproj"_s, "Localizable.strings"_s });
> +    EXPECT_STREQ(expected.utf8().data(), actual.utf8().data());

These lines don't need #if ENABLE(MODERN_MEDIA_CONTROLS)?
Comment 3 Fujii Hironori 2022-11-14 00:54:07 PST
Comment on attachment 463512 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=463512&action=review

>> Tools/TestWebKitAPI/Tests/WebCore/win/WebCoreBundle.cpp:70
>> +    EXPECT_STREQ(expected.utf8().data(), actual.utf8().data());
> 
> These lines don't need #if ENABLE(MODERN_MEDIA_CONTROLS)?

No, it doesn't. Localizable.strings is used by both conditions.
Comment 4 EWS 2022-11-14 01:51:21 PST
Committed 256644@main (341038cce116): <https://commits.webkit.org/256644@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 463512 [details].
Comment 5 Radar WebKit Bug Importer 2022-11-14 01:52:17 PST
<rdar://problem/102311470>