summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html
blob: a97c50868d96a17b5660f935da576ca05edc1f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html manifest="cyrillic-uri.manifest">
<head>
<meta charset="koi8-r">
</head>
<body>
<form method=GET action="?">
<input type=text name=i value="Проверка">
</form>
<script>
document.write(location);
function test() {
    if (location.search == "") {
        document.forms[0].submit();
    } else if (location.search == "?i=%F0%D2%CF%D7%C5%D2%CB%C1") {
        document.forms[0].elements[0].value="Проверка-2";
        document.forms[0].submit();
    } else if (location.search == "?i=%F0%D2%CF%D7%C5%D2%CB%C1-2") {
        parent.postMessage("allDone", "*");
    } else {
        alert("Unexpected URI: " + location);
        parent.postMessage("allDone", "*");
    }
}
applicationCache.onnoupdate = function() { test() }
applicationCache.oncached = function() { test() }
</script>
</body>
</html>