Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / registration-context-delete-during-upgrade.html
blob61fb8323b45ac6124548894f07bb0eca26eb8397
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script src="testutils.js"></script>
4 <body>
5 <x-a></x-a>
6 <x-a></x-a>
7 <x-a></x-a>
8 <script>
9 if (fork()) {
10 // The controlling parent frame
11 description('Tests destroying a context during element upgrade.');
12 jsTestIsAsync = true;
13 successfullyParsed = true;
14 } else {
15 // The child frame
17 var n = 0;
18 var proto = Object.create(HTMLElement.prototype);
19 proto.createdCallback = function () {
20 if (++n == 2)
21 destroyContext();
24 var A = document.registerElement('x-a', {prototype: proto});
25 new A();
26 done();
28 </script>