summaryrefslogtreecommitdiffstats
path: root/chrome/test/data
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-13 20:20:23 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-13 20:20:23 +0000
commit6e6b59f4e4e2523a3488a163a4236f14f53be365 (patch)
tree35c0870e1df3c03d747f878790e65cfca95d042a /chrome/test/data
parentb699594334d47fea6055dab88d0479917a411a58 (diff)
downloadchromium_src-6e6b59f4e4e2523a3488a163a4236f14f53be365.zip
chromium_src-6e6b59f4e4e2523a3488a163a4236f14f53be365.tar.gz
chromium_src-6e6b59f4e4e2523a3488a163a4236f14f53be365.tar.bz2
Fixes bug in instant where we wouldn't initially tell the page the
real bounds of the omnibox. The bug occurred because we didn't initially send down the bounds so that when the init script ran it sent a bounds of 0x0. When the browser then processed the response that the page supported instant it incorrectly assumed the page was told the right bounds. BUG=65463 TEST=see bug (specifcally comment 5). this is now covered by an interactive ui test as well. Review URL: http://codereview.chromium.org/5697003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data')
-rw-r--r--chrome/test/data/instant/old_api.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/test/data/instant/old_api.html b/chrome/test/data/instant/old_api.html
new file mode 100644
index 0000000..7f3d006
--- /dev/null
+++ b/chrome/test/data/instant/old_api.html
@@ -0,0 +1,18 @@
+<html>
+<body>
+<script>
+window.chrome.sv = true;
+
+window.validHeight = false;
+
+window.chrome.userInput = function(value, verbatim, ignored) {
+ window.chrome.setSuggestResult(value);
+};
+
+window.chrome.setDropdownDimensions = function(x, y, w, h) {
+ window.validHeight = (h > 0);
+};
+
+</script>
+</body>
+</html>