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

Side by Side Diff: webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html

Issue 6442: Let's try this again. The regressions were caused by an incorrect use... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <html>
2 <body onload="AccessInnerDocument()">
3 <div id="output"></div>
4 <iframe id="inner" src="resources/wrapper-context-inner.html"></iframe>
5 <script>
6 if (window.layoutTestController) {
7 layoutTestController.waitUntilDone();
8 layoutTestController.dumpAsText();
9 }
10
11 // Write to the output div.
12 function WriteOutput(s) {
13 var paragraph = document.createElement("p");
14 paragraph.innerHTML = s;
15 document.getElementById("output").appendChild(paragraph);
16 }
17
18 // Used from the inner frame to know when this frame has accessed
19 // the document of the inner frame.
20 var innerDocument;
21
22 // Once the inner frame has loaded, access it's document and assign
23 // the wrapper to innerDocument.
24 function AccessInnerDocument() {
25 if (inner.loaded) {
26 innerDocument = inner.document;
27 } else {
28 setTimeout(AccessInnerDocument, 100);
29 }
30 }
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698