WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Test v1
bug-9166-test-v1.diff (text/plain), 2.72 KB, created by
David Kilzer (:ddkilzer)
on 2006-05-29 18:18:54 PDT
(
hide
)
Description:
Test v1
Filename:
MIME Type:
Creator:
David Kilzer (:ddkilzer)
Created:
2006-05-29 18:18:54 PDT
Size:
2.72 KB
patch
obsolete
>Index: LayoutTests/fast/history/resources/iframe.src-history.js >=================================================================== >--- LayoutTests/fast/history/resources/iframe.src-history.js (revision 0) >+++ LayoutTests/fast/history/resources/iframe.src-history.js (revision 0) >@@ -0,0 +1,30 @@ >+if (window.layoutTestController) { >+ layoutTestController.waitUntilDone(); >+} >+function countOne() { >+ var iframe = document.getElementById("myiframe"); >+ iframe.src = "./resources/iframe.src-history-page2.html"; >+} >+function countTwo() { >+ var iframe = document.getElementById("myiframe"); >+ iframe.src = "./resources/iframe.src-history-page1.html"; >+} >+var count = 0; >+var timeout = 1000; >+function runTest() { >+ //var iframe = document.getElementById("myiframe"); >+ count++; >+ if (count == 1) { >+ setTimeout('countOne()', timeout); >+ //iframe.src = "./resources/iframe.src-history-page2.html"; >+ } >+ else if (count == 2) { >+ setTimeout('countTwo()', timeout); >+ //iframe.src = "./resources/iframe.src-history-page1.html"; >+ } >+ else if (count == 3) { >+ if (window.layoutTestController) { >+ layoutTestController.notifyDone(); >+ } >+ } >+} >Index: LayoutTests/fast/history/resources/iframe.src-history-page1.html >=================================================================== >--- LayoutTests/fast/history/resources/iframe.src-history-page1.html (revision 0) >+++ LayoutTests/fast/history/resources/iframe.src-history-page1.html (revision 0) >@@ -0,0 +1,6 @@ >+<html> >+<body> >+<div>The following link should be rendered in the visited link color:</div> >+<div><a id="mylink" href="./iframe.src-history-page2.html">./iframe.src-history-page2.html</a></div> >+</body> >+</html> >Index: LayoutTests/fast/history/resources/iframe.src-history-page2.html >=================================================================== >--- LayoutTests/fast/history/resources/iframe.src-history-page2.html (revision 0) >+++ LayoutTests/fast/history/resources/iframe.src-history-page2.html (revision 0) >@@ -0,0 +1,5 @@ >+<html> >+<body> >+<div>Page 2 -- This should not appear in the rendered page.</div> >+</body> >+</html> >Index: LayoutTests/fast/history/iframe.src-history.html >=================================================================== >--- LayoutTests/fast/history/iframe.src-history.html (revision 0) >+++ LayoutTests/fast/history/iframe.src-history.html (revision 0) >@@ -0,0 +1,7 @@ >+<html> >+<head> >+<script src="resources/iframe.src-history.js"></script> >+</head> >+<div><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9166">Bug 9166 Setting iframe.src is not registered in history</a></div> >+<iframe id="myiframe" src="./resources/iframe.src-history-page1.html" onload="runTest();"></iframe> >+</html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 9166
: 8599 |
17334
|
51122