Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / script-no-store.html
blob352e0c003d0d50bc33c00aeebf504492c3246e47
1 <body>
2 <script>
3 var count = 0;
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
10 function addRandom()
12 var script = document.createElement("script");
13 script.setAttribute("src", "resources/random-no-store.php");
14 document.body.appendChild(script);
16 ++count;
17 addRandom();
19 setInterval(function() {
20 if (count == 1 && document.getElementsByTagName("p").length == 1) {
21 ++count;
22 addRandom();
23 } else if (document.getElementsByTagName("p").length == 2) {
24 document.write(document.getElementsByTagName("p")[0].innerHTML == document.getElementsByTagName("p")[1].innerHTML ?
25 "FAIL<br>" : "PASS<br>");
26 if (window.testRunner)
27 testRunner.notifyDone();
29 }, 10);
30 </script>