| OLD | NEW |
| 1 /*global add_completion_callback, setup */ | 1 /*global add_completion_callback, setup */ |
| 2 /* | 2 /* |
| 3 * This file is intended for vendors to implement | 3 * This file is intended for vendors to implement |
| 4 * code needed to integrate testharness.js tests with their own test systems. | 4 * code needed to integrate testharness.js tests with their own test systems. |
| 5 * | 5 * |
| 6 * The default implementation extracts metadata from the tests and validates | 6 * The default implementation extracts metadata from the tests and validates |
| 7 * it against the cached version that should be present in the test source | 7 * it against the cached version that should be present in the test source |
| 8 * file. If the cache is not found or is out of sync, source code suitable for | 8 * file. If the cache is not found or is out of sync, source code suitable for |
| 9 * caching the metadata is optionally generated. | 9 * caching the metadata is optionally generated. |
| 10 * | 10 * |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 if (window.opener && "testharness_properties" in window.opener) { | 400 if (window.opener && "testharness_properties" in window.opener) { |
| 401 /* If we pass the testharness_properties object as-is here without | 401 /* If we pass the testharness_properties object as-is here without |
| 402 * JSON stringifying and reparsing it, IE fails & emits the message | 402 * JSON stringifying and reparsing it, IE fails & emits the message |
| 403 * "Could not complete the operation due to error 80700019". | 403 * "Could not complete the operation due to error 80700019". |
| 404 */ | 404 */ |
| 405 setup(JSON.parse(JSON.stringify(window.opener.testharness_properties))); | 405 setup(JSON.parse(JSON.stringify(window.opener.testharness_properties))); |
| 406 } | 406 } |
| 407 } catch (e) { | 407 } catch (e) { |
| 408 } | 408 } |
| 409 // vim: set expandtab shiftwidth=4 tabstop=4: | 409 // vim: set expandtab shiftwidth=4 tabstop=4: |
| OLD | NEW |