OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 function runTest() |
| 6 { |
| 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.dumpChildFramesAsText(); |
| 10 } |
| 11 // Before https://crrev.com/1968213002 main frame's unique name would be |
| 12 // set without any checks for conflicts with names of subframes. |
| 13 // |
| 14 // Note that layout tests do not include the name of the main frame |
| 15 // in test output - this means that the test verification of uniqueness |
| 16 // depends on the assert in FrameTree::setUniqueName (which should make |
| 17 // this test crash if the main frame's unique name is not truly unique). |
| 18 window.name = "subframeName"; |
| 19 } |
| 20 </script> |
| 21 </head> |
| 22 <body onload="runTest()"> |
| 23 <iframe name="subframeName"></iframe> |
| 24 </body> |
| 25 </html> |
OLD | NEW |