Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / constructor-calls-created-synchronously.html
blob69a643da8fe17ea42e07d48694ca40d6b517cc20
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="container"></div>
4 <script>
5 description('Tests that custom element constructors run the createdCallback synchronously.');
7 var proto = Object.create(HTMLElement.prototype);
8 var ncallbacks = 0;
9 proto.createdCallback = function () {
10 ncallbacks++;
12 var A = document.registerElement('x-a', {prototype: proto});
13 var x = new A();
14 shouldBe('ncallbacks', '1');
16 successfullyParsed = true;
17 </script>