Chromium Code Reviews| OLD | NEW |
|---|---|
| (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() | |
| OLD | NEW |