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

Side by Side Diff: chrome/test/data/tab-restore-visibilty.html

Issue 227043004: Restored tabs should set their initial visibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/visible/visibile/g Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <script>
2 var count = 0;
3
4 function setTitle() {
5 // document.title reports the DOM page visibility and RAF count.
6 document.title = document.visibilityState + ' ' + count++;
7
8 if (window.ready == undefined)
9 setTimeout(function() { ready = true }, count > 10 ? 0 : 100);
10 }
11
12 document.addEventListener('visibilitychange', setTitle);
13
14 (function changeTitle() {
15 window.requestAnimationFrame(changeTitle);
16 setTitle();
17 })();
18
19 </script>
OLDNEW
« chrome/browser/ui/browser_tabrestore_browsertest.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698