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

Side by Side Diff: third_party/webdriver/test_data/cookies.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 <html>
2 <head>
3 <title>Testing cookies</title>
4
5 <script type="text/javascript">
6 function setCookie(domain, name) {
7 document.cookie = name + "=ok;path=/;domain=" + domain;
8 }
9
10 function showCookie() {
11 document.getElementById("result").innerHTML = "<p>" + document.cooki e + "</p>";
12 }
13 </script>
14 </head>
15 <body onload="showCookie();">
16 <h2>Cookie Mashing</h2>
17 .com <a href="#" onclick="setCookie('.com', 'the.com_one'); showCookie(); re turn false;">Click</a></br />
18 . <a href="#" onclick="setCookie('.', 'the.one'); showCookie(); return false ;">Click</a></br />
19 google.com <a href="#" onclick="setCookie('google.com', 'google'); showCooki e(); return false;">Click</a></br />
20 .google.com <a href="#" onclick="setCookie('.google.com', '.google'); showCo okie(); return false;">Click</a></br />
21 127.0.0.1 <a href="#" onclick="setCookie('127.0.0.1', 'localhost'); showCook ie(); return false;">Click</a></br />
22 localhost:3001 <a href="#" onclick="setCookie('mency.ad.corp.google.com:6221 0', 'with_port'); showCookie(); return false;">Click</a></br />
23 .google:3001 <a href="#" onclick="setCookie('.google.com:62210', 'with_domai n_and_port'); showCookie(); return false;">Click</a></br />
24 172.16.12.225 <a href="#" onclick="setCookie('172.16.12.225', 'raw_IP'); sho wCookie(); return false;">Click</a></br />
25 172.16.12.225:port <a href="#" onclick="setCookie('172.16.12.225:62210', 'ra w_IP_and_port'); showCookie(); return false;">Click</a></br />
26 <a href="#" onclick="document.cookie = 'foo=bar;path=/common/galaxy';">Set o n a different path</a>
27
28 <div id="result"></div>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698