From 57620b63c0eea278d867ee1abb7fc40e996cff67 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sun, 16 Apr 2017 13:26:29 +0800 Subject: [PATCH] - Enhancement: Support setting of callback within opener to be run within testharnessreport --- testharnessreport.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testharnessreport.js b/testharnessreport.js index 59ad5d2..5bf9e37 100644 --- a/testharnessreport.js +++ b/testharnessreport.js @@ -413,6 +413,9 @@ try { * JSON stringifying and reparsing it, IE fails & emits the message * "Could not complete the operation due to error 80700019". */ + if (window.opener.testharness_properties.callback) { + window.opener.testharness_properties.callback(window); + } setup(JSON.parse(JSON.stringify(window.opener.testharness_properties))); } } catch (e) {