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

Side by Side Diff: tools/chrome_proxy/webdriver/html5.py

Issue 2656433003: Add HTML5 integration test (Closed)
Patch Set: Add ChromeProxy Via assertion Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 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 common
6 from common import TestDriver
7 from common import IntegrationTest
8
9
10 class HTML5(IntegrationTest):
11
12 # This test site has a div with id="pointsPanel" that is rendered if the
13 # browser is capable of using HTML5.
14 def testHTML5(self):
15 with TestDriver() as t:
16 t.AddChromeArg('--enable-spdy-proxy-auth')
17 t.LoadURL('http://html5test.com/')
18 t.WaitForJavascriptExpression(
19 'document.getElementsByClassName("pointsPanel")', 15)
20 for response in t.GetHTTPResponses():
21 # Site has a lot on it, filter out everything else and ignore the XHR
22 # form post.
23 if (response.url.startswith('http://html5test.com/') and
RyanSturm 2017/01/25 21:06:50 If there is a way to filter to the exact match ins
Robert Ogden 2017/01/25 23:05:30 Done.
24 not response.WasXHR()):
25 self.assertHasChromeProxyViaHeader(response)
26
27 if __name__ == '__main__':
28 IntegrationTest.RunAllTests()
OLDNEW
« 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