Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5914)

Unified Diff: chrome/test/data/android/device_files/webview/image_access.html

Issue 10911097: [Android] Upstream org.chromium.base.test.UrlUtils (partially) and device files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/android/device_files/webview/image_access.html
diff --git a/chrome/test/data/android/device_files/webview/image_access.html b/chrome/test/data/android/device_files/webview/image_access.html
new file mode 100644
index 0000000000000000000000000000000000000000..40bcf64a4edef3a19673bb94680faf0ef364c2dd
--- /dev/null
+++ b/chrome/test/data/android/device_files/webview/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 (b/6088775). -->
klundberg 2012/09/05 16:47:03 Might be a good idea to move b/6088775 into crbug
mnaganov (inactive) 2012/09/05 16:58:10 Added crbug.com/146554.
+ <body onload="updateTitle(); setInterval('updateTitle()', 500)">
+ <img id="img" onload="updateTitle()" src="chrome.png" />
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698