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 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
7 <script> | 7 <script> |
8 function localeOfNode(id) { | 8 function localeOfNode(id) { |
9 var element = document.getElementById(id); | 9 var element = document.getElementById(id); |
10 return window.getComputedStyle(element).webkitLocale; | 10 return window.getComputedStyle(element).webkitLocale; |
11 } | 11 } |
12 | 12 |
13 function runTest() { | 13 function runTest() { |
14 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'); |
15 var x1 = document.getElementById("x1"); | 15 var x1 = document.getElementById("x1"); |
16 var x2 = document.getElementById("x2"); | 16 var x2 = document.getElementById("x2"); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // 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. |
50 wasPostTestScriptParsed = true; | 50 wasPostTestScriptParsed = true; |
51 finishJSTest(); | 51 finishJSTest(); |
52 } | 52 } |
53 </script> | 53 </script> |
54 </head> | 54 </head> |
55 <body onload="runTest();"> | 55 <body onload="runTest();"> |
56 <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> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
OLD | NEW |