| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 <head> | 4 <head> |
| 5 <title>mapping dynamic lang to -webkit-locale</title> | 5 <title>mapping dynamic lang to -webkit-locale</title> |
| 6 <link rel="stylesheet" href="../js/resources/js-test-style.css" /> | |
| 7 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../js/resources/js-test-pre.js"></script> |
| 8 <script> | 7 <script> |
| 9 function localeOfNode(id) { | 8 function localeOfNode(id) { |
| 10 var element = document.getElementById(id); | 9 var element = document.getElementById(id); |
| 11 return window.getComputedStyle(element).webkitLocale; | 10 return window.getComputedStyle(element).webkitLocale; |
| 12 } | 11 } |
| 13 | 12 |
| 14 function runTest() { | 13 function runTest() { |
| 15 description('This tests mapping of lang/xml:lang to -webkit-locale with dyna
mic attribute changes. WebKit bug 76364'); | 14 description('This tests mapping of lang/xml:lang to -webkit-locale with dyna
mic attribute changes. WebKit bug 76364'); |
| 16 var x1 = document.getElementById("x1"); | 15 var x1 = document.getElementById("x1"); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // If we include js-test-post.js directly, the "TEST COMPLETE" output comes
out of order. | 49 // If we include js-test-post.js directly, the "TEST COMPLETE" output comes
out of order. |
| 51 wasPostTestScriptParsed = true; | 50 wasPostTestScriptParsed = true; |
| 52 finishJSTest(); | 51 finishJSTest(); |
| 53 } | 52 } |
| 54 </script> | 53 </script> |
| 55 </head> | 54 </head> |
| 56 <body onload="runTest();"> | 55 <body onload="runTest();"> |
| 57 <div lang="ko" id="x1"><div id="x2"/><div id="x3" lang="ar"/></div> | 56 <div lang="ko" id="x1"><div id="x2"/><div id="x3" lang="ar"/></div> |
| 58 </body> | 57 </body> |
| 59 </html> | 58 </html> |
| OLD | NEW |