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

Unified Diff: tools/chrome_proxy/webdriver/simple_smoke.py

Issue 2624233002: Rename incognito and simple_smoke to be better named and organized. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/chrome_proxy/webdriver/incognito.py ('k') | tools/chrome_proxy/webdriver/smoke.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 31d37bfab065a5615dfe00a18e2cd19b6502934b..0000000000000000000000000000000000000000
--- a/tools/chrome_proxy/webdriver/simple_smoke.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# 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 sys
-import time
-
-import common
-from common import TestDriver
-from common import IntegrationTest
-
-
-class SimpleSmoke(IntegrationTest):
-
- # Simple example integration test.
- def testCheckPageWithProxy(self):
- with TestDriver() as t:
- t.AddChromeArg('--enable-spdy-proxy-auth')
- t.LoadURL('http://check.googlezip.net/test.html')
- print 'Document Title: ', t.ExecuteJavascriptStatement('document.title',
- timeout=1)
- responses = t.GetHTTPResponses()
- for response in responses:
- print "URL: %s, ViaHeader: %s, XHR: %s" % (response.url,
- response.ResponseHasViaHeader(), response.WasXHR())
- self.assertHasChromeProxyViaHeader(response)
-
- # Simple example integration test.
- def testCheckPageWithoutProxy(self):
- with TestDriver() as t:
- t.AddChromeArg('--enable-spdy-proxy-auth')
- t.LoadURL('https://check.googlezip.net/test.html')
- print 'Document Title: ', t.ExecuteJavascriptStatement('document.title',
- timeout=1)
- responses = t.GetHTTPResponses()
- for response in responses:
- print "URL: %s, ViaHeader: %s, XHR: %s" % (response.url,
- response.ResponseHasViaHeader(), response.WasXHR())
- self.assertNotHasChromeProxyViaHeader(response)
-
- # Show how to get a histogram.
- def testPingbackHistogram(self):
- with TestDriver() as t:
- t.AddChromeArg('--enable-spdy-proxy-auth')
- t.LoadURL('http://check.googlezip.net/test.html')
- t.LoadURL('http://check.googlezip.net/test.html')
- print t.GetHistogram('DataReductionProxy.Pingback.Attempted')
-
- # Show how to use WaitForJavascriptExpression
- def testHTML5(self):
- with TestDriver() as t:
- t.AddChromeArg('--enable-spdy-proxy-auth')
- t.LoadURL('http://html5test.com/')
- t.WaitForJavascriptExpression(
- 'document.getElementsByClassName("pointsPanel")', 15)
-
-if __name__ == '__main__':
- IntegrationTest.RunAllTests()
« no previous file with comments | « tools/chrome_proxy/webdriver/incognito.py ('k') | tools/chrome_proxy/webdriver/smoke.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698