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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 5
6 function initialize_CookieTests() 6 function initialize_CookieTests()
7 { 7 {
8 8
9 InspectorTest.dumpCookie = function(cookie) 9 InspectorTest.dumpCookie = function(cookie)
10 { 10 {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 InspectorTest.dumpCookies = function(cookies) 25 InspectorTest.dumpCookies = function(cookies)
26 { 26 {
27 for (var i = 0; i < cookies.length; ++i) 27 for (var i = 0; i < cookies.length; ++i)
28 InspectorTest.dumpCookie(cookies[i]); 28 InspectorTest.dumpCookie(cookies[i]);
29 } 29 }
30 30
31 InspectorTest.parseAndDumpCookie = function(header) 31 InspectorTest.parseAndDumpCookie = function(header)
32 { 32 {
33 var parser = new WebInspector.CookieParser(); 33 var parser = new SDK.CookieParser();
34 InspectorTest.addResult("source: " + header); 34 InspectorTest.addResult("source: " + header);
35 InspectorTest.dumpCookies(parser.parseCookie(header)); 35 InspectorTest.dumpCookies(parser.parseCookie(header));
36 } 36 }
37 37
38 InspectorTest.parseAndDumpSetCookie = function(header) 38 InspectorTest.parseAndDumpSetCookie = function(header)
39 { 39 {
40 var parser = new WebInspector.CookieParser(); 40 var parser = new SDK.CookieParser();
41 InspectorTest.addResult("source: " + header); 41 InspectorTest.addResult("source: " + header);
42 InspectorTest.dumpCookies(parser.parseSetCookie(header)); 42 InspectorTest.dumpCookies(parser.parseSetCookie(header));
43 } 43 }
44 44
45 } 45 }
46 46
47 var test = function() 47 var test = function()
48 { 48 {
49 InspectorTest.parseAndDumpCookie("cookie=value"); 49 InspectorTest.parseAndDumpCookie("cookie=value");
50 InspectorTest.parseAndDumpCookie("$version=1; a=b,c = d, e=f"); 50 InspectorTest.parseAndDumpCookie("$version=1; a=b,c = d, e=f");
(...skipping 16 matching lines...) Expand all
67 InspectorTest.parseAndDumpSetCookie("cooke1=; Path=/; Domain=.example.com;") ; 67 InspectorTest.parseAndDumpSetCookie("cooke1=; Path=/; Domain=.example.com;") ;
68 InspectorTest.completeTest(); 68 InspectorTest.completeTest();
69 } 69 }
70 70
71 </script> 71 </script>
72 </head> 72 </head>
73 <body onload="runTest()"> 73 <body onload="runTest()">
74 <p>Tests inspector cookie parser</p> 74 <p>Tests inspector cookie parser</p>
75 </body> 75 </body>
76 </html> 76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698