Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / HTMLScriptElement / script-decoding-error-after-setting-src.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
4   </head>
5   <body onload="set_script_src()">
6     This case is for testing script decoding after setting its src attribute. See bug: http://bugs.webkit.org/show_bug.cgi?id=17732<br>
7     <script id="script_target"></script>
8     <div id="content_panel">²âÊÔ</div>
9     <script>
10     function set_script_src() {
11       if (window.testRunner) {
12         testRunner.dumpAsText();
13         testRunner.waitUntilDone();
14       }
15       var script_obj = document.getElementById("script_target");
16       if (script_obj) {
17         script_obj.src = "./resources/script-decoding-error-after-setting-src.js";
18       }
19     }
20     </script>
21   </body>
22 </html>