iframeio_different_base_test.html 761 B

12345678910111213141516171819202122232425262728
  1. <html>
  2. <!--
  3. Copyright 2011 The Closure Library Authors. All Rights Reserved.
  4. Use of this source code is governed by the Apache License, Version 2.0.
  5. See the COPYING file for details.
  6. -->
  7. <head>
  8. <meta charset="UTF-8" />
  9. <title>
  10. Closure Unit Tests - goog.net.IframeIo (with different base URL)
  11. </title>
  12. <script>
  13. // We use a different base to reproduce the conditions of crbug.com/66987
  14. var href = window.location.href;
  15. var newHref = href.replace(/net.*/, '');
  16. document.write('<base href="' + newHref + '">');
  17. var baseScript = 'base.js';
  18. document.write('<script src="' + baseScript + '"><\/script>');
  19. </script>
  20. <script>
  21. goog.require('goog.net.iframeIoDifferentBaseTest');
  22. </script>
  23. </head>
  24. <body>
  25. </body>
  26. </html>