Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / registration-context-delete-during-attribute-changed.html
blob0783b98dd8f06a9ed0949349d1a6763b118d49b4
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 <script>
7 if (fork()) {
8 // The controlling parent frame
9 description('Tests destroying a context during attributeChanged callback.');
10 jsTestIsAsync = true;
11 successfullyParsed = true;
12 } else {
13 // The child frame
15 var proto = Object.create(HTMLElement.prototype);
16 proto.attributeChangedCallback = function () {
17 destroyContext();
20 var A = document.registerElement('x-a', {prototype: proto});
21 var a = new A();
22 a.id = 'boom';
23 done();
25 </script>