OLD | NEW |
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 Loading... |
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 |
OLD | NEW |