1 2 3if ('とうきょう' == tokyo) 4 document.getElementById("target").innerHTML = "PASS: UTF-8 was correctly used for this script."; 5else 6 document.getElementById("target").innerHTML = "FAIL: Incorrect encoding used. Expected '" + tokyo + "' but got '" + 'とうきょう' + "'."; 7 8if (window.layoutTestController) 9 window.layoutTestController.notifyDone(); 10