| Index: LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously.html
|
| diff --git a/LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously.html b/LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eb475e7d5269fd5b70be6f994599578981d60398
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously.html
|
| @@ -0,0 +1,18 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<div id="container"></div>
|
| +<script>
|
| +description('Tests that custom element constructors run the readyCallback synchronously.');
|
| +
|
| +var proto = Object.create(HTMLElement.prototype);
|
| +var ncallbacks = 0;
|
| +proto.readyCallback = function () {
|
| + ncallbacks++;
|
| +};
|
| +var A = document.webkitRegister('x-a', {prototype: proto});
|
| +var x = new A();
|
| +shouldBe('ncallbacks', '1');
|
| +
|
| +successfullyParsed = true;
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
|
|