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

Side by Side Diff: chrome/test/functional/gpu.py

Issue 8295021: Fix an outdated pyauto gpu test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 2 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 | « no previous file | 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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 import logging 6 import logging
7 import os 7 import os
8 8
9 import pyauto_functional # Must be imported before pyauto 9 import pyauto_functional # Must be imported before pyauto
10 import pyauto 10 import pyauto
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 self.assertTrue(self._IsHardwareAccelerated('Canvas')) 65 self.assertTrue(self._IsHardwareAccelerated('Canvas'))
66 self._VerifyGPUProcessOnPage('CanvasDemo.html') 66 self._VerifyGPUProcessOnPage('CanvasDemo.html')
67 67
68 def test3dCss(self): 68 def test3dCss(self):
69 """Verify that gpu process is spawned when viewing a 3D CSS page.""" 69 """Verify that gpu process is spawned when viewing a 3D CSS page."""
70 self.assertTrue(self._IsHardwareAccelerated('3D CSS')) 70 self.assertTrue(self._IsHardwareAccelerated('3D CSS'))
71 self._VerifyGPUProcessOnPage('3dCss.html') 71 self._VerifyGPUProcessOnPage('3dCss.html')
72 72
73 def testCompositing(self): 73 def testCompositing(self):
74 """Verify gpu process in compositing example.""" 74 """Verify gpu process in compositing example."""
75 self.assertTrue(self._IsHardwareAccelerated('Compositing')) 75 self.assertTrue(self._IsHardwareAccelerated('WebGL'))
76 self._VerifyGPUProcessOnPage('WebGLTeapot.html') 76 self._VerifyGPUProcessOnPage('WebGLTeapot.html')
77 77
78 def testWebGL(self): 78 def testWebGL(self):
79 """Verify that gpu process is spawned in webgl example.""" 79 """Verify that gpu process is spawned in webgl example."""
80 self.assertTrue(self._IsHardwareAccelerated('WebGL')) 80 self.assertTrue(self._IsHardwareAccelerated('WebGL'))
81 self._VerifyGPUProcessOnPage('WebGLField.html') 81 self._VerifyGPUProcessOnPage('WebGLField.html')
82 82
83 def testGpuWithVideo(self): 83 def testGpuWithVideo(self):
84 """Verify that gpu process is started when viewing video.""" 84 """Verify that gpu process is started when viewing video."""
85 self.assertTrue(self._IsHardwareAccelerated('WebGL')) 85 self.assertTrue(self._IsHardwareAccelerated('WebGL'))
(...skipping 14 matching lines...) Expand all
100 # Verify there's only 1 gpu process. 100 # Verify there's only 1 gpu process.
101 gpu_process_count = 0 101 gpu_process_count = 0
102 for x in self.GetBrowserInfo()['child_processes']: 102 for x in self.GetBrowserInfo()['child_processes']:
103 if x['type'] == 'GPU': 103 if x['type'] == 'GPU':
104 gpu_process_count += 1 104 gpu_process_count += 1
105 self.assertEqual(1, gpu_process_count) 105 self.assertEqual(1, gpu_process_count)
106 106
107 107
108 if __name__ == '__main__': 108 if __name__ == '__main__':
109 pyauto_functional.Main() 109 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698