2 <script src='../../../resources/js-test.js'
></script>
4 description('Test that Custom Element should be defined while navigating between frames.');
7 var jsTestIsAsync
= true;
9 function linkInserter(doc
) {
11 customBody
= doc
.getElementById('thebody');
12 shouldBeDefined('customBody');
13 shouldBeEqualToString('customBody.toLocaleString()', '[object HTMLBodyElement]');
18 function navigateIFrameThenInsertLink() {
19 var iframe
= document
.getElementById('iframe');
20 iframe
.onload
= linkInserter(iframe
.contentDocument
);
21 iframe
.contentWindow
.location
= 'resources/empty-custom-body.html';
24 <iframe id='iframe' onload='navigateIFrameThenInsertLink()' src='resources/empty-custom-body.html'
>