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' +
9 ' point when the prototype\'s constructor property is retrieved.');
11 successfullyParsed
= true;
14 var proto
= Object
.create(HTMLElement
.prototype, {
25 var element
= document
.registerElement('x-a', {prototype: proto
});
26 log('FAIL expected register to throw an exception');
28 log('PASS caught expected exception "' + ex
+ '"');