OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 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. | |
4 | |
5 import time | |
6 | |
7 from common import IntegrationTest | |
8 from common import TestDriver | |
9 | |
10 | |
11 class SimpleSmoke(IntegrationTest): | |
12 | |
13 def TestCheckPageWithProxy(self): | |
14 with TestDriver() as t: | |
15 t.AddChromeArgs(['--enable-spdy-proxy-auth']) | |
16 t.SetURL('http://check.googlezip.net/test.html') | |
17 t.LoadPage() | |
18 print 'Document Title: ', t.ExecuteJavascript('document.title') | |
19 time.sleep(5) | |
RyanSturm
2016/11/29 19:31:46
Why is the sleep(5) necessary?
Robert Ogden
2016/11/29 22:39:36
Demonstration purposes only. Real tests won't have
| |
20 | |
21 if __name__ == '__main__': | |
22 test = SimpleSmoke() | |
23 test.RunAllTests() | |
OLD | NEW |