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 <cfleiz...@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 <cfleiz...@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@lists.webkit.org >>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >>> >>> > > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev