blob: cc3baf2be133ea44e4a7f1061087b55866e142b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!DOCTYPE html>
<script src="../../js/resources/js-test-pre.js"></script>
<script src="testutils.js"></script>
<body>
<x-a></x-a>
<script>
if (fork()) {
// The controlling parent frame
description('Tests destroying a context during attributeChanged callback.');
jsTestIsAsync = true;
successfullyParsed = true;
} else {
// The child frame
var proto = Object.create(HTMLElement.prototype);
proto.attributeChangedCallback = function () {
destroyContext();
};
var A = document.register('x-a', {prototype: proto});
var a = new A();
a.id = 'boom';
done();
}
</script>
|