Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names.html

Issue 2370843003: Suborigin LayoutTest formatting and refactoring (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698