diff options
author | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 15:38:14 +0000 |
---|---|---|
committer | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 15:38:14 +0000 |
commit | fc62ee00130d361b063964423fc362c2fe4d5145 (patch) | |
tree | 2e28a1441f25a337ea3b30f649eb0a847adc7d99 /android_webview/test/data | |
parent | 091e96266b2a071f2f2b8341cde694a41e5577e9 (diff) | |
download | chromium_src-fc62ee00130d361b063964423fc362c2fe4d5145.zip chromium_src-fc62ee00130d361b063964423fc362c2fe4d5145.tar.gz chromium_src-fc62ee00130d361b063964423fc362c2fe4d5145.tar.bz2 |
[Android] Upstream org.chromium.base.test.UrlUtils (partially) and device files
Required by android_webview AwSettingsTest
BUG=146009
Review URL: https://chromiumcodereview.appspot.com/10911097
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/test/data')
-rw-r--r-- | android_webview/test/data/device_files/chrome.png | bin | 0 -> 586 bytes | |||
-rw-r--r-- | android_webview/test/data/device_files/hello_world.html | 8 | ||||
-rw-r--r-- | android_webview/test/data/device_files/iframe_access.html | 16 | ||||
-rw-r--r-- | android_webview/test/data/device_files/image_access.html | 13 | ||||
-rw-r--r-- | android_webview/test/data/device_files/localStorage.html | 7 | ||||
-rw-r--r-- | android_webview/test/data/device_files/script.js | 1 | ||||
-rw-r--r-- | android_webview/test/data/device_files/xhr_access.html | 16 |
7 files changed, 61 insertions, 0 deletions
diff --git a/android_webview/test/data/device_files/chrome.png b/android_webview/test/data/device_files/chrome.png Binary files differnew file mode 100644 index 0000000..d7f88be --- /dev/null +++ b/android_webview/test/data/device_files/chrome.png diff --git a/android_webview/test/data/device_files/hello_world.html b/android_webview/test/data/device_files/hello_world.html new file mode 100644 index 0000000..8974ba7 --- /dev/null +++ b/android_webview/test/data/device_files/hello_world.html @@ -0,0 +1,8 @@ +<html> + <head> + <title>Hello, World!</title> + </head> + <body> + Hello, World! + </body> +</html> diff --git a/android_webview/test/data/device_files/iframe_access.html b/android_webview/test/data/device_files/iframe_access.html new file mode 100644 index 0000000..86e0d23 --- /dev/null +++ b/android_webview/test/data/device_files/iframe_access.html @@ -0,0 +1,16 @@ +<html> + <head> + <script> + function onload() { + try { + document.title = document.getElementById("frame").contentWindow.location.href; + } catch (e) { + document.title = "Exception"; + } + } + </script> + </head> + <body onload="onload()"> + <iframe id="frame" src="hello_world.html"></iframe> + </body> +</html> diff --git a/android_webview/test/data/device_files/image_access.html b/android_webview/test/data/device_files/image_access.html new file mode 100644 index 0000000..0b4cd49 --- /dev/null +++ b/android_webview/test/data/device_files/image_access.html @@ -0,0 +1,13 @@ +<html> + <head> + <script> + function updateTitle() { + document.title = document.getElementById('img').naturalHeight; + } + </script> + </head> + <!-- TODO(mnaganov): Remove setInterval once img.onload fix is landed in WebKit (crbug.com/146554). --> + <body onload="updateTitle(); setInterval('updateTitle()', 500)"> + <img id="img" onload="updateTitle()" src="chrome.png" /> + </body> +</html> diff --git a/android_webview/test/data/device_files/localStorage.html b/android_webview/test/data/device_files/localStorage.html new file mode 100644 index 0000000..be144a0 --- /dev/null +++ b/android_webview/test/data/device_files/localStorage.html @@ -0,0 +1,7 @@ +<html> + <head> + <script>document.title = localStorage ? "Has localStorage" : "No localStorage"</script> + </head> + <body> + </body> +</html> diff --git a/android_webview/test/data/device_files/script.js b/android_webview/test/data/device_files/script.js new file mode 100644 index 0000000..911313f --- /dev/null +++ b/android_webview/test/data/device_files/script.js @@ -0,0 +1 @@ +script_was_loaded = true; diff --git a/android_webview/test/data/device_files/xhr_access.html b/android_webview/test/data/device_files/xhr_access.html new file mode 100644 index 0000000..18ee923 --- /dev/null +++ b/android_webview/test/data/device_files/xhr_access.html @@ -0,0 +1,16 @@ +<html> + <head> + <script> + var xhr = new XMLHttpRequest(); + xhr.open("GET", "hello_world.html", false); + try { + xhr.send(); + document.write(xhr.responseText); + } catch (e) { + document.title = "Exception"; + } + </script> + </head> + <body> + </body> +</html> |