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

Side by Side Diff: LayoutTests/fast/cookies/cookies-disabled-in-data-url.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <body> 5 <body>
6 <script src="../js/resources/js-test-pre.js"></script> 6 <script src="../js/resources/js-test-pre.js"></script>
7 <script> 7 <script>
8 description("This tests that cookie access throws exceptions with reason able messages inside 'data:' URLs."); 8 description("This tests that cookie access throws exceptions with reason able messages inside 'data:' URLs.");
9 9
10 window.jsTestIsAsync = true; 10 window.jsTestIsAsync = true;
11 11
12 var exceptionMessage; 12 var exceptionMessage;
13 window.addEventListener('message', function (e) { 13 window.addEventListener('message', function (e) {
14 exceptionMessage = e.data; 14 exceptionMessage = e.data;
15 shouldBeEqualToString('exceptionMessage', "Access to 'cookie' is den ied for this document. Cookies are disabled inside 'data:' URLs."); 15 shouldBeEqualToString('exceptionMessage', "Access to 'cookie' is den ied for this document. Cookies are disabled inside 'data:' URLs.");
16 finishJSTest(); 16 finishJSTest();
17 }); 17 });
18 18
19 </script> 19 </script>
20 <iframe src="data:text/html,<script>try { document.cookie; } catch(e) { wind ow.top.postMessage(e.message, '*'); };</script>"></iframe> 20 <iframe src="data:text/html,<script>try { document.cookie; } catch(e) { wind ow.top.postMessage(e.message, '*'); };</script>"></iframe>
21 <script src="../js/resources/js-test-post.js"></script>
22 </body> 21 </body>
23 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/winding-enumeration.html ('k') | LayoutTests/fast/cookies/local-file-can-set-cookies.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698