upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / default-parameters.html
1 <html>
2 <body>
3 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12249">bug 12249</a>:
4 FCKeditor: &lt;hr>, &lt;ul> and &lt;ol> have id="undefined".</p>
5 <div id="div" contenteditable="true"></div>
6
7 <script>
8 if (window.layoutTestController)
9   layoutTestController.dumpAsText();
10
11 try {
12   var div = document.getElementById("div");
13   div.focus();
14
15   document.execCommand("InsertHorizontalRule");
16
17   if (div.innerHTML.match(/.*undefined.*/))
18     document.write("FAILURE");
19   else
20     document.write("SUCCESS");
21 } catch (ex) {
22   document.write(ex);
23 }
24 </script>
25 </body>