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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/smoke.py

Issue 820093002: Integration tests for desktop platforms and safebrowsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test names. Add @classmethod. Created 5 years, 10 months 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 | « tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.py ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module 6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class SmokePage(page_module.Page): 9 class SmokePage(page_module.Page):
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 Why: Check data compression 72 Why: Check data compression
73 """ 73 """
74 74
75 def __init__(self, page_set): 75 def __init__(self, page_set):
76 super(Page5, self).__init__( 76 super(Page5, self).__init__(
77 url='http://aws1.mdw.la/static/', 77 url='http://aws1.mdw.la/static/',
78 page_set=page_set, 78 page_set=page_set,
79 name='compression: css') 79 name='compression: css')
80 80
81 81
82 class Page6(SmokePage):
83
84 """
85 Why: Expect 'malware ahead' page. Use a short navigation timeout because no
86 response will be received.
87 """
88
89 def __init__(self, page_set):
90 super(Page6, self).__init__(
91 url='http://www.ianfette.org/',
92 page_set=page_set,
93 name='safebrowsing')
94
95 def RunNavigateSteps(self, action_runner):
96 action_runner.NavigateToPage(self, timeout_in_seconds=5)
97
98 82
99 class SmokePageSet(page_set_module.PageSet): 83 class SmokePageSet(page_set_module.PageSet):
100 84
101 """ Chrome proxy test sites """ 85 """ Chrome proxy test sites """
102 86
103 def __init__(self): 87 def __init__(self):
104 super(SmokePageSet, self).__init__( 88 super(SmokePageSet, self).__init__(
105 archive_data_file='../data/chrome_proxy_smoke.json') 89 archive_data_file='../data/chrome_proxy_smoke.json')
106 90
107 self.AddUserStory(Page1(self)) 91 self.AddUserStory(Page1(self))
108 self.AddUserStory(Page2(self)) 92 self.AddUserStory(Page2(self))
109 self.AddUserStory(Page3(self)) 93 self.AddUserStory(Page3(self))
110 self.AddUserStory(Page4(self)) 94 self.AddUserStory(Page4(self))
111 self.AddUserStory(Page5(self)) 95 self.AddUserStory(Page5(self))
112 self.AddUserStory(Page6(self))
OLDNEW
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698