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

Side by Side Diff: chrome/test/data/instant.html

Issue 11233076: Fix spurious visibility events when committing Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebaseline 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html><body><h1>Instant</h1><script> 1 <html><body><h1>Instant</h1><script>
2 2
3 var onvisibilitycalls = 0;
4 document.addEventListener("webkitvisibilitychange", function() {
5 onvisibilitycalls++;
6 }, false);
7
3 var onchangecalls = 0; 8 var onchangecalls = 0;
4 var onsubmitcalls = 0; 9 var onsubmitcalls = 0;
5 var oncancelcalls = 0; 10 var oncancelcalls = 0;
6 var onresizecalls = 0; 11 var onresizecalls = 0;
7 var onfocuscalls = 0; 12 var onfocuscalls = 0;
8 var onblurcalls = 0; 13 var onblurcalls = 0;
9 14
10 var value = ""; 15 var value = "";
11 var verbatim = false; 16 var verbatim = false;
12 var height = 0; 17 var height = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 51 };
47 52
48 chrome.searchBox.onblur = function() { 53 chrome.searchBox.onblur = function() {
49 onblurcalls++; 54 onblurcalls++;
50 }; 55 };
51 56
52 if (chrome.searchBox.value != "") 57 if (chrome.searchBox.value != "")
53 chrome.searchBox.onchange(); 58 chrome.searchBox.onchange();
54 59
55 </script></body></html> 60 </script></body></html>
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698