Bug 173702

Summary: [WPE] Build glib API tests
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WPE WebKitAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, zan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 173705    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch zan: review+

Carlos Garcia Campos
Reported 2017-06-22 02:05:33 PDT
Many of the tests pass without problems, others need to be investigated, and some others are known issues.
Attachments
Patch (91.57 KB, patch)
2017-06-22 02:17 PDT, Carlos Garcia Campos
no flags
Patch (92.37 KB, patch)
2017-06-22 02:28 PDT, Carlos Garcia Campos
no flags
Patch (93.10 KB, patch)
2017-06-22 03:05 PDT, Carlos Garcia Campos
zan: review+
Carlos Garcia Campos
Comment 1 2017-06-22 02:17:06 PDT
Carlos Garcia Campos
Comment 2 2017-06-22 02:28:11 PDT
Created attachment 313601 [details] Patch I forgot to git add the wpe makefile.
Carlos Garcia Campos
Comment 3 2017-06-22 03:05:02 PDT
Zan Dobersek
Comment 4 2017-06-22 03:15:42 PDT
Comment on attachment 313606 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=313606&action=review > Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:57 > +#if PLATFORM(GTK) > memset(&m_geometry, 0, sizeof(GdkRectangle)); > +#endif sizeof(GdkRectangle) is wrong, should be cairo_rectangle_int_t. > Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:97 > +#if PLATFORM(GTK) > g_assert_cmpint(m_geometry.x, ==, other.m_geometry.x); > g_assert_cmpint(m_geometry.y, ==, other.m_geometry.y); > g_assert_cmpint(m_geometry.width, ==, other.m_geometry.width); > g_assert_cmpint(m_geometry.height, ==, other.m_geometry.height); > +#endif Can't this work for WPE as well with m_geometry being cairo_rectangle_int_t? Or is webkit_window_properties_get_geometry() not implemented for WPE?
Carlos Garcia Campos
Comment 5 2017-06-22 03:20:18 PDT
(In reply to Zan Dobersek from comment #4) > Comment on attachment 313606 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=313606&action=review > > > Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:57 > > +#if PLATFORM(GTK) > > memset(&m_geometry, 0, sizeof(GdkRectangle)); > > +#endif > > sizeof(GdkRectangle) is wrong, should be cairo_rectangle_int_t. There's no geometry in WPE yet, we need to figure out how to expose it. I used cairo rectangle in the other cases to reduce the amount of ifdefs, but it's not expected to work until we expose rectangle in WPE API. > > Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:97 > > +#if PLATFORM(GTK) > > g_assert_cmpint(m_geometry.x, ==, other.m_geometry.x); > > g_assert_cmpint(m_geometry.y, ==, other.m_geometry.y); > > g_assert_cmpint(m_geometry.width, ==, other.m_geometry.width); > > g_assert_cmpint(m_geometry.height, ==, other.m_geometry.height); > > +#endif > > Can't this work for WPE as well with m_geometry being cairo_rectangle_int_t? > Or is webkit_window_properties_get_geometry() not implemented for WPE? Exactly.
Carlos Garcia Campos
Comment 6 2017-06-22 04:12:51 PDT
Note You need to log in before you can comment on or make changes to this bug.