Bug 54873

Summary: Can not force XML without style information to dump as text.
Product: WebKit Reporter: Vsevolod Vlasov <vsevik>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, pfeldman
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Vsevolod Vlasov 2011-02-21 04:55:51 PST
JavaScript calls to Layout Test Controller can not be used in layout tests for XML viewer (see https://bugs.webkit.org/show_bug.cgi?id=13807) because these XML documents should not have any style information.
Comment 1 Vsevolod Vlasov 2011-02-22 05:24:42 PST
Created attachment 83303 [details]
Patch
Comment 2 Pavel Feldman 2011-02-22 06:00:11 PST
Comment on attachment 83303 [details]
Patch

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

> Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:620
> +        setDumpPixels(false);

No layoutTestController() prefix intentional?

> Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:496
> +    WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page);

Why is this chance necessary?
Comment 3 Vsevolod Vlasov 2011-02-22 07:32:45 PST
Comment on attachment 83303 [details]
Patch

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

>> Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp:620
>> +        setDumpPixels(false);
> 
> No layoutTestController() prefix intentional?

Yes, QT implementation does not support dumpPixels property of layoutTestController.

>> Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:496
>> +    WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page);
> 
> Why is this chance necessary?

It's the same change for Webkit2 port. 
In Webkit2 layoutTestController is created in injected bundle and the information about test url is not available, so I read it from frame.
Comment 4 WebKit Commit Bot 2011-02-22 21:51:30 PST
The commit-queue encountered the following flaky tests while processing attachment 83303 [details]:

animations/suspend-resume-animation.html bug 48161 (author: cmarrin@apple.com)
The commit-queue is continuing to process your patch.
Comment 5 WebKit Commit Bot 2011-02-22 21:54:42 PST
Comment on attachment 83303 [details]
Patch

Clearing flags on attachment: 83303

Committed r79403: <http://trac.webkit.org/changeset/79403>
Comment 6 WebKit Commit Bot 2011-02-22 21:54:47 PST
All reviewed patches have been landed.  Closing bug.