| 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 checked_main_page = False |
| 21 for response in t.GetHTTPResponses(): |
| 22 # Site has a lot on it, just check the main page. |
| 23 if (response.url == 'http://html5test.com/' |
| 24 or response.url == 'http://html5test.com/index.html'): |
| 25 self.assertHasChromeProxyViaHeader(response) |
| 26 checked_main_page = True |
| 27 if not checked_main_page: |
| 28 self.fail("Did not check any page!") |
| 29 if __name__ == '__main__': |
| 30 IntegrationTest.RunAllTests() |
| OLD | NEW |