OLD | NEW |
1 // | 1 // |
2 // This script provides some mechanics for testing History | 2 // This script provides some mechanics for testing History |
3 // | 3 // |
4 function onSuccess(name, id) | 4 function onSuccess(name, id) |
5 { | 5 { |
6 setTimeout(onFinished, 0, name, id, "OK"); | 6 setTimeout(onFinished, 0, name, id, "OK"); |
7 } | 7 } |
8 | 8 |
9 function onFailure(name, id, status) | 9 function onFailure(name, id, status) |
10 { | 10 { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 var date = new Date(); | 46 var date = new Date(); |
47 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); | 47 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); |
48 expires = "; expires=" + date.toGMTString(); | 48 expires = "; expires=" + date.toGMTString(); |
49 } | 49 } |
50 document.cookie = name+"="+value+expires+"; path=/"; | 50 document.cookie = name+"="+value+expires+"; path=/"; |
51 } | 51 } |
52 | 52 |
53 function eraseCookie(name) { | 53 function eraseCookie(name) { |
54 createCookie(name, "", -1); | 54 createCookie(name, "", -1); |
55 } | 55 } |
| 56 |
| 57 var navigate_backward_cookie = "Navigate_Backward_Cookie"; |
| 58 var navigate_forward_cookie = "Navigate_Forward_Cookie"; |
OLD | NEW |