RESOLVED FIXED Bug 144828
[GTK] REGRESSION(r183936): Test /webkit2/WebKitWebContext/spell-checker fails since r183936
https://bugs.webkit.org/show_bug.cgi?id=144828
Summary [GTK] REGRESSION(r183936): Test /webkit2/WebKitWebContext/spell-checker fails...
Martin Robinson
Reported 2015-05-09 09:43:06 PDT
Developer mode now sets a language by default.
Attachments
Patch (1.92 KB, patch)
2015-05-09 09:48 PDT, Martin Robinson
no flags
Patch (2.00 KB, patch)
2015-05-09 10:16 PDT, Martin Robinson
no flags
Patch (8.52 KB, patch)
2015-06-30 09:23 PDT, Martin Robinson
no flags
Martin Robinson
Comment 1 2015-05-09 09:48:57 PDT
Martin Robinson
Comment 2 2015-05-09 10:16:14 PDT
Carlos Garcia Campos
Comment 3 2015-05-10 01:02:03 PDT
Comment on attachment 252779 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252779&action=review > Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:247 > +#if ENABLE_DEVELOPER_MODE This is always true here. We don't support tests in production builds, because they use internal symbols. This is a problem, because this is supposed to test the behaviour of the API in a production build, of course. > Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:248 > + // Developer mode builds have a language preset, for the purposes of layout tests. Would it be possible to add the default language from WTR instead of doing that unconditionally for development builds? Maybe adding new internals API.
Martin Robinson
Comment 4 2015-05-10 18:04:50 PDT
Comment on attachment 252779 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252779&action=review >> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:247 >> +#if ENABLE_DEVELOPER_MODE > > This is always true here. We don't support tests in production builds, because they use internal symbols. This is a problem, because this is supposed to test the behaviour of the API in a production build, of course. Good point. The tests should really be runnable for production builds. >> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:248 >> + // Developer mode builds have a language preset, for the purposes of layout tests. > > Would it be possible to add the default language from WTR instead of doing that unconditionally for development builds? Maybe adding new internals API. Yeah, this might be a decent moment to remove the hack I added for spell checking. I could add some static C API to set the languages.
Carlos Garcia Campos
Comment 5 2015-05-10 23:57:57 PDT
(In reply to comment #4) > Comment on attachment 252779 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=252779&action=review > > >> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:247 > >> +#if ENABLE_DEVELOPER_MODE > > > > This is always true here. We don't support tests in production builds, because they use internal symbols. This is a problem, because this is supposed to test the behaviour of the API in a production build, of course. > > Good point. The tests should really be runnable for production builds. We decided to make it easier to write the tests and use things like WTF, for example, which makes impossible to run the tests in production builds where all those symbols are not available. However, we should try to ensure that the behaviour of what we test is the same in a production build. > >> Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:248 > >> + // Developer mode builds have a language preset, for the purposes of layout tests. > > > > Would it be possible to add the default language from WTR instead of doing that unconditionally for development builds? Maybe adding new internals API. > > Yeah, this might be a decent moment to remove the hack I added for spell > checking. I could add some static C API to set the languages. Exactly.
Martin Robinson
Comment 6 2015-06-30 09:23:14 PDT
Carlos Garcia Campos
Comment 7 2015-06-30 22:40:54 PDT
Comment on attachment 255822 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=255822&action=review Thank you! > Tools/WebKitTestRunner/gtk/main.cpp:39 > + g_ptr_array_add(languages.get(), 0); nullptr
Martin Robinson
Comment 8 2015-07-01 07:52:26 PDT
Note You need to log in before you can comment on or make changes to this bug.