2 <script src=
"../../../resources/js-test.js"></script>
3 <script src=
"testutils.js"></script>
7 // The controlling parent frame
8 description('Tests destroying a context during registration at the point when the attributeChanged callback is retrieved.');
10 successfullyParsed
= true;
14 var proto
= Object
.create(HTMLElement
.prototype, {
15 attributeChangedCallback
: {
18 return function () { }
24 document
.registerElement('x-a', {prototype: proto
});
25 log('FAIL expected register to throw an exception');
27 log('PASS caught expected exception "' + ex
+ '"');