| Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html
|
| index f784e2a199b8ca1b01503690b6a2da07409094c7..6572af7a0524898822fae4afb4c757e22a0dcbac 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html
|
| @@ -1,45 +1,47 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| - <title>Valid suborigin names</title>
|
| +<meta charset="utf-8">
|
| +<title>Valid suborigin names</title>
|
| </head>
|
|
|
| <script>
|
| if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| }
|
|
|
| function finish() {
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| }
|
|
|
| var test_suborigin_names = [
|
| - "foobar",
|
| - "foob4r",
|
| - "42",
|
| - "foo-bar",
|
| - "-foobar",
|
| - "foobar-"
|
| + 'foobar',
|
| + 'foob4r',
|
| + '42',
|
| + 'foo-bar',
|
| + '-foobar',
|
| + 'foobar-'
|
| ];
|
|
|
| var iframe;
|
| var i = 0;
|
| function next() {
|
| - if (i >= test_suborigin_names.length)
|
| - finish();
|
| - document.getElementById('iframe').src = "resources/reach-into-iframe.php?childsuborigin=" + test_suborigin_names[i];
|
| - i++;
|
| + if (i >= test_suborigin_names.length)
|
| + finish();
|
| + document.getElementById('iframe').src =
|
| + 'resources/reach-into-iframe.php?childsuborigin=' + test_suborigin_names[i];
|
| + i++;
|
| }
|
|
|
| window.onmessage = function(event) {
|
| - alert(event.data);
|
| - next();
|
| + alert(event.data);
|
| + next();
|
| };
|
|
|
| window.onload = function() {
|
| - next();
|
| + next();
|
| };
|
| </script>
|
| <iframe id="iframe"></iframe>
|
|
|