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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/tab-restore-visibilty.html
diff --git a/chrome/test/data/tab-restore-visibilty.html b/chrome/test/data/tab-restore-visibilty.html
new file mode 100644
index 0000000000000000000000000000000000000000..fda2344fcedfba8a1d4d96d40bc6fa791f592f34
--- /dev/null
+++ b/chrome/test/data/tab-restore-visibilty.html
@@ -0,0 +1,19 @@
+<script>
+var count = 0;
+
+function setTitle() {
+ // document.title reports the DOM page visibility and RAF count.
+ document.title = document.visibilityState + ' ' + count++;
+
+ if (window.ready == undefined)
+ setTimeout(function() { ready = true }, count > 10 ? 0 : 100);
+}
+
+document.addEventListener('visibilitychange', setTitle);
+
+(function changeTitle() {
+ window.requestAnimationFrame(changeTitle);
+ setTitle();
+})();
+
+</script>
« 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