Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: LayoutTests/fast/xsl/resources/test-xslt.js

Issue 365873002: Implement a part of ProcessingInstruction by using PrivateScript (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP: async XHR, rewriting layout tests Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 if (window.testRunner)
2 testRunner.waitUntilDone();
3
4 var _NUM_RETRIES = 10;
5 var _TIMEOUT = 200;
6
7 function waitXSLTransform(iframe, callback) {
8 var oldDocument = iframe.contentDocument;
9 var retry = _NUM_RETRIES;
10
11 function waitXSLTransformInternal() {
12 if (--retry && oldDocument == iframe.contentDocument)
13 setTimeout(waitXSLTransformInternal, _TIMEOUT);
14
15 callback();
16 if (window.testRunner)
17 testRunner.notifyDone();
18 };
19 setTimeout(waitXSLTransformInternal, _TIMEOUT);
20 }
21
22 function runTest(url) {
23 var iframe = document.createElement('iframe');
24 iframe.src = url;
25 document.body.appendChild(iframe);
26 waitXSLTransform(iframe, function() {});
27 };
OLDNEW
« no previous file with comments | « LayoutTests/fast/xsl/resources/sort-unicode.xsl ('k') | LayoutTests/fast/xsl/resources/transform-to-html.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698