Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / registration-context-delete-during-register-created-retrieval.html
blob488859fae9f62d83304976652cb1a85cf1c8a522
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script src="testutils.js"></script>
4 <body>
5 <script>
6 if (fork()) {
7 // The controlling parent frame
8 description('Tests destroying a context during registration at the point when the created callback is retrieved.');
9 jsTestIsAsync = true;
10 successfullyParsed = true;
11 } else {
12 // The child frame
14 var proto = Object.create(HTMLElement.prototype, {
15 createdCallback: {
16 get: function () {
17 destroyContext();
18 return function () { }
21 });
23 try {
24 document.registerElement('x-a', {prototype: proto});
25 log('FAIL expected register to throw an exception');
26 } catch (ex) {
27 log('PASS caught expected exception "' + ex + '"');
29 done();
31 </script>