Bug 77320 - [EFL] Add basic DRT/Efl implementation to support viewport test.
Summary: [EFL] Add basic DRT/Efl implementation to support viewport test.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryuan Choi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 23:54 PST by Ryuan Choi
Modified: 2012-01-31 21:46 PST (History)
5 users (show)

See Also:


Attachments
Patch (7.11 KB, patch)
2012-01-30 00:05 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (7.22 KB, patch)
2012-01-30 20:21 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (7.22 KB, patch)
2012-01-30 20:23 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2012-01-29 23:54:43 PST
Patch will be added.
Comment 1 Ryuan Choi 2012-01-30 00:05:36 PST
Created attachment 124501 [details]
Patch
Comment 2 Gyuyoung Kim 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.
Comment 3 Ryuan Choi 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.
Comment 4 Gyuyoung Kim 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.
Comment 5 Ryuan Choi 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 ?
Comment 6 KwangHyuk 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
Comment 7 Ryuan Choi 2012-01-30 20:21:00 PST
Created attachment 124662 [details]
Patch
Comment 8 Ryuan Choi 2012-01-30 20:23:15 PST
Created attachment 124663 [details]
Patch
Comment 9 Ryuan Choi 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.
Comment 10 Gyuyoung Kim 2012-01-30 20:45:38 PST
Comment on attachment 124663 [details]
Patch

LGTM. :-)
Comment 11 WebKit Review Bot 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>
Comment 12 WebKit Review Bot 2012-01-31 21:46:57 PST
All reviewed patches have been landed.  Closing bug.