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

Unified Diff: webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html

Issue 42097: Make wrapper-context.html faster by eliminating timeouts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 11401)
+++ webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html (working copy)
@@ -1,27 +1,23 @@
<html>
-<body onload="RunTest()">
+<body onload="notifyLoaded()">
<script>
-// Used from the top frame to know when this frame has been loaded.
-var loaded = false;
+function notifyLoaded() {
+ top.innerHasLoaded();
+}
// 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) {
+function runTest() {
var paragraph = document.createElement('p');
if (HTMLElement.prototype.isPrototypeOf(paragraph)) {
- top.WriteOutput("PASS");
+ top.writeOutput("PASS");
} else {
- top.WriteOutput("FAIL");
+ top.writeOutput("FAIL");
}
if (window.layoutTestController) {
- layoutTestController.notifyDone();
+ layoutTestController.notifyDone();
}
- } else {
- setTimeout(RunTest, 100);
- }
}
</script>
</body>
« 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