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

Side by Side Diff: sky/tools/webkitpy/layout_tests/port/base.py

Issue 804693002: Add fake implementation of Surfaces service for sky tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/tests/resources/mocha.sky ('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 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 return True 223 return True
224 224
225 def additional_drt_flag(self): 225 def additional_drt_flag(self):
226 driver_name = self.driver_name() 226 driver_name = self.driver_name()
227 if driver_name == self.CONTENT_SHELL_NAME: 227 if driver_name == self.CONTENT_SHELL_NAME:
228 return ['--dump-render-tree'] 228 return ['--dump-render-tree']
229 if driver_name == self.MOJO_SHELL_NAME: 229 if driver_name == self.MOJO_SHELL_NAME:
230 return [ 230 return [
231 '--args-for=mojo:native_viewport_service --use-headless-config - -use-osmesa', 231 '--args-for=mojo:native_viewport_service --use-headless-config - -use-osmesa',
232 '--content-handlers=text/sky,mojo:sky_viewer', 232 '--content-handlers=text/sky,mojo:sky_viewer',
233 '--url-mappings=mojo:window_manager=mojo:sky_tester', 233 '--url-mappings=mojo:window_manager=mojo:sky_tester,mojo:surface s_service=mojo:fake_surfaces_service',
234 'mojo:window_manager', 234 'mojo:window_manager',
235 ] 235 ]
236 return [] 236 return []
237 237
238 def supports_per_test_timeout(self): 238 def supports_per_test_timeout(self):
239 return False 239 return False
240 240
241 def default_pixel_tests(self): 241 def default_pixel_tests(self):
242 return False 242 return False
243 243
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 1772
1773 class PhysicalTestSuite(object): 1773 class PhysicalTestSuite(object):
1774 def __init__(self, base, args): 1774 def __init__(self, base, args):
1775 self.name = base 1775 self.name = base
1776 self.base = base 1776 self.base = base
1777 self.args = args 1777 self.args = args
1778 self.tests = set() 1778 self.tests = set()
1779 1779
1780 def __repr__(self): 1780 def __repr__(self):
1781 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args) 1781 return "PhysicalTestSuite('%s', '%s', %s)" % (self.name, self.base, self .args)
OLDNEW
« no previous file with comments | « sky/tests/resources/mocha.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698