On 2011/03/03 15:50:30, Paweł Hajdan Jr. wrote:
> Do not hardcode testserver URLs, it's going to break! Please read the
> net/test/test_server.h header.
On 2011/03/03 18:20:12, creis wrote:
> On 2011/03/03 15:50:30, Paweł Hajdan Jr. wrote:
> > Do not hardcode testserver URLs, it's going to break! Please read the
> > net/test/test_server.h header.
>
> I was following what app_process did:
>
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/data/extensions/a...
> The problem is that this is a static JSON file, so I can't just call
> TestServer::GetURL. Do we have any placeholder replacement logic for JSON
files
> in tests?
I'm not sure, I know we have tests which do substitution for HTML files served
by the test server itself. Those JSON files seem to be loaded by the extensions
system, so you may have to add some additional logic to handle that.
If possible, please also fix the code it was copied from, it's very very
fragile.
Charlie Reis
2011/03/04 22:34:53
I looked closer and it turns out neither of these
On 2011/03/03 18:24:09, Paweł Hajdan Jr. wrote:
> I'm not sure, I know we have tests which do substitution for HTML files served
> by the test server itself. Those JSON files seem to be loaded by the
extensions
> system, so you may have to add some additional logic to handle that.
>
> If possible, please also fix the code it was copied from, it's very very
> fragile.
I looked closer and it turns out neither of these tests actually relied on the
web_url, so I was able to simply remove the :1337 from each of them. (The tests
load pages manually, rather than launching the app's front page.) Both tests
are already able to swap in the correct test server URL (see
isolated_app_apitest.cc).
Issue 6201005: Initial support for partitioning cookies for isolated apps.
(Closed)
Created 9 years, 11 months ago by Charlie Reis
Modified 5 years ago
Reviewers: Paweł Hajdan Jr., Matt Perry, jam, willchan no longer on Chromium, terry.arends
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 122