summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:06:01 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:06:01 +0000
commit136eae42410ba7527babd9f582194bb25021d429 (patch)
treee20ba282f89e4c8696085e963a0b3961c6bf6634 /chrome/test
parent13ad03f1c35573888f4bfdc8f7e957afb7e7d50d (diff)
downloadchromium_src-136eae42410ba7527babd9f582194bb25021d429.zip
chromium_src-136eae42410ba7527babd9f582194bb25021d429.tar.gz
chromium_src-136eae42410ba7527babd9f582194bb25021d429.tar.bz2
Change to use encodeURIComponent to encode the UTF8 character in the returned
result. This is to make text-encoding.html work in UI test. Also removed a couple files forgot to remove during last commit. BUG=none TEST=none Review URL: http://codereview.chromium.org/150035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/workers/layout_test_controller.html2
-rw-r--r--chrome/test/data/workers/test_http_server_up.html28
-rw-r--r--chrome/test/data/workers/worker_common.php4
3 files changed, 1 insertions, 33 deletions
diff --git a/chrome/test/data/workers/layout_test_controller.html b/chrome/test/data/workers/layout_test_controller.html
index 380005e..cb97db2 100644
--- a/chrome/test/data/workers/layout_test_controller.html
+++ b/chrome/test/data/workers/layout_test_controller.html
@@ -3,7 +3,7 @@ function LayoutTestController() {
this.dumpAsText = function () { };
this.waitUntilDone = function () { };
this.notifyDone = function () {
- var cookie = "%COOKIE%=" + escape(document.firstChild.innerText);
+ var cookie = "%COOKIE%=" + encodeURIComponent(document.firstChild.innerText);
document.cookie = cookie;
};
}
diff --git a/chrome/test/data/workers/test_http_server_up.html b/chrome/test/data/workers/test_http_server_up.html
deleted file mode 100644
index 767827e..0000000
--- a/chrome/test/data/workers/test_http_server_up.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<head>
-<title>Test Http Server is up.</title>
-
-<script src="worker_utils.js"></script>
-
-<script>
-
-// Load the worker from the php script.
-// If this page loads and can access php, the server
-// is resonably up and running.
-
-var worker = new Worker("worker_common.php");
-
-worker.onmessage = function(evt) {
- if (evt.data == "pong")
- onSuccess();
-}
-
-worker.postMessage("ping");
-
-</script>
-</head>
-
-<body>
-<div id=statusPanel></div>
-</body>
-</html>
diff --git a/chrome/test/data/workers/worker_common.php b/chrome/test/data/workers/worker_common.php
deleted file mode 100644
index f601edd..0000000
--- a/chrome/test/data/workers/worker_common.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-echo "onmessage = function(evt) { if (evt.data == 'ping') postMessage('pong'); }";
-?>
-