1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en" dir=
"ltr">
4 <title>Bug
7422</title>
7 testRunner
.dumpAsText();
10 <frameset cols=
"400,*" rows=
"*" id=
"mainFrameset">
11 <frame frameborder=
"1" name=
"frame_1" id=
"frame_1" src=
"data:text/html, Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=7422' target='_top'> bug 7422</a>: setting a frame name to the same value resets it to a generated one." />
12 <frame frameborder=
"1" src=
"javascript:
14 var oldName = window.parent.frames[0].name;
15 window.parent.frames[0].name = oldName;
16 if (window.parent.frames[0].name == oldName) {
17 console.log('SUCCESS');
19 console.log('FAILURE: ' + window.parent.frames[0].name);