upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / transpose-backslash-with-euc.html
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5 <meta charset="EUC-JP">
6 <script>
7
8 if (window.layoutTestController)
9     layoutTestController.dumpAsText();
10
11 function test()
12 {
13     var backslashDivElement = document.getElementById("backslash");
14     getSelection().extend(backslashDivElement, 1);
15     document.execCommand("Transpose");
16
17     // 92 is the char code of a backslash.
18     var backslash = 92;
19     if (backslash == backslashDivElement.innerHTML.charCodeAt(0) && backslash == backslashDivElement.innerHTML.charCodeAt(1))
20         document.getElementById("result").innerHTML = "PASS";
21 }
22
23 </script>
24 </head>
25
26 <body onload="test()">
27
28 <div id="backslash" contentEditable="true">\\</div>
29
30 <div id="result">FAIL</div>
31
32 </body>
33
34 </html>