Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / paste-noscript-svg.html
1 <script>
2 if (window.testRunner)
3      window.testRunner.dumpAsText();
4
5 if (window.testRunner)
6     window.testRunner.waitUntilDone();
7
8 function foo() {
9     var frame = frames[0];
10     var sel = frame.getSelection();
11     var doc = frame.document;
12     sel.setPosition(doc.body, 0);
13     doc.execCommand("SelectAll");
14     doc.execCommand("Copy");
15
16     var p1 = document.getElementById("pastehere");
17     var s = window.getSelection();
18     s.setPosition(p1, 0);
19     document.execCommand("Paste");
20     log(document.getElementById("pastehere").innerHTML);
21
22     if (window.testRunner)
23         window.testRunner.notifyDone();
24 }
25
26 function log(str) {
27     var li = document.createElement("li");
28     li.appendChild(document.createTextNode(str));
29     var console = document.getElementById("console");
30     console.appendChild(li);
31 }
32 </script>
33 <div id="description">
34 This test copies the content of an iframe and pastes it
35 in an editable area and verifies that no script, handlers or javascript urls are copied.
36 </div>
37 <div id="pastehere" contenteditable="true"></div>
38 <ul id="console"></ul>
39 <iframe id="iframe1" src="../resources/svgcontent.xhtml" onload="foo()"></iframe>