[webkit-dev] LayoutTest with a fragment reported as the document URL?

David Kilzer ddkilzer at webkit.org
Thu Jun 10 14:56:55 PDT 2010


I think you want:

window.location.hash = 'name1';

I'm sure there are other layout tests that set the hash property, so you might search for them to get some ideas about how to build your test.

Dave
--
Sent from my iPhone 3GS

On Jun 7, 2010, at 2:04 PM, Chris Fleizach <cfleizach at apple.com> wrote:

> 
> I'd like the loaded page to be a url like
> 
>>> http://layouttest/new-test.html#segment
> 
> so that
> 
> m_renderer->document()->url();
> 
> returns http://layouttest/new-test.html#segment
> 
> 
> On Jun 7, 2010, at 1:27 PM, Adam Barth wrote:
> 
>> I'd like to help you, but I don't know what you mean by "the
>> document's URL will be reported as".  Reported to whom via what?
>> 
>> Adam
>> 
>> 
>> On Mon, Jun 7, 2010 at 12:37 PM, Chris Fleizach <cfleizach at apple.com> wrote:
>>> Hello,
>>> I need to write a layout test where the document's URL will be reported as
>>> http://layouttest/new-test.html#segment
>>> I tried
>>> window.location = url + "#name1";
>>> but that doesn't work
>>> any ideas?
>>> thanks
>>> _______________________________________________
>>> webkit-dev mailing list
>>> webkit-dev at lists.webkit.org
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>> 
>>> 
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100610/f869b90b/attachment.html>


More information about the webkit-dev mailing list