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 "extends" option is retrieved, then throws an exception.');
10 successfullyParsed
= true;
14 var options
= Object
.create(Object
.prototype, {
18 throw 'future events such as these will affect you in the future';
24 document
.registerElement('x-a', options
);
25 log('FAIL expected register to throw an exception');
27 log('PASS caught expected exception "' + ex
+ '"');