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

Side by Side Diff: third_party/webdriver/test_data/sessionCookieDest.html

Issue 424363004: Update third_party/webdriver/pylib to r18456 and delete test_data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "python" -> "pylib" Created 6 years, 4 months 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
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o rg/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>Session cookie destination</title>
6 <script type="text/javascript">
7 //Get cookie routine by Shelley Powers
8 function get_cookie(Name) {
9 var search = Name + "=";
10 var returnvalue = "";
11 if (document.cookie.length > 0) {
12 offset = document.cookie.indexOf(search);
13 // if cookie exists
14 if (offset != -1) {
15 offset += search.length;
16 // set index of beginning of value
17 end = document.cookie.indexOf(";", offset);
18 // set index of end of cookie value
19 if (end == -1) end = document.cookie.length;
20 returnvalue=unescape(document.cookie.substring(offset, end))
21 }
22 }
23 return returnvalue;
24 }
25
26 function setcolor(){
27 document.body.style.backgroundColor=get_cookie("bgcolor")
28 }
29 </script>
30 </head>
31 <body onload="setcolor()">
32 This is the cookie destination page.
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « third_party/webdriver/test_data/sessionCookie.html ('k') | third_party/webdriver/test_data/simple.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698