[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / js / delete-function-parameter.html
1 <p>This page verifies that function parameters cannot be deleted.</p>
2 <pre id="console"></pre>
3 <script>
4 if (window.layoutTestController)
5     layoutTestController.dumpAsText();
6
7 function log(s)
8 {
9     document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
10 }
11
12 function f(x)
13 {
14     delete x;
15     try {
16         x; // This line will throw an exception if x has been deleted.
17         log("PASS: Function parameter not deleted.");
18     } catch(e) {
19         log("FAIL: Function parameter deleted (" + e + ").");
20     }
21 }
22 f();
23 eval("f()");
24 </script>