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
3 # found in the LICENSE file.
5 from telemetry
.page
import page
as page_module
6 from telemetry
import story
9 class SmokePage(page_module
.Page
):
11 def __init__(self
, url
, page_set
, name
=''):
12 super(SmokePage
, self
).__init
__(url
=url
, page_set
=page_set
, name
=name
)
15 class Page1(SmokePage
):
18 Why: Check chrome proxy response headers.
21 def __init__(self
, page_set
):
22 super(Page1
, self
).__init
__(
23 url
='http://check.googlezip.net/test.html',
25 name
='header validation')
28 class Page2(SmokePage
):
31 Why: Check data compression
34 def __init__(self
, page_set
):
35 super(Page2
, self
).__init
__(
36 url
='http://check.googlezip.net/static/',
38 name
='compression: image')
41 class Page3(SmokePage
):
47 def __init__(self
, page_set
):
48 super(Page3
, self
).__init
__(
49 url
='http://check.googlezip.net/block/',
54 class Page4(SmokePage
):
57 Why: Check data compression
60 def __init__(self
, page_set
):
61 super(Page4
, self
).__init
__(
62 url
='http://check.googlezip.net/static/',
64 name
='compression: javascript')
67 class Page5(SmokePage
):
70 Why: Check data compression
73 def __init__(self
, page_set
):
74 super(Page5
, self
).__init
__(
75 url
='http://check.googlezip.net/static/',
77 name
='compression: css')
81 class SmokeStorySet(story
.StorySet
):
83 """ Chrome proxy test sites """
86 super(SmokeStorySet
, self
).__init
__()
88 self
.AddStory(Page1(self
))
89 self
.AddStory(Page2(self
))
90 self
.AddStory(Page3(self
))
91 self
.AddStory(Page4(self
))
92 self
.AddStory(Page5(self
))