Changeset 57635 in webkit


Ignore:
Timestamp:
Apr 15, 2010 1:07:10 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-15 Adam Barth <abarth@webkit.org>

Reviewed by Maciej Stachowiak.

Add URL scheme parsing tests
https://bugs.webkit.org/show_bug.cgi?id=37496

I'm not super happy with how these test turned out. It's difficult to
test these cases with this methodology because most of the cases get
treated as relative URLs. I tired using the "protocol" property of the
HTMLAnchorElement, but that often caused the test case to be ignored
for reasons I don't fully understand.

  • fast/url/resources/utilities.js: (setBaseURL):
    • In the course of trying various variations of this test, I wrote this function. It seemed useful, so I left it here for the benefit of future test writing.
  • fast/url/scheme-expected.txt: Added.
  • fast/url/scheme.html: Added.
  • fast/url/script-tests/scheme.js: Added.
Location:
trunk/LayoutTests
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r57634 r57635  
     12010-04-15  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Add URL scheme parsing tests
     6        https://bugs.webkit.org/show_bug.cgi?id=37496
     7
     8        I'm not super happy with how these test turned out.  It's difficult to
     9        test these cases with this methodology because most of the cases get
     10        treated as relative URLs.  I tired using the "protocol" property of the
     11        HTMLAnchorElement, but that often caused the test case to be ignored
     12        for reasons I don't fully understand.
     13
     14        * fast/url/resources/utilities.js:
     15        (setBaseURL):
     16          - In the course of trying various variations of this test, I wrote
     17            this function.  It seemed useful, so I left it here for the benefit
     18            of future test writing.
     19        * fast/url/scheme-expected.txt: Added.
     20        * fast/url/scheme.html: Added.
     21        * fast/url/script-tests/scheme.js: Added.
     22
    1232010-04-15  Adam Barth  <abarth@webkit.org>
    224
  • trunk/LayoutTests/fast/url/resources/utilities.js

    r57501 r57635  
    55  return a.href;
    66}
     7
     8function setBaseURL(url)
     9{
     10  var base = document.createElement("base");
     11  base.href = url;
     12  document.documentElement.appendChild(base);
     13}
Note: See TracChangeset for help on using the changeset viewer.