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

Side by Side Diff: chrome/test/functional/media/media_stat_perf.py

Issue 10830193: Remove SWIGged use of BrowserProxy and TabProxy from PyAuto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used named arguments and deleted unused test files, as suggested by Nirnimesh. Created 8 years, 4 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 | « chrome/test/functional/instant.py ('k') | chrome/test/functional/media/worker_thread.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium 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 """CPU, Memory, and FPS performance test for <video>. 6 """CPU, Memory, and FPS performance test for <video>.
7 7
8 Calculates decoded fps, dropped fps, CPU, and memory statistics while playing 8 Calculates decoded fps, dropped fps, CPU, and memory statistics while playing
9 HTML5 media element. The test compares results of playing a media file on 9 HTML5 media element. The test compares results of playing a media file on
10 different video resolutions. 10 different video resolutions.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 dropped_frames = self.GetDOMValue('droppedFrames', tab_index=1) 68 dropped_frames = self.GetDOMValue('droppedFrames', tab_index=1)
69 dropped_fps = [ 69 dropped_fps = [
70 float(value) for value in 70 float(value) for value in
71 self.GetDOMValue("droppedFPS.join(',')", tab_index=1).split(',')] 71 self.GetDOMValue("droppedFPS.join(',')", tab_index=1).split(',')]
72 72
73 pyauto_utils.PrintPerfResult('fps', file_name, decoded_fps, 'fps') 73 pyauto_utils.PrintPerfResult('fps', file_name, decoded_fps, 'fps')
74 pyauto_utils.PrintPerfResult('dropped_fps', file_name, dropped_fps, 'fps') 74 pyauto_utils.PrintPerfResult('dropped_fps', file_name, dropped_fps, 'fps')
75 pyauto_utils.PrintPerfResult('dropped_frames', file_name, dropped_frames, 75 pyauto_utils.PrintPerfResult('dropped_frames', file_name, dropped_frames,
76 'frames') 76 'frames')
77 77
78 self.GetBrowserWindow(0).GetTab(1).Close(True) 78 self.CloseTab(tab_index=1)
79 79
80 80
81 if __name__ == '__main__': 81 if __name__ == '__main__':
82 pyauto_media.Main() 82 pyauto_media.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/instant.py ('k') | chrome/test/functional/media/worker_thread.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698