RESOLVED FIXED77320
[EFL] Add basic DRT/Efl implementation to support viewport test.
https://bugs.webkit.org/show_bug.cgi?id=77320
Summary [EFL] Add basic DRT/Efl implementation to support viewport test.
Ryuan Choi
Reported 2012-01-29 23:54:43 PST
Patch will be added.
Attachments
Patch (7.11 KB, patch)
2012-01-30 00:05 PST, Ryuan Choi
no flags
Patch (7.22 KB, patch)
2012-01-30 20:21 PST, Ryuan Choi
no flags
Patch (7.22 KB, patch)
2012-01-30 20:23 PST, Ryuan Choi
no flags
Ryuan Choi
Comment 1 2012-01-30 00:05:36 PST
Gyuyoung Kim
Comment 2 2012-01-30 00:16:50 PST
Comment on attachment 124501 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=124501&action=review I wonder how many viewport test cases are passed by this patch. > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:403 > + printf("viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attributes.layoutSize.width(), attributes.layoutSize.height(), attributes.initialScale, attributes.minimumScale, attributes.maximumScale, attributes.userScalable); printf can influence on layout test result. Remove it or change other thing.
Ryuan Choi
Comment 3 2012-01-30 00:23:38 PST
(In reply to comment #2) > (From update of attachment 124501 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=124501&action=review > > I wonder how many viewport test cases are passed by this patch. > 143 test cases are passed with this. > > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:403 > > + printf("viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attributes.layoutSize.width(), attributes.layoutSize.height(), attributes.initialScale, attributes.minimumScale, attributes.maximumScale, attributes.userScalable); > > printf can influence on layout test result. Remove it or change other thing. It is what I want, because The expected result of viewport tests check above. Gtk use fprintf(stdout, ... and Qt use fputs for it. I found that DRT/Efl are using printf for the test result, so I choosed printf.
Gyuyoung Kim
Comment 4 2012-01-30 00:35:30 PST
Comment on attachment 124501 [details] Patch Personally, I would like to avoid to use printf directly. Because, IMHO, printf can make us confuse if this is real debug message or not. Though tiled backing store files are using printf in efl port now, I think the printf should be replaced by other's.
Ryuan Choi
Comment 5 2012-01-30 00:54:13 PST
(In reply to comment #4) > (From update of attachment 124501 [details]) > Personally, I would like to avoid to use printf directly. Because, IMHO, printf can make us confuse if this is real debug message or not. Though tiled backing store files are using printf in efl port now, I think the printf should be replaced by other's. I used printf because DRT/Efl are using printf in other area. But, printf, fprintf, fputs are not important for me. If you and kubo and other guys like fprintf more, I can revise the patch. Kubo, how do you think about it ?
KwangHyuk
Comment 6 2012-01-30 08:37:16 PST
Just a few fixes may be required. > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:389 > +void DumpRenderTreeSupportEfl::dumpConfigurationForViewport(Evas_Object* ewkView, int deviceDPI, const WebCore::IntSize& deviceSize, const WebCore::IntSize& availableSize) Why don't you use const type for deviceDPI ? > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:397 > + /*default layout width for non-mobile pages */ 980, /*default <= check this ? > LayoutTests/ChangeLog:8 > + Removed fast/viewport from Skipped and add some tests which is not passed. Removed -> Remove :) is not passed -> aren't passed
Ryuan Choi
Comment 7 2012-01-30 20:21:00 PST
Ryuan Choi
Comment 8 2012-01-30 20:23:15 PST
Ryuan Choi
Comment 9 2012-01-30 20:24:01 PST
(In reply to comment #6) > Just a few fixes may be required. > > > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:389 > > +void DumpRenderTreeSupportEfl::dumpConfigurationForViewport(Evas_Object* ewkView, int deviceDPI, const WebCore::IntSize& deviceSize, const WebCore::IntSize& availableSize) > > Why don't you use const type for deviceDPI ? Does it have any benefits ? IMO, it's not problem. > > > Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:397 > > + /*default layout width for non-mobile pages */ 980, > > /*default <= check this ? fixed. > > > LayoutTests/ChangeLog:8 > > + Removed fast/viewport from Skipped and add some tests which is not passed. > > Removed -> Remove :) > is not passed -> aren't passed fixed. Thanks for my typo.
Gyuyoung Kim
Comment 10 2012-01-30 20:45:38 PST
Comment on attachment 124663 [details] Patch LGTM. :-)
WebKit Review Bot
Comment 11 2012-01-31 21:46:48 PST
Comment on attachment 124663 [details] Patch Clearing flags on attachment: 124663 Committed r106431: <http://trac.webkit.org/changeset/106431>
WebKit Review Bot
Comment 12 2012-01-31 21:46:57 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.