| 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>
|
|
|