| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 | 9 |
| 10 from page_sets import webgl_supported_shared_state | 10 from page_sets import webgl_supported_shared_state |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 if os.path.exists(skipped_file): | 60 if os.path.exists(skipped_file): |
| 61 for line in open(skipped_file, 'r').readlines(): | 61 for line in open(skipped_file, 'r').readlines(): |
| 62 line = line.strip() | 62 line = line.strip() |
| 63 if line and not line.startswith('#'): | 63 if line and not line.startswith('#'): |
| 64 skipped_path = os.path.join(os.path.dirname(skipped_file), line) | 64 skipped_path = os.path.join(os.path.dirname(skipped_file), line) |
| 65 skipped.append(skipped_path.replace('/', os.sep)) | 65 skipped.append(skipped_path.replace('/', os.sep)) |
| 66 _AddDir(path, tuple(skipped)) | 66 _AddDir(path, tuple(skipped)) |
| 67 else: | 67 else: |
| 68 _AddPage(path) | 68 _AddPage(path) |
| 69 ps = story.StorySet(base_dir=os.getcwd() + os.sep, | 69 ps = story.StorySet(base_dir=os.getcwd() + os.sep, |
| 70 serving_dirs=serving_dirs, | 70 serving_dirs=serving_dirs) |
| 71 verify_names=True) | |
| 72 | 71 |
| 73 all_urls = [p.rstrip('/') for p in page_urls] | 72 all_urls = [p.rstrip('/') for p in page_urls] |
| 74 common_prefix = os.path.dirname(os.path.commonprefix(all_urls)) | 73 common_prefix = os.path.dirname(os.path.commonprefix(all_urls)) |
| 75 for url in page_urls: | 74 for url in page_urls: |
| 76 name = url[len(common_prefix):].strip('/') | 75 name = url[len(common_prefix):].strip('/') |
| 77 ps.AddStory(page_module.Page( | 76 ps.AddStory(page_module.Page( |
| 78 url, ps, ps.base_dir, | 77 url, ps, ps.base_dir, |
| 79 shared_page_state_class=shared_page_state_class, | 78 shared_page_state_class=shared_page_state_class, |
| 80 name=name)) | 79 name=name)) |
| 81 return ps | 80 return ps |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 tag = 'shadow_dom' | 393 tag = 'shadow_dom' |
| 395 subdir = 'ShadowDOM' | 394 subdir = 'ShadowDOM' |
| 396 | 395 |
| 397 def GetExpectations(self): | 396 def GetExpectations(self): |
| 398 class StoryExpectations(story.expectations.StoryExpectations): | 397 class StoryExpectations(story.expectations.StoryExpectations): |
| 399 def SetExpectations(self): | 398 def SetExpectations(self): |
| 400 self.PermanentlyDisableBenchmark( | 399 self.PermanentlyDisableBenchmark( |
| 401 [story.expectations.ANDROID_NEXUS5X], 'crbug.com/702319') | 400 [story.expectations.ANDROID_NEXUS5X], 'crbug.com/702319') |
| 402 return StoryExpectations() | 401 return StoryExpectations() |
| 403 | 402 |
| OLD | NEW |