RESOLVED FIXED 27138
LayoutTests/fast/dom/anchor-toString.html is unnecessarily platform-specific
https://bugs.webkit.org/show_bug.cgi?id=27138
Summary LayoutTests/fast/dom/anchor-toString.html is unnecessarily platform-specific
Dirk Pranke
Reported 2009-07-09 17:09:51 PDT
the above test refers to an <a href="/sometestfile.html"> and checks that the resulting toString() produces valid output. If the test is being run over a filesystem, this will translate to "/sometestfile.html" on most unix systems, but on Windows this is actually implementation-dependent, and could legitimately return either "file:///sometestfile.html" or "file://C:/sometestfile.html" (or another drive letter). Since this test doesn't really seem to be testing the semantics of relative-URL parsing on file: URLs, I think it makes sense to change it to "http://localhost/sometestfile.html" to get something platform-independent.
Attachments
patch to make test case less platform-specific (1.73 KB, patch)
2009-07-09 17:21 PDT, Dirk Pranke
darin: review+
Dirk Pranke
Comment 1 2009-07-09 17:21:40 PDT
Created attachment 32541 [details] patch to make test case less platform-specific
Darin Adler
Comment 2 2009-07-09 17:24:13 PDT
Comment on attachment 32541 [details] patch to make test case less platform-specific How exactly is file:/// platform-specific? Are there platforms that don't use file URLs?
Darin Adler
Comment 3 2009-07-09 17:42:30 PDT
Comment on attachment 32541 [details] patch to make test case less platform-specific > + * fast/dom/anchor-toString-expected.txt: > + * fast/dom/anchor-toString.html: Strange indentation here. r=me Sorry, I missed the comment explaining what "platform-dependent" meant. I think the comment would have been a lot clearer if it just specifically called out Windows drive letters in URLs as the issue.
Darin Adler
Comment 4 2009-07-09 17:43:09 PDT
(In reply to comment #0) > Since this test doesn't really seem to be testing the semantics of relative-URL > parsing on file: URLs What do you mean about relative-URL parsing? Aren't these absolute URLs?
Dirk Pranke
Comment 5 2009-07-09 17:51:00 PDT
The test case has <a href="/sometestfile.html">, which is a relative URL, not an absolute URL. You are right that the comment probably would've been clearer if I'd just mentioned windows drive letters. Also, the formatting in the changelog was off due to tabs not expanding properly, I think.
Dimitri Glazkov (Google)
Comment 6 2009-07-10 13:27:04 PDT
Note You need to log in before you can comment on or make changes to this bug.