Commit b02b3dbf authored by aberent@chromium.org's avatar aberent@chromium.org

Fix errors in start with URL tests

1. Fix error in check for runnable pages in
session_restore_with_url
2. Add page sets to google storage.

Also had to change the page set, because when I tried to use the
latest version of news.bbc.co.uk on mobile it was asking if I
wanted to install the mobile app.

BUG=

Review URL: https://codereview.chromium.org/132593003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244014 0039d316-1c4b-4281-b951-d872f2087c98
parent 8172a9d8
......@@ -12,4 +12,4 @@ class SessionRestoreWithUrl(session_restore.SessionRestore):
def CanRunForPage(self, page):
# Run for every page in the page set that has a startup url.
return page.hasattr('startup_url')
return page.navigate_steps[0]['action'] == 'set_startup_url'
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"startup_pages_004.wpr": [
"http://news.bbc.co.uk",
"startup_pages_000.wpr": [
"http://bbc.co.uk",
"http://kapook.com"
]
}
......
30d4b515e6f618e69e91c8b3c35c28fce585fe9d
\ No newline at end of file
......@@ -15,10 +15,10 @@
]
},
{
"url": "http://news.bbc.co.uk",
"url": "http://bbc.co.uk",
"why": "typical page",
"navigate_steps" : [
{"action": "set_startup_url", "startup_url": "http://news.bbc.co.uk"},
{"action": "set_startup_url", "startup_url": "http://bbc.co.uk"},
{"action": "wait", "seconds": 10 }
]
},
......
......@@ -9,7 +9,7 @@
"archive_data_file": "data/startup_pages.json",
"pages": [
{
"url": "http://news.bbc.co.uk",
"url": "http://bbc.co.uk",
"why": "typical page"
},
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment