Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-name-reset.html
blob0984562d922b402ef6e2a50be9bf66ae3795495f
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">
3 <head>
4 <title>Bug 7422</title>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 </script>
9 </head>
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');
18 } else {
19 console.log('FAILURE: ' + window.parent.frames[0].name);
22 " />
23 </frameset>
24 </html>