Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / iframe-name-and-id.html
blob8f9f6e6e11a3c9844d13e5cab5d8c716f5032f05
1 <html>
2 <head>
3 <script>
4 function print(message) {
5 var paragraph = document.createElement("p");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
10 function test() {
11 if (window.testRunner) {
12 window.testRunner.dumpAsText();
15 print("frames[0].name (should be frame0_name): " + frames[0].name);
16 print("frames[0].id (should be undefined): " + frames[0].id);
17 print("");
19 delete frames[0].name; // force dynamic property creation
21 frames[0].name = "frame0_newname"
22 frames[0].id = "frame0_newid";
23 print("frames[0].name (should be frame0_newname): " + frames[0].name);
24 print("frames[0].id (should be frame0_newid): " + frames[0].id);
26 </script>
27 </head>
28 <body onload="test()">
29 <p>Tests: getting and setting frames[x].name on an iFrame</p>
30 <p>Related bug: <i>rdar://problem/4170960 https://bugs.webkit.org/show_bug.cgi?id=3952 <a href=https://bugs.webkit.org/show_bug.cgi?id=3952>iFrame name and id information incorrectly returned</a></i></p>
31 <hr>
32 <div id='console'/>
33 <iframe name="frame0_name" id="frame0_id"></iframe>
34 </body>
35 </html>