redraw-page-cache-visited-links.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <html>
  2. <head>
  3. <script>
  4. // Uncomment to make this an automated test
  5. //if (window.testRunner) {
  6. // testRunner.waitUntilDone();
  7. // testRunner.keepWebHistory();
  8. //}
  9. function runTest() {
  10. // Uncomment to make this an automated test
  11. // // Uses window.history hack; see http://bugs.webkit.org/show_bug.cgi?id=7135
  12. // if (!window.history[99999]) {
  13. // var element = document.getElementById("mylink");
  14. // var event = document.createEvent("MouseEvent");
  15. // event.initEvent("click", true, true);
  16. // element.dispatchEvent(event);
  17. // }
  18. // else {
  19. // if (window.testRunner) {
  20. // testRunner.notifyDone();
  21. // }
  22. // }
  23. }
  24. </script>
  25. </head>
  26. <body onload="runTest();">
  27. <div><a href="http://bugs.webkit.org/show_bug.cgi?id=8079">Bug 8079 REGRESSION: Redraw from page cache does not show visited links</a></div>
  28. <ol>
  29. <li>The link in Step 2 should be rendered in an unvisited link color first.
  30. <li><a id="mylink" href="./resources/redraw-page-cache-visited-links-2.html">Click This Link Once</a><br><br>
  31. <li value="4">The test passes if the link in Step 2 is rendered in a visited link color after the click.
  32. </ol>
  33. </body>
  34. </html>