Decode URI components when reporting testharness results.

This commit is contained in:
Josh Matthews 2019-08-31 15:31:57 -04:00
parent 79e30e13fa
commit 619be736b1
15 changed files with 3 additions and 108 deletions

View file

@ -689427,7 +689427,7 @@
"support"
],
"tools/wptrunner/wptrunner/testharnessreport-servo.js": [
"b672aea9a2540bf1446a23ddb288c93009bb26ba",
"a10b69df5504fab875147af26d925ebcce51ec00",
"support"
],
"tools/wptrunner/wptrunner/testharnessreport-servodriver.js": [

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-aborted.html?only open()ed, not aborted]
expected: ERROR
[xmlhttprequest-timeout-aborted.html?call abort() after TIME_NORMAL_LOAD]
expected: ERROR
[xmlhttprequest-timeout-aborted.html?aborted immediately after send()]
expected: ERROR

View file

@ -1,5 +0,0 @@
[xmlhttprequest-timeout-abortedonmain.html?aborted after TIME_DELAY]
expected: ERROR
[xmlhttprequest-timeout-abortedonmain.html?abort() from a 0ms timeout]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-overrides.html?timeout disabled after initially set]
expected: ERROR
[xmlhttprequest-timeout-overrides.html?timeout enabled after initially disabled]
expected: ERROR
[xmlhttprequest-timeout-overrides.html?timeout overrides load after a delay]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-overridesexpires.html?timeout set to expired value before load fires]
expected: ERROR
[xmlhttprequest-timeout-overridesexpires.html?timeout set to non-expiring value after timeout fires]
expected: ERROR
[xmlhttprequest-timeout-overridesexpires.html?timeout set to expiring value after load fires]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-simple.html?no time out scheduled, load fires normally]
expected: ERROR
[xmlhttprequest-timeout-simple.html?load fires normally]
expected: ERROR
[xmlhttprequest-timeout-simple.html?timeout hit before load]
expected: ERROR

View file

@ -1,5 +0,0 @@
[xmlhttprequest-timeout-synconmain.html?timeout after open]
expected: ERROR
[xmlhttprequest-timeout-synconmain.html?timeout before open]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-twice.html?load fires normally with same timeout set twice]
expected: ERROR
[xmlhttprequest-timeout-twice.html?timeout fires normally with same timeout set twice]
expected: ERROR
[xmlhttprequest-timeout-twice.html?load fires normally with no timeout set, twice]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-worker-aborted.html?call abort() after TIME_NORMAL_LOAD]
expected: ERROR
[xmlhttprequest-timeout-worker-aborted.html?only open()ed, not aborted]
expected: ERROR
[xmlhttprequest-timeout-worker-aborted.html?aborted immediately after send()]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-worker-overrides.html?timeout overrides load after a delay]
expected: ERROR
[xmlhttprequest-timeout-worker-overrides.html?timeout enabled after initially disabled]
expected: ERROR
[xmlhttprequest-timeout-worker-overrides.html?timeout disabled after initially set]
expected: ERROR

View file

@ -1,12 +0,0 @@
[xmlhttprequest-timeout-worker-overridesexpires.html]
type: testharness
disabled: racy test
[xmlhttprequest-timeout-worker-overridesexpires.html?timeout set to expired value before load fires]
expected: ERROR
[xmlhttprequest-timeout-worker-overridesexpires.html?timeout set to non-expiring value after timeout fires]
expected: ERROR
[xmlhttprequest-timeout-worker-overridesexpires.html?timeout set to expiring value after load fires]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-worker-simple.html?load fires normally]
expected: ERROR
[xmlhttprequest-timeout-worker-simple.html?timeout hit before load]
expected: ERROR
[xmlhttprequest-timeout-worker-simple.html?no time out scheduled, load fires normally]
expected: ERROR

View file

@ -1,14 +1,3 @@
[xmlhttprequest-timeout-worker-synconworker.html]
type: testharness
[xmlhttprequest-timeout-worker-synconworker.html?timeout hit before load]
[Timeout test: timeout hit before load, timeout scheduled at 2000]
expected: FAIL
[xmlhttprequest-timeout-worker-synconworker.html?timeout hit before load]
expected: ERROR
[xmlhttprequest-timeout-worker-synconworker.html?no time out scheduled, load fires normally]
expected: ERROR
[xmlhttprequest-timeout-worker-synconworker.html?load fires normally]
expected: ERROR

View file

@ -1,8 +0,0 @@
[xmlhttprequest-timeout-worker-twice.html?load fires normally with same timeout set twice]
expected: ERROR
[xmlhttprequest-timeout-worker-twice.html?load fires normally with no timeout set, twice]
expected: ERROR
[xmlhttprequest-timeout-worker-twice.html?timeout fires normally with same timeout set twice]
expected: ERROR

View file

@ -4,7 +4,7 @@ start_loc.href = location.href;
setup(props);
add_completion_callback(function (tests, harness_status) {
var id = start_loc.pathname + start_loc.search + start_loc.hash;
var id = decodeURIComponent(start_loc.pathname) + decodeURIComponent(start_loc.search) + decodeURIComponent(start_loc.hash);
console.log("ALERT: RESULT: " + JSON.stringify([
id,
harness_status.status,