Revision 0fb0745ad0ebcb51e262f043115ff1fa5b26f876 authored by Philip Jägenstedt on 06 April 2018, 11:10:29 UTC, committed by Philip Jägenstedt on 06 April 2018, 12:08:26 UTC
First dos2unix was used and for text-fonts-202-t-manual.svg this also removes a UTF-8 BOM. Then all files were passed through git stripspace, which also removed some double blank lines which don't look to have been meaningful. Finally all tabs were replaced by two spaces, as that's the tab width that seems to have been used when editing these files. Some odd indentation remains and would have to be fixed manually.
1 parent b80da5d
a-element-origin.js
var setup = async_test("Loading data…")
setup.step(function() {
var request = new XMLHttpRequest()
request.open("GET", "urltestdata.json")
request.send()
request.responseType = "json"
request.onload = setup.step_func(function() {
runURLTests(request.response)
setup.done()
})
})
function setBase(base) {
document.getElementById("base").href = base
}
function bURL(url, base) {
base = base || "about:blank"
setBase(base)
var a = document.createElement("a")
a.setAttribute("href", url)
return a
}
function runURLTests(urltests) {
for(var i = 0, l = urltests.length; i < l; i++) {
var expected = urltests[i]
if (typeof expected === "string" || !("origin" in expected)) continue
test(function() {
var url = bURL(expected.input, expected.base)
assert_equals(url.origin, expected.origin, "origin")
}, "Parsing origin: <" + expected.input + "> against <" + expected.base + ">")
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...