OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // List of tasks to accomplish | 5 // List of tasks to accomplish |
6 var URLS = new Array(); | 6 var URLS = new Array(); |
7 | 7 |
8 var ViewGDoc = ('http://docs.google.com/RawDocContents?action=fetch&' + | 8 var ViewGDoc = ('http://docs.google.com/RawDocContents?action=fetch&' + |
9 'justBody=false&revision=_latest&editMode=true&docID='); | 9 'justBody=false&revision=_latest&editMode=true&docID='); |
10 | 10 |
11 var tasks = [ | 11 var tasks = [ |
12 { | 12 { |
13 // Chrome browser window 1. This window remains open for the entire test. | 13 // Chrome browser window 1. This window remains open for the entire test. |
14 'type': 'window', | 14 type: 'window', |
15 name: 'background', | |
15 start: 0, | 16 start: 0, |
16 duration: 60 * 60 * 1000, | 17 duration: minutes(2), |
17 tabs: [ | 18 tabs: [ |
18 'http://www.cnn.com', | 19 'http://www.cnn.com', |
19 'http://news.google.com', | 20 'http://news.google.com', |
20 'http://finance.yahoo.com', | 21 'http://finance.yahoo.com', |
21 'http://clothing.shop.ebay.com/Womens-Shoes-/63889/i.html', | 22 'http://clothing.shop.ebay.com/Womens-Shoes-/63889/i.html', |
22 'http://www.facebook.com' | 23 'http://www.facebook.com' |
23 ] | 24 ] |
24 }, | 25 }, |
25 { | 26 { |
26 // Page cycle through popular external websites for 36 minutes | 27 // Page cycle through popular external websites for 36 minutes |
27 type: 'cycle', | 28 type: 'cycle', |
28 name: 'web', | 29 name: 'web', |
29 start: 0, | 30 start: 0, |
30 duration: 36 * 60 * 1000, | 31 duration: minutes(36), |
31 delay: 60 * 1000, // A minute on each page | 32 delay: seconds(10), // A minute on each page |
Sameer Nanda
2011/03/31 23:42:22
this should be seconds(60)
nice cleanup, btw :)
Simon Que
2011/04/01 21:37:15
Done.
| |
32 timeout: 10 * 1000, | 33 timeout: seconds(10), |
33 focus: true, | 34 focus: true, |
34 urls: URLS, | 35 urls: URLS, |
35 }, | 36 }, |
36 { | 37 { |
37 // After 36 minutes, actively read e-mail for 12 minutes | 38 // After 36 minutes, actively read e-mail for 12 minutes |
38 type: 'cycle', | 39 type: 'cycle', |
39 name: 'email', | 40 name: 'email', |
40 start: 36 * 60 * 1000 + 1 * 1000, | 41 start: minutes(36) + seconds(1), |
41 duration: 12 * 60 * 1000 - 1 * 1000, | 42 duration: minutes(12) - seconds(1), |
42 delay: 5 * 60 * 1000, // 5 minutes between full gmail refresh | 43 delay: minutes(5), // 5 minutes between full gmail refresh |
43 timeout: 10 * 1000, | 44 timeout: seconds(10), |
44 focus: true, | 45 focus: true, |
45 urls: [ | 46 urls: [ |
46 'http://gmail.com', | 47 'http://gmail.com', |
47 'http://mail.google.com' | 48 'http://mail.google.com' |
48 ], | 49 ], |
49 }, | 50 }, |
50 { | 51 { |
51 // After 36 minutes, start streaming audio (background tab), total playtime | 52 // After 36 minutes, start streaming audio (background tab), total playtime |
52 // 12 minutes | 53 // 12 minutes |
53 type: 'cycle', | 54 type: 'cycle', |
54 name: 'audio', | 55 name: 'audio', |
55 start: 36 * 60 * 1000, | 56 start: minutes(36), |
56 duration: 12 * 60 * 1000, | 57 duration: minutes(12), |
57 delay: 12 * 60 * 1000, | 58 delay: minutes(12), |
58 timeout: 10 * 1000, | 59 timeout: seconds(10), |
59 focus: false, | 60 focus: false, |
60 urls: [ | 61 urls: [ |
61 'http://www.bbc.co.uk/worldservice/audioconsole/?stream=live', | 62 'http://www.bbc.co.uk/worldservice/audioconsole/?stream=live', |
62 'http://www.npr.org/templates/player/mediaPlayer.html?action=3&t=live1', | 63 'http://www.npr.org/templates/player/mediaPlayer.html?action=3&t=live1', |
63 'http://www.cbc.ca/radio2/channels/popup.html?stream=classical' | 64 'http://www.cbc.ca/radio2/channels/popup.html?stream=classical' |
64 ] | 65 ] |
65 }, | 66 }, |
66 { | 67 { |
67 // After 48 minutes, play with Google Docs for 6 minutes | 68 // After 48 minutes, play with Google Docs for 6 minutes |
68 type: 'cycle', | 69 type: 'cycle', |
69 name: 'docs', | 70 name: 'docs', |
70 start: 48 * 60 * 1000, | 71 start: minutes(48), |
71 duration: 6 * 60 * 1000, | 72 duration: minutes(6), |
72 delay: 60 * 1000, // A minute on each page | 73 delay: minutes(1), // A minute on each page |
73 timeout: 10 * 1000, | 74 timeout: seconds(10), |
74 focus: true, | 75 focus: true, |
75 urls: [ | 76 urls: [ |
76 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMXJzbmdoamcy', | 77 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMXJzbmdoamcy', |
77 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMGRkcmY4emNu' | 78 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMGRkcmY4emNu' |
78 ], | 79 ], |
79 }, | 80 }, |
80 { | 81 { |
81 // After 54 minutes, watch Google IO for 6 minutes | 82 // After 54 minutes, watch Google IO for 6 minutes |
82 type: 'window', | 83 type: 'window', |
83 name: 'video', | 84 name: 'video', |
84 start: 54 * 60 * 1000, | 85 start: minutes(54), |
85 duration: 6 * 60 * 1000, | 86 duration: minutes(6), |
86 focus: true, | 87 focus: true, |
87 tabs: [ | 88 tabs: [ |
88 'http://www.youtube.com/v/ecI_hCBGEIM&autoplay=1' | 89 'http://www.youtube.com/v/ecI_hCBGEIM&autoplay=1' |
89 ] | 90 ] |
90 }, | 91 }, |
91 ]; | 92 ]; |
92 | 93 |
93 | 94 |
94 // List of URLs to cycle through | 95 // List of URLs to cycle through |
95 var u_index = 0; | 96 var u_index = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 URLS[u_index++] = 'http://www.netflix.com'; | 141 URLS[u_index++] = 'http://www.netflix.com'; |
141 URLS[u_index++] = 'http://www.fastclick.net'; | 142 URLS[u_index++] = 'http://www.fastclick.net'; |
142 URLS[u_index++] = 'http://www.windows.com'; | 143 URLS[u_index++] = 'http://www.windows.com'; |
143 URLS[u_index++] = 'http://www.questionmarket.com'; | 144 URLS[u_index++] = 'http://www.questionmarket.com'; |
144 URLS[u_index++] = 'http://www.nytimes.com'; | 145 URLS[u_index++] = 'http://www.nytimes.com'; |
145 URLS[u_index++] = 'http://www.toysrus.com'; | 146 URLS[u_index++] = 'http://www.toysrus.com'; |
146 URLS[u_index++] = 'http://www.allrecipes.com'; | 147 URLS[u_index++] = 'http://www.allrecipes.com'; |
147 URLS[u_index++] = 'http://www.overstock.com'; | 148 URLS[u_index++] = 'http://www.overstock.com'; |
148 URLS[u_index++] = 'http://www.comcast.net'; | 149 URLS[u_index++] = 'http://www.comcast.net'; |
149 | 150 |
OLD | NEW |