Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Support setting of callback within opener to be run within testharnessreport #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions testharnessreport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down