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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 27278002: Add an Error class for ServiceWorkers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix windows Created 7 years, 1 month 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
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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 '--enable-composited-scrolling-for-frames', '--ena ble-gesture-tap-highlight', '--enable-pinch', 1547 '--enable-composited-scrolling-for-frames', '--ena ble-gesture-tap-highlight', '--enable-pinch',
1548 '--enable-overlay-fullscreen-video', '--enable-ove rlay-scrollbars', '--enable-overscroll-notifications', 1548 '--enable-overlay-fullscreen-video', '--enable-ove rlay-scrollbars', '--enable-overscroll-notifications',
1549 '--enable-fixed-layout', '--enable-viewport', '--d isable-canvas-aa', 1549 '--enable-fixed-layout', '--enable-viewport', '--d isable-canvas-aa',
1550 '--disable-composited-antialiasing']), 1550 '--disable-composited-antialiasing']),
1551 VirtualTestSuite('implsidepainting', 1551 VirtualTestSuite('implsidepainting',
1552 'inspector/timeline', 1552 'inspector/timeline',
1553 ['--enable-threaded-compositing', '--enable-impl-si de-painting', '--force-compositing-mode']), 1553 ['--enable-threaded-compositing', '--enable-impl-si de-painting', '--force-compositing-mode']),
1554 VirtualTestSuite('fasttextautosizing', 1554 VirtualTestSuite('fasttextautosizing',
1555 'fast/text-autosizing', 1555 'fast/text-autosizing',
1556 ['--enable-fast-text-autosizing']), 1556 ['--enable-fast-text-autosizing']),
1557 VirtualTestSuite('serviceworker',
1558 'http/tests/serviceworker',
1559 ['--enable-service-worker']),
1557 ] 1560 ]
1558 1561
1559 @memoized 1562 @memoized
1560 def populated_virtual_test_suites(self): 1563 def populated_virtual_test_suites(self):
1561 suites = self.virtual_test_suites() 1564 suites = self.virtual_test_suites()
1562 1565
1563 # Sanity-check the suites to make sure they don't point to other suites. 1566 # Sanity-check the suites to make sure they don't point to other suites.
1564 suite_dirs = [suite.name for suite in suites] 1567 suite_dirs = [suite.name for suite in suites]
1565 for suite in suites: 1568 for suite in suites:
1566 assert suite.base not in suite_dirs 1569 assert suite.base not in suite_dirs
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 if name.find('/') != -1: 1717 if name.find('/') != -1:
1715 _log.error("Virtual test suites names cannot contain /'s: %s" % name) 1718 _log.error("Virtual test suites names cannot contain /'s: %s" % name)
1716 return 1719 return
1717 self.name = 'virtual/' + name + '/' + base 1720 self.name = 'virtual/' + name + '/' + base
1718 self.base = base 1721 self.base = base
1719 self.args = args 1722 self.args = args
1720 self.tests = tests or set() 1723 self.tests = tests or set()
1721 1724
1722 def __repr__(self): 1725 def __repr__(self):
1723 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self. args) 1726 return "VirtualTestSuite('%s', '%s', %s)" % (self.name, self.base, self. args)
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.cpp ('k') | public/platform/WebServiceWorkerError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698