summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/resources/go-to-echo-report.js
blob: e220f2a47e340850f006c5841218439e547d4b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

window.onload = function() {
    var test = window.location.pathname.replace(/^.+\//, '');
    var match = window.location.search.match(/^\?test=([^&]+)/);
    if (match)
        test = match[1];
    window.location = "/security/contentSecurityPolicy/resources/echo-report.php?test=" + test;
}