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

Unified Diff: chrome/test/chromedriver/test/run_py_tests.py

Issue 1002343003: [chromedriver] Disable broken/flaky network emulation tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/test/run_py_tests.py
diff --git a/chrome/test/chromedriver/test/run_py_tests.py b/chrome/test/chromedriver/test/run_py_tests.py
index 556227a45c6cefaa585b2338a70881acba94f4c1..6a8d32dd514e924e07004868d7f0af42abcd212e 100755
--- a/chrome/test/chromedriver/test/run_py_tests.py
+++ b/chrome/test/chromedriver/test/run_py_tests.py
@@ -156,6 +156,8 @@ _ANDROID_NEGATIVE_FILTER['chromedriver_webview_shell'] = (
'ChromeDriverTest.testChromeDriverSendLargeData',
'PerformanceLoggerTest.testPerformanceLogger',
'ChromeDriverTest.testShadowDom*',
+ # WebView doesn't support emulating network conditions.
+ 'ChromeDriverTest.testEmulateNetworkConditionsOffline',
]
)
@@ -805,31 +807,6 @@ class ChromeDriverTest(ChromeDriverBaseTest):
self._driver.Load(self.GetHttpUrlForFile('/chromedriver/page_test.html'))
self.assertIn('is not available', self._driver.GetTitle())
- def testEmulateNetworkConditionsSpeed(self):
- # Warm up the browser.
- self._http_server.SetDataForPath(
- '/', "<html><body>blank</body></html>")
- self._driver.Load(self._http_server.GetUrl() + '/')
-
- # DSL: 2Mbps throughput, 5ms RTT
- latency = 5
- throughput_kbps = 2048
- throughput = throughput_kbps * 1024
- self._driver.SetNetworkConditions(latency, throughput, throughput)
-
- _32_bytes = " 0 1 2 3 4 5 6 7 8 9 A B C D E F"
- _1_megabyte = _32_bytes * 32768
- self._http_server.SetDataForPath(
- '/1MB',
- "<html><body>%s</body></html>" % _1_megabyte)
- start = time.time()
- self._driver.Load(self._http_server.GetUrl() + '/1MB')
- finish = time.time()
- duration = finish - start
- actual_throughput_kbps = 1024 / duration
- self.assertLessEqual(actual_throughput_kbps, throughput_kbps * 1.5)
- self.assertGreaterEqual(actual_throughput_kbps, throughput_kbps / 1.5)
-
def testShadowDomFindElementWithSlashDeep(self):
"""Checks that chromedriver can find elements in a shadow DOM using /deep/
css selectors."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698