OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Test server for generating nested iframes with different sites. | 5 """Test server for generating nested iframes with different sites. |
6 | 6 |
7 Very simple python server for creating a bunch of iframes. The page generation | 7 Very simple python server for creating a bunch of iframes. The page generation |
8 is randomized based on query parameters. See the __init__ function of the | 8 is randomized based on query parameters. See the __init__ function of the |
9 Params class for a description of the parameters. | 9 Params class for a description of the parameters. |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 start_response('200 OK', [('Content-Type', 'text/html')]) | 215 start_response('200 OK', [('Content-Type', 'text/html')]) |
216 if environ['PATH_INFO'] == '/favicon.ico': | 216 if environ['PATH_INFO'] == '/favicon.ico': |
217 yield '' | 217 yield '' |
218 else: | 218 else: |
219 yield create_html(environ) | 219 yield create_html(environ) |
220 | 220 |
221 | 221 |
222 server = pywsgi.WSGIServer(('', 8090), application) | 222 server = pywsgi.WSGIServer(('', 8090), application) |
223 | 223 |
224 server.serve_forever() | 224 server.serve_forever() |
OLD | NEW |