Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-invalid-names.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-invalid-names.html b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-invalid-names.html |
index da3c35cbe6ac1322ae089875463acd21f03ecff0..70c5a274fcd10707ac1b9925804fe870ded6eaf6 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-invalid-names.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-invalid-names.html |
@@ -1,48 +1,51 @@ |
<!DOCTYPE html> |
<html> |
<head> |
- <title>Invalid suborigin names</title> |
+<meta charset="utf-8"> |
+<title>Invalid 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'", |
- "'foobar", |
- "foobar'", |
- "foo'bar", |
- "foob@r", |
- "foo bar", |
- "Foobar", |
- "FOOBAR", |
- ]; |
+ '', |
+ '\'foobar\'', |
+ '\'foobar', |
+ 'foobar\'', |
+ 'foo\'bar', |
+ 'foob@r', |
+ '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(); |
+window.onload = function() { |
+ next(); |
}; |
</script> |
<iframe id="iframe"></iframe> |