Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / upgrade-candidate-remove-crash.html
blob95f44110cee472fb3239558259b51053d1ea9164
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <body>
4 <script>
5 description('Tests that an element is not upgraded after being destroyed');
7 // Create an upgrade candidate. Don't wrap it.
8 var div = document.createElement('div');
9 div.innerHTML = '<span is="x-a"></span>';
11 // Delete the upgrade candidate.
12 div.innerHTML = '';
14 // Provide a definition that would have matched.
15 var proto = Object.create(HTMLSpanElement.prototype);
16 proto.createdCallback = function () {
17 testFailed('unreachable');
19 document.registerElement('x-a', {prototype: proto});
21 testPassed('Did not crash.');
23 successfullyParsed = true;
24 </script>