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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/page_set.py

Issue 11314012: Add spaceport benchmark to Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug Created 8 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 side-by-side diff with in-line comments
Download patch
Index: tools/chrome_remote_control/chrome_remote_control/page_set.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/page_set.py b/tools/chrome_remote_control/chrome_remote_control/page_set.py
index 33b2eaf39fc7257190fecae5b2f4c8faf72493dd..ea431753ac1418050946d15bc61cc494cd42d9f0 100644
--- a/tools/chrome_remote_control/chrome_remote_control/page_set.py
+++ b/tools/chrome_remote_control/chrome_remote_control/page_set.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import json
import os
+import urlparse
from chrome_remote_control import page as page_module
@@ -31,10 +32,18 @@ class PageSet(object):
page_set = cls(file_path, data)
for page_attributes in data['pages']:
url = page_attributes.pop('url')
- page = page_module.Page(url, page_attributes)
+ page = page_module.Page(url, attributes=page_attributes,
+ base_dir=file_path)
page_set.pages.append(page)
return page_set
+ def ContainsOnlyFileURLs(self):
+ for page in self.pages:
+ parsed_url = urlparse.urlparse(page.url)
+ if parsed_url.scheme != 'file':
+ return False
+ return True
+
def __iter__(self):
return self.pages.__iter__()
« no previous file with comments | « tools/chrome_remote_control/chrome_remote_control/page_runner.py ('k') | tools/perf/page_sets/spaceport.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698