diff options
author | Steve Block <steveblock@google.com> | 2011-05-06 11:45:16 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-12 13:44:10 +0100 |
commit | cad810f21b803229eb11403f9209855525a25d57 (patch) | |
tree | 29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html | |
parent | 121b0cf4517156d0ac5111caf9830c51b69bae8f (diff) | |
download | external_webkit-cad810f21b803229eb11403f9209855525a25d57.zip external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2 |
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html')
-rw-r--r-- | WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html b/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html deleted file mode 100644 index f62fd68..0000000 --- a/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html +++ /dev/null @@ -1,23 +0,0 @@ -<p>This test ensures that document.write after page load is synchronous.</p> -<p>You will get a PASS or FAIL alert message after a few seconds.</p> -<script> -window.onload = function() { - - // Build a very long string to write. - var LIMIT = 17; - var str = '<p style="display:none">x</p>'; - for (var i=0; i<LIMIT; ++i) - str += str; - - // Write the string and check the DOM immediately and after a small delay. - var doc = document.implementation.createHTMLDocument(); - doc.write(str); - var immediateElementCount = doc.getElementsByTagName('*').length; - setTimeout(function() { - var delayedElementCount = doc.getElementsByTagName('*').length; - var passOrFail = (immediateElementCount === delayedElementCount ? "PASS" : "FAIL"); - alert(passOrFail); - }, 100); - -} -</script> |