Skip to content

Commit

Permalink
Merge pull request web-platform-tests#63 from w3c/jgraham/testharness…
Browse files Browse the repository at this point in the history
…_properties

Pick up testharness settings from parent window for use in the runner
  • Loading branch information
jgraham committed Mar 31, 2014
2 parents c968512 + 07d43b6 commit de190cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testharnessreport.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,13 @@ var metadata_generator = {
}

metadata_generator.setup();

/* If the parent window has a testharness_properties object,
* we use this to provide the test settings. This is used by the
* default in-browser runner to configure the timeout and the
* rendering of results
*/
if (window.opener && "testharness_properties" in window.opener) {
setup(window.opener.testharness_properties);
}
// vim: set expandtab shiftwidth=4 tabstop=4:

0 comments on commit de190cb

Please sign in to comment.