blob: d9c9995b71ee2426ee354d72c42ba03f58564bf3 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SCSU character set blocklisted</title>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Test that character set SCSU is not supported and we default to ISO-8859-1. With support for SCSU the iframe renders a Cyrillic string. Without it renders garbage.");
window.jsTestIsAsync = true;
if (window.testRunner) {
testRunner.waitUntilDone();
}
function run() {
var scsuFrame = document.getElementById("scsuFrame");
if (scsuFrame.contentDocument.charset === "windows-1252") {
testPassed("charset is windows-1252");
} else {
testFailed("charset is " + scsuFrame.contentDocument.charset);
}
finishJSTest();
}
</script>
<iframe id="scsuFrame" src="resources/scsu-cyrillic.py" onload="run()"></iframe>
<script src="../resources/js-test-post.js"></script>
</body>
</html>