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

Side by Side Diff: client/site_tests/power_LoadTest/testparams.html

Issue 2844047: Modify power_LoadTest Extension to pull in test parameters. (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Set 1 hour long test. Created 9 years, 10 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
OLDNEW
(Empty)
1 <!---
2 Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
Sameer Nanda 2011/02/28 22:11:34 change year to 2011
Benson Leung 2011/03/01 02:16:19 Done.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 --->
6
7 <html>
8
9 <body>
10 Power Load Test Arguments :
11 </body>
12
13 <script src='params.js'>
14 </script>
15
16 <script>
17 var data = "";
18
19 function createDiv(id, data, hidden) {
20 var newdiv = document.createElement('div');
21 newdiv.setAttribute('id', id);
22 newdiv.innerText = data;
23 if (true == hidden)
24 newdiv.style.display = 'none';
25 document.body.appendChild(newdiv);
26 }
27
28 var customEvent = document.createEvent('Event');
29 customEvent.initEvent('myCustomEvent', true, true);
30
31 // Place customizable test arguments into divs
32 createDiv('test_time_ms', test_time_ms, false);
33 createDiv('should_scroll', should_scroll, false);
34 createDiv('should_scroll_up', should_scroll_up, false);
35 createDiv('scroll_loop', scroll_loop, false);
36 createDiv('scroll_interval_ms', scroll_interval_ms, false);
37 createDiv('scroll_by_pixels', scroll_by_pixels, false);
38 createDiv('myCustomEventDiv', data, true);
39
40
41 function fireCustomEvent(data) {
42 hiddenDiv2 = document.getElementById('myCustomEventDiv');
43 hiddenDiv2.innerText = data;
44 hiddenDiv2.dispatchEvent(customEvent);
45 }
46
47 data = "foo!";
48 setTimeout(fireCustomEvent, 1000, data);
49
50 </script>
51 </html>
52
OLDNEW
« client/site_tests/power_LoadTest/params.js ('K') | « client/site_tests/power_LoadTest/params.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698