summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html')
-rw-r--r--LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html b/LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html
new file mode 100644
index 0000000..a97c508
--- /dev/null
+++ b/LayoutTests/http/tests/appcache/resources/cyrillic-uri-form.html
@@ -0,0 +1,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>