From b3f03db03535f0f651ae8c7207db952e54a418bd Mon Sep 17 00:00:00 2001 From: Pu Xingyu Date: Thu, 6 Oct 2016 23:00:44 +0800 Subject: [PATCH] Keep the original URL in servo test report --- wptrunner/testharnessreport-servo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wptrunner/testharnessreport-servo.js b/wptrunner/testharnessreport-servo.js index 6464436..f5fda2c 100644 --- a/wptrunner/testharnessreport-servo.js +++ b/wptrunner/testharnessreport-servo.js @@ -3,11 +3,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var props = {output:%(output)d}; - +var start_loc = document.createElement('a'); +start_loc.href = location.href; setup(props); add_completion_callback(function (tests, harness_status) { - var id = location.pathname + location.search + location.hash; + var id = start_loc.pathname + start_loc.search + start_loc.hash; console.log("ALERT: RESULT: " + JSON.stringify([ id, harness_status.status,