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

Unified Diff: webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html
===================================================================
--- webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html (revision 0)
+++ webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html (revision 0)
@@ -0,0 +1,28 @@
+<html>
+<body onload="RunTest()">
+<script>
+// Used from the top frame to know when this frame has been loaded.
+var loaded = false;
+
+// After the top frame has accessed the document of this frame, we
+// test that the document wrapper was created in this context and
+// not in the top context.
+function RunTest() {
+ loaded = true;
+ if (top.innerDocument) {
+ var paragraph = document.createElement('p');
+ if (HTMLElement.prototype.isPrototypeOf(paragraph)) {
+ top.WriteOutput("PASS");
+ } else {
+ top.WriteOutput("FAIL");
+ }
+ if (window.layoutTestController) {
+ layoutTestController.notifyDone();
+ }
+ } else {
+ setTimeout(RunTest, 100);
+ }
+}
+</script>
+</body>
+</html>
Property changes on: webkit\data\layout_tests\chrome\fast\dom\resources\wrapper-context-inner.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698