| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 InspectorTest.parseAndDumpCookie("cooke1 = value; $Path=/; $Domain=.example.
com ; Cookie2 = value2; $Path = /foo; $DOMAIN = foo.example.com;"); | 54 InspectorTest.parseAndDumpCookie("cooke1 = value; $Path=/; $Domain=.example.
com ; Cookie2 = value2; $Path = /foo; $DOMAIN = foo.example.com;"); |
| 55 InspectorTest.parseAndDumpCookie("cooke1 = value; $Path=/; $Domain=.example.
com\nCookie2 = value2; $Path = /foo; $DOMAIN = foo.example.com; "); | 55 InspectorTest.parseAndDumpCookie("cooke1 = value; $Path=/; $Domain=.example.
com\nCookie2 = value2; $Path = /foo; $DOMAIN = foo.example.com; "); |
| 56 InspectorTest.parseAndDumpCookie("$version =1; cooke1 = value; $Path=/; $Dom
ain =.example.com; \n Cookie2 = value2; $Path = /foo; $DOMAIN = foo.example.c
om;"); | 56 InspectorTest.parseAndDumpCookie("$version =1; cooke1 = value; $Path=/; $Dom
ain =.example.com; \n Cookie2 = value2; $Path = /foo; $DOMAIN = foo.example.c
om;"); |
| 57 | 57 |
| 58 InspectorTest.parseAndDumpSetCookie("cookie=value"); | 58 InspectorTest.parseAndDumpSetCookie("cookie=value"); |
| 59 InspectorTest.parseAndDumpSetCookie("a=b\n c=d\n f"); | 59 InspectorTest.parseAndDumpSetCookie("a=b\n c=d\n f"); |
| 60 InspectorTest.parseAndDumpSetCookie("cooke1 = value; Path=/; Domain=.example
.com;"); | 60 InspectorTest.parseAndDumpSetCookie("cooke1 = value; Path=/; Domain=.example
.com;"); |
| 61 InspectorTest.parseAndDumpSetCookie("cooke1 = value; Path=/; Domain= .examp
le.com \nCookie2 = value2; Path = /foo; Domain = foo.example.com"); | 61 InspectorTest.parseAndDumpSetCookie("cooke1 = value; Path=/; Domain= .examp
le.com \nCookie2 = value2; Path = /foo; Domain = foo.example.com"); |
| 62 InspectorTest.parseAndDumpSetCookie("cooke1 = value; expires = Mon, Oct 18 2
010 17:00 GMT+0000; Domain =.example.com\nCookie2 = value2; Path = /foo; DOMAI
N = foo.example.com; HttpOnly; Secure; Discard;"); | 62 InspectorTest.parseAndDumpSetCookie("cooke1 = value; expires = Mon, Oct 18 2
010 17:00 GMT+0000; Domain =.example.com\nCookie2 = value2; Path = /foo; DOMAI
N = foo.example.com; HttpOnly; Secure; Discard;"); |
| 63 InspectorTest.parseAndDumpSetCookie("cooke1 = value; max-age= 1440; Domain
=.example.com\n Cookie2 = value2; Path = /foo; DOMAIN = foo.example.com; HttpOn
ly; Secure; Discard;"); | 63 InspectorTest.parseAndDumpSetCookie("cooke1 = value; max-age= 1440; Domain
=.example.com\n Cookie2 = value2; Path = /foo; DOMAIN = foo.example.com; HttpOn
ly; Secure; Discard;"); |
| 64 InspectorTest.parseAndDumpSetCookie("cooke1 = value; HttpOnly; Secure; SameS
ite;"); | 64 InspectorTest.parseAndDumpSetCookie("cooke1 = value; HttpOnly; Secure; SameS
ite=Lax;"); |
| 65 InspectorTest.parseAndDumpSetCookie("cooke1 = value; HttpOnly; Secure; SameS
ite=Secure;"); |
| 65 InspectorTest.parseAndDumpSetCookie("cooke1; Path=/; Domain=.example.com;"); | 66 InspectorTest.parseAndDumpSetCookie("cooke1; Path=/; Domain=.example.com;"); |
| 66 InspectorTest.parseAndDumpSetCookie("cooke1=; Path=/; Domain=.example.com;")
; | 67 InspectorTest.parseAndDumpSetCookie("cooke1=; Path=/; Domain=.example.com;")
; |
| 67 InspectorTest.completeTest(); | 68 InspectorTest.completeTest(); |
| 68 } | 69 } |
| 69 | 70 |
| 70 </script> | 71 </script> |
| 71 </head> | 72 </head> |
| 72 <body onload="runTest()"> | 73 <body onload="runTest()"> |
| 73 <p>Tests inspector cookie parser</p> | 74 <p>Tests inspector cookie parser</p> |
| 74 </body> | 75 </body> |
| 75 </html> | 76 </html> |
| OLD | NEW |