Home | History | Annotate | Download | only in extension
      1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // List of tasks to accomplish
      6 var URLS = new Array();
      7 
      8 var ViewGDoc = ('https://docs.google.com/document/d/');
      9 
     10 var tasks = [
     11   {
     12     // Chrome browser window 1. This window remains open for the entire test.
     13     type: 'window',
     14     name: 'background',
     15     start: 0,
     16     duration: minutes(60),
     17     focus: false,
     18     tabs: [
     19      'http://www.google.com',
     20      'http://news.google.com',
     21      'http://finance.yahoo.com',
     22      'http://clothing.shop.ebay.com/Womens-Shoes-/63889/i.html',
     23      'http://www.facebook.com'
     24     ]
     25   },
     26   {
     27     // Page cycle through popular external websites for 36 minutes
     28     type: 'cycle',
     29     name: 'web',
     30     start: seconds(1),
     31     duration: minutes(36),
     32     delay: seconds(60), // A minute on each page
     33     timeout: seconds(10),
     34     focus: true,
     35     urls: URLS,
     36   },
     37   {
     38     // After 36 minutes, actively read e-mail for 12 minutes
     39     type: 'cycle',
     40     name: 'email',
     41     start: minutes(36) + seconds(1),
     42     duration: minutes(12) - seconds(1),
     43     delay: minutes(5), // 5 minutes between full gmail refresh
     44     timeout: seconds(10),
     45     focus: true,
     46     urls: [
     47        'http://gmail.com',
     48        'http://mail.google.com'
     49     ],
     50   },
     51   {
     52     // After 36 minutes, start streaming audio (background tab), total playtime
     53     // 12 minutes
     54     type: 'cycle',
     55     name: 'audio',
     56     start: minutes(36),
     57     duration: minutes(12),
     58     delay: minutes(12),
     59     timeout: seconds(10),
     60     focus: false,
     61     urls: [
     62       'http://www.bbc.co.uk/worldservice/audioconsole/?stream=live',
     63       'http://www.npr.org/templates/player/mediaPlayer.html?action=3&t=live1',
     64       'http://www.cbc.ca/radio2/channels/popup.html?stream=classical'
     65     ]
     66   },
     67   {
     68     // After 48 minutes, play with Google Docs for 6 minutes
     69     type: 'cycle',
     70     name: 'docs',
     71     start: minutes(48),
     72     duration: minutes(6),
     73     delay: minutes(1), // A minute on each page
     74     timeout: seconds(10),
     75     focus: true,
     76     urls: [
     77        ViewGDoc + '1CIvneyASuIHvxxN0WV22zikb08Us1nc93mkU0c5Azr4/edit',
     78        ViewGDoc + '120TtfoHXCgRuaubGhra3X5tl0_pS7KX757wFigTFf0c/edit'
     79     ],
     80   },
     81   {
     82     // After 54 minutes, watch Big Buck Bunny for 6 minutes
     83     type: 'window',
     84     name: 'video',
     85     start: minutes(54),
     86     duration: minutes(6),
     87     focus: true,
     88     tabs: [
     89         'http://www.youtube.com/embed/YE7VzlLtp-4?start=236&vq=hd720&autoplay=1'
     90     ]
     91   },
     92 ];
     93 
     94 
     95 // List of URLs to cycle through
     96 var u_index = 0;
     97 URLS[u_index++] = 'http://www.google.com';
     98 URLS[u_index++] = 'http://www.yahoo.com';
     99 URLS[u_index++] = 'http://www.facebook.com';
    100 URLS[u_index++] = 'http://www.youtube.com';
    101 URLS[u_index++] = 'http://www.wikipedia.org';
    102 URLS[u_index++] = 'http://www.amazon.com';
    103 URLS[u_index++] = 'http://www.msn.com';
    104 URLS[u_index++] = 'http://www.bing.com';
    105 URLS[u_index++] = 'http://www.blogspot.com';
    106 URLS[u_index++] = 'http://www.microsoft.com';
    107 URLS[u_index++] = 'http://www.myspace.com';
    108 URLS[u_index++] = 'http://www.go.com';
    109 URLS[u_index++] = 'http://www.walmart.com';
    110 URLS[u_index++] = 'http://www.about.com';
    111 URLS[u_index++] = 'http://www.target.com';
    112 URLS[u_index++] = 'http://www.aol.com';
    113 URLS[u_index++] = 'http://www.mapquest.com';
    114 URLS[u_index++] = 'http://www.ask.com';
    115 URLS[u_index++] = 'http://www.craigslist.org';
    116 URLS[u_index++] = 'http://www.wordpress.com';
    117 URLS[u_index++] = 'http://www.answers.com';
    118 URLS[u_index++] = 'http://www.paypal.com';
    119 URLS[u_index++] = 'http://www.imdb.com';
    120 URLS[u_index++] = 'http://www.bestbuy.com';
    121 URLS[u_index++] = 'http://www.ehow.com';
    122 URLS[u_index++] = 'http://www.photobucket.com';
    123 URLS[u_index++] = 'http://www.cnn.com';
    124 URLS[u_index++] = 'http://www.chase.com';
    125 URLS[u_index++] = 'http://www.att.com';
    126 URLS[u_index++] = 'http://www.sears.com';
    127 URLS[u_index++] = 'http://www.weather.com';
    128 URLS[u_index++] = 'http://www.apple.com';
    129 URLS[u_index++] = 'http://www.zynga.com';
    130 URLS[u_index++] = 'http://www.adobe.com';
    131 URLS[u_index++] = 'http://www.bankofamerica.com';
    132 URLS[u_index++] = 'http://www.zedo.com';
    133 URLS[u_index++] = 'http://www.flickr.com';
    134 URLS[u_index++] = 'http://www.shoplocal.com';
    135 URLS[u_index++] = 'http://www.twitter.com';
    136 URLS[u_index++] = 'http://www.cnet.com';
    137 URLS[u_index++] = 'http://www.verizonwireless.com';
    138 URLS[u_index++] = 'http://www.kohls.com';
    139 URLS[u_index++] = 'http://www.bizrate.com';
    140 URLS[u_index++] = 'http://www.jcpenney.com';
    141 URLS[u_index++] = 'http://www.netflix.com';
    142 URLS[u_index++] = 'http://www.fastclick.net';
    143 URLS[u_index++] = 'http://www.windows.com';
    144 URLS[u_index++] = 'http://www.questionmarket.com';
    145 URLS[u_index++] = 'http://www.nytimes.com';
    146 URLS[u_index++] = 'http://www.toysrus.com';
    147 URLS[u_index++] = 'http://www.allrecipes.com';
    148 URLS[u_index++] = 'http://www.overstock.com';
    149 URLS[u_index++] = 'http://www.comcast.net';
    150 
    151