| Index: LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
|
| diff --git a/LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html b/LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
|
| similarity index 68%
|
| copy from LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html
|
| copy to LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
|
| index e740ef2759eda99d4effc3508d785c0bab1e2fb9..3cb260a3ab3d80073de3a3cead62e00caad2d04a 100644
|
| --- a/LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html
|
| +++ b/LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
|
| @@ -3,26 +3,23 @@
|
| <script src="testutils.js"></script>
|
| <body>
|
| <x-a></x-a>
|
| -<x-a></x-a>
|
| -<x-a></x-a>
|
| <script>
|
| if (fork()) {
|
| // The controlling parent frame
|
| - description('Tests destroying a context during element upgrade.');
|
| + description('Tests destroying a context during attributeChanged callback.');
|
| jsTestIsAsync = true;
|
| successfullyParsed = true;
|
| } else {
|
| // The child frame
|
|
|
| - var n = 0;
|
| var proto = Object.create(HTMLElement.prototype);
|
| - proto.createdCallback = function () {
|
| - if (++n == 2)
|
| - destroyContext();
|
| + proto.attributeChangedCallback = function () {
|
| + destroyContext();
|
| };
|
|
|
| var A = document.register('x-a', {prototype: proto});
|
| - new A();
|
| + var a = new A();
|
| + a.id = 'boom';
|
| done();
|
| }
|
| </script>
|
|
|