| Index: LayoutTests/fast/dom/custom/registration-context-sharing.html
|
| diff --git a/LayoutTests/fast/dom/custom/registration-context-sharing.html b/LayoutTests/fast/dom/custom/registration-context-sharing.html
|
| index e843176c15da1a27b3b1989a8759e03fc7b9820c..47d5b0ad11d23e6290a120aea8e1f3a8acd5071d 100644
|
| --- a/LayoutTests/fast/dom/custom/registration-context-sharing.html
|
| +++ b/LayoutTests/fast/dom/custom/registration-context-sharing.html
|
| @@ -146,27 +146,16 @@ t.step(function () {
|
| link = documentA.createElement('link');
|
| link.rel = 'import';
|
| link.href = 'resources/empty-document.html';
|
| - documentA.head.appendChild(link);
|
| -
|
| - // FIXME: When imports raise the 'load' event, use that instead of
|
| - // polling.
|
| - waitForLinkToLoad();
|
| -});
|
| -
|
| -function waitForLinkToLoad() {
|
| - if (!link.import) {
|
| - setTimeout(waitForLinkToLoad, 100);
|
| - return;
|
| - }
|
| -
|
| - t.step(function () {
|
| + link.onload = t.step_func(function () {
|
| var documentB = link.import;
|
| var tester = new TestRegistrationContextSharing(window,
|
| documentA, documentB);
|
| tester.testRegistrationContextIsShared();
|
| t.done();
|
| });
|
| -}
|
| +
|
| + documentA.head.appendChild(link);
|
| +});
|
|
|
| })();
|
|
|
|
|