<head>
<meta charset="gbk">
<script>

if (window.testRunner)
    testRunner.dumpAsText();

function test() {
    var req = new XMLHttpRequest;
    req.open("GET", "?", false);
    req.send();

    req = new XMLHttpRequest;
    req.open("GET", "/", false);
    req.send();
}
</script>
</head>
<body onload="test()">
<p>This tests performs a sequence of actions that result in a GBK converter with substitution enabled being destroyed.</p>
<p>PASS if there is no assertion failure.</p>
</body>
