Chromium Code Reviews| Index: tools/chrome_proxy/webdriver/simple_smoke.py |
| diff --git a/tools/chrome_proxy/webdriver/simple_smoke.py b/tools/chrome_proxy/webdriver/simple_smoke.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40c619fb0d7a5696d5a46134b269ee41a6fd4cfe |
| --- /dev/null |
| +++ b/tools/chrome_proxy/webdriver/simple_smoke.py |
| @@ -0,0 +1,23 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import time |
| + |
| +from common import IntegrationTest |
| +from common import TestDriver |
| + |
| + |
| +class SimpleSmoke(IntegrationTest): |
| + |
| + def TestCheckPageWithProxy(self): |
| + with TestDriver() as t: |
| + t.AddChromeArgs(['--enable-spdy-proxy-auth']) |
| + t.SetURL('http://check.googlezip.net/test.html') |
| + t.LoadPage() |
| + print 'Document Title: ', t.ExecuteJavascript('document.title') |
| + 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
|
| + |
| +if __name__ == '__main__': |
| + test = SimpleSmoke() |
| + test.RunAllTests() |