| Index: LayoutTests/fast/xsl/resources/test-xslt.js
|
| diff --git a/LayoutTests/fast/xsl/resources/test-xslt.js b/LayoutTests/fast/xsl/resources/test-xslt.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ea2fd1eed00c329b70a44f96d70b3708373f3f3a
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/xsl/resources/test-xslt.js
|
| @@ -0,0 +1,27 @@
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +var _NUM_RETRIES = 10;
|
| +var _TIMEOUT = 200;
|
| +
|
| +function waitXSLTransform(iframe, callback) {
|
| + var oldDocument = iframe.contentDocument;
|
| + var retry = _NUM_RETRIES;
|
| +
|
| + function waitXSLTransformInternal() {
|
| + if (--retry && oldDocument == iframe.contentDocument)
|
| + setTimeout(waitXSLTransformInternal, _TIMEOUT);
|
| +
|
| + callback();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + };
|
| + setTimeout(waitXSLTransformInternal, _TIMEOUT);
|
| +}
|
| +
|
| +function runTest(url) {
|
| + var iframe = document.createElement('iframe');
|
| + iframe.src = url;
|
| + document.body.appendChild(iframe);
|
| + waitXSLTransform(iframe, function() {});
|
| +};
|
|
|