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

Side by Side Diff: webkit/data/layout_tests/chrome/fast/dom/xss-DENIED-javascript-variations.html

Issue 504079: Remove tests that have been upstreamed:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add test_expectations.txt mods Created 11 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/dom/xss-DENIED-javascript-variations-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
(Empty)
1 <html>
2 <head>
3 <script>
4 if (window.layoutTestController) {
5 layoutTestController.dumpAsText();
6 layoutTestController.dumpChildFramesAsText();
7 }
8
9 function runTest() {
10 var a = window.frames[0];
11 // java\0script is invalid url.
12
13 a.location.href = " javascript:document.write('FAIL')";
14 a.location.href = "javascript\t:document.write('FAIL')";
15 a.location.href = "javascript\1:document.write('FAIL')";
16 a.location.href = "javascript:document.write('FAIL')";
17
18
19 a.location.replace(" javascript:document.write('FAIL')");
20 a.location.replace("javascript\t:document.write('FAIL')");
21 a.location.replace("javascript\1:document.write('FAIL')");
22 a.location.replace("javascript:document.write('FAIL')");
23
24 a.location = " javascript:document.write('FAIL')";
25 a.location = "javascript\t:document.write('FAIL')";
26 a.location = "javascript\1:document.write('FAIL')";
27 a.location = "javascript:document.write('FAIL')";
28 }
29 </script>
30
31 </head>
32 <body onload="runTest()">
33 <br>
34 <iframe id = 'DUPA' src="data:text/html,<p>Inner text should not be replaced.<p> "></iframe>
35
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/dom/xss-DENIED-javascript-variations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698