W3C home > Mailing lists > Public > public-test-infra@w3.org > January to March 2011

Re: [NavigationTiming] Redirect test cases

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 30 Mar 2011 19:12:07 -0400
To: Nic Jansma <Nic.Jansma@microsoft.com>
Cc: "public-web-perf@w3.org" <public-web-perf@w3.org>, public-test-infra <public-test-infra@w3.org>
Message-ID: <1301526727.2368.585.camel@chacal>
On Wed, 2011-03-30 at 18:43 +0000, Nic Jansma wrote:
> The tests need to be started from w3c-test.org for the cross-origin
> navigation case, as it redirects initially to www.w3c-test.org.  Is
> there a good way to enforce this requirement?

The test page on w3c-test.org points everyone back to
http://w3c-test.org/ and that's the page which is linked from the spec,
so it limits individuals going to the alternative servers.

An additional solution could be to check the location of the document
using script and report a failure if it's not the right server. We could
have a dedicated assertion in testharness.js just for that case,
something like
 assert_testserver();
That would test if the file is ran from http://w3c-test.org/. Third
parties wishing to deploy the tests outside the W3C server would only
have one place to modify like that. I even wonder if we can abstract
which alternate server it's redirecting to...

Philippe
Received on Thursday, 31 March 2011 05:41:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 31 March 2011 05:41:03 GMT