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

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

Issue 6675052: power_LoadTest: Add parameter for custom tasks (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: More cleanups Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/site_tests/power_LoadTest/power_LoadTest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!--- 1 <!---
2 Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2 Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 ---> 5 --->
6 6
7 <html> 7 <html>
8 8
9 <body> 9 <body>
10 Power Load Test Arguments : 10 Power Load Test Arguments :
(...skipping 17 matching lines...) Expand all
28 var customEvent = document.createEvent('Event'); 28 var customEvent = document.createEvent('Event');
29 customEvent.initEvent('myCustomEvent', true, true); 29 customEvent.initEvent('myCustomEvent', true, true);
30 30
31 // Place customizable test arguments into divs 31 // Place customizable test arguments into divs
32 createDiv('test_time_ms', test_time_ms, false); 32 createDiv('test_time_ms', test_time_ms, false);
33 createDiv('should_scroll', should_scroll, false); 33 createDiv('should_scroll', should_scroll, false);
34 createDiv('should_scroll_up', should_scroll_up, false); 34 createDiv('should_scroll_up', should_scroll_up, false);
35 createDiv('scroll_loop', scroll_loop, false); 35 createDiv('scroll_loop', scroll_loop, false);
36 createDiv('scroll_interval_ms', scroll_interval_ms, false); 36 createDiv('scroll_interval_ms', scroll_interval_ms, false);
37 createDiv('scroll_by_pixels', scroll_by_pixels, false); 37 createDiv('scroll_by_pixels', scroll_by_pixels, false);
38 createDiv('tasks', tasks, false);
38 createDiv('myCustomEventDiv', data, true); 39 createDiv('myCustomEventDiv', data, true);
39 40
40 41
41 function fireCustomEvent(data) { 42 function fireCustomEvent(data) {
42 hiddenDiv2 = document.getElementById('myCustomEventDiv'); 43 hiddenDiv2 = document.getElementById('myCustomEventDiv');
43 hiddenDiv2.innerText = data; 44 hiddenDiv2.innerText = data;
44 hiddenDiv2.dispatchEvent(customEvent); 45 hiddenDiv2.dispatchEvent(customEvent);
45 } 46 }
46 47
47 data = "foo!"; 48 data = "foo!";
48 setTimeout(fireCustomEvent, 1000, data); 49 setTimeout(fireCustomEvent, 1000, data);
49 50
50 </script> 51 </script>
51 </html> 52 </html>
52 53
OLDNEW
« no previous file with comments | « client/site_tests/power_LoadTest/power_LoadTest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698