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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cookies/js-set-null.html

Issue 1458753003: Drop [TreatNullAs=NullString] for Document.cookie (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cookies/js-set-null-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 <link rel="stylesheet" href="resources/cookies-test-style.css"> 4 <link rel="stylesheet" href="resources/cookies-test-style.css">
5 <script src="resources/cookies-test-pre.js"></script> 5 <script src="resources/cookies-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
11 description( 11 description("Setting document.cookie to null should set a cookie named 'null'");
12 'Test that a cookie set using JavaScript can be correctly read by HTTP server'
13 );
14 12
15 clearAllCookies(); 13 clearAllCookies();
16 14
17 document.cookie = "name=value;Max-Age=1000"; 15 document.cookie = null;
18 16 shouldBe("document.cookie", "'null'");
19 debug('checking that the cookie set in javascript can be read by HTTP server'); 17 testCookies("null");
20 testCookies("name=value");
21 18
22 clearCookies(); 19 clearCookies();
23 20
24 successfullyParsed = true; 21 successfullyParsed = true;
25 </script> 22 </script>
26 <script src="resources/cookies-test-post.js"></script> 23 <script src="resources/cookies-test-post.js"></script>
27 </body> 24 </body>
28 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cookies/js-set-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698