Changeset 57635 in webkit
- Timestamp:
- Apr 15, 2010 1:07:10 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57634 r57635 1 2010-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 1 23 2010-04-15 Adam Barth <abarth@webkit.org> 2 24 -
trunk/LayoutTests/fast/url/resources/utilities.js
r57501 r57635 5 5 return a.href; 6 6 } 7 8 function 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.