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

Unified Diff: content/test/data/overscroll_navigation.html

Issue 11414048: overscroll: Add a browser-test for the aura implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable-test-on-win-aura Created 8 years, 1 month 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
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/overscroll_navigation.html
diff --git a/content/test/data/overscroll_navigation.html b/content/test/data/overscroll_navigation.html
new file mode 100644
index 0000000000000000000000000000000000000000..7ea687bc608e1bf1f6ad4a61196324a9ce5226ec
--- /dev/null
+++ b/content/test/data/overscroll_navigation.html
@@ -0,0 +1,64 @@
+<html>
+<title>Title: 0</title>
+<style>
+
+.large {
+ width: 300px;
+ height: 100px;
+ background-color: red;
+ margin: 300px;
+}
+
+</style>
+
+<div name='0' class='large'></div>
+<div name='1' class='large'></div>
+<div name='2' class='large'></div>
+<div name='3' class='large'></div>
+<div name='4' class='large'></div>
+<div name='5' class='large'></div>
+<div name='6' class='large'></div>
+<div name='7' class='large'></div>
+<div name='8' class='large'></div>
+<div name='9' class='large'></div>
+
+<script>
+
+function get_current() {
+ if (location.hash.length == 0)
+ return 0;
+ return parseInt(location.hash.substr(1));
+}
+
+function navigate_next() {
+ var current = get_current();
+ current = (current + 1) % 10;
+ location.hash = "#" + current;
+}
+
+function navigate_prev() {
+ var current = get_current();
+ current = (current + 9) % 10;
+ location.hash = "#" + current;
+}
+
+function touch_start_handler() {
+}
+
+function install_touch_handler() {
+ document.addEventListener('touchstart', touch_start_handler);
+}
+
+function uninstall_touch_handler() {
+ document.removeEventListener('touchstart', touch_start_handler);
+}
+
+onload = function() {
+ window.onhashchange = function() {
+ document.title = "Title: " + location.hash;
+ }
+}
+
+</script>
+
+</html>
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698