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

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

Issue 1620393002: Fix hyphen disallowed in Suborigin names (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase on ToT Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Valid suborigin names</title> 4 <title>Valid suborigin names</title>
5 </head> 5 </head>
6 6
7 <script> 7 <script>
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 } 11 }
12 12
13 function finish() { 13 function finish() {
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.notifyDone(); 15 testRunner.notifyDone();
16 } 16 }
17 17
18 var test_suborigin_names = [ 18 var test_suborigin_names = [
19 "foobar", 19 "foobar",
20 "foob4r", 20 "foob4r",
21 "Foobar", 21 "Foobar",
22 "FOOBAR", 22 "FOOBAR",
23 "42", 23 "42",
24 "foo-bar",
25 "-foobar",
26 "foobar-"
24 ]; 27 ];
25 28
26 var iframe; 29 var iframe;
27 var i = 0; 30 var i = 0;
28 function next() { 31 function next() {
29 if (i >= test_suborigin_names.length) 32 if (i >= test_suborigin_names.length)
30 finish(); 33 finish();
31 document.getElementById('iframe').src = "resources/reach-into-iframe.php?chi ldsuborigin=" + test_suborigin_names[i]; 34 document.getElementById('iframe').src = "resources/reach-into-iframe.php?chi ldsuborigin=" + test_suborigin_names[i];
32 i++; 35 i++;
33 } 36 }
34 37
35 window.onmessage = function(event) { 38 window.onmessage = function(event) {
36 alert(event.data); 39 alert(event.data);
37 next(); 40 next();
38 }; 41 };
39 42
40 window.onload = function() { 43 window.onload = function() {
41 next(); 44 next();
42 }; 45 };
43 </script> 46 </script>
44 <iframe id="iframe"></iframe> 47 <iframe id="iframe"></iframe>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-valid-names-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698