Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / cookies / resources / setArraycookies-result.php
blob0484e483750976cade681dc408c8aba8f5be8040
1 <html>
2 <head>
3 <script>
4 function run(){
5 // Reading the Cooikes using PHP
6 var cookie = "<?php if (isset($_COOKIE['setArraycookie'])) {
7 foreach ($_COOKIE['setArraycookie'] as $name => $value) {
8 $name = htmlspecialchars($name);
9 $value = htmlspecialchars($value);
10 echo "$name : $value";
13 ?>";
15 var status = "Fail";
16 if (cookie == "three : cookiethreetwo : cookietwoone : cookieone") {
17 document.getElementById("test").innerHTML = "<b>Passed</b>";
18 status = "Pass";
19 } else
20 document.getElementById("test").innerHTML = "<b>Failed</b>";
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 </script>
26 </head>
27 <body onload="run()">
28 <p>This test case to set a Array of Cookie size of 3 and check if it's been correctly set and in order.<br />If the Test case was successful, Then it should print Passed below!! </p><br/>
29 <div id="test">
30 Not Working!!
31 </div>
32 </body>
33 </html>