summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html
diff options
context:
space:
mode:
authorjaphet@chromium.org <japhet@chromium.org>2014-10-29 22:37:24 +0000
committerjaphet@chromium.org <japhet@chromium.org>2014-10-29 22:37:24 +0000
commite495c9bdfa3ce128848418817025308a1f4b21db (patch)
treeeba695081fda4bb43147390667c7871a025063ea /third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html
parent14150d03adf77c8798424654c225a31b8e4e0eff (diff)
downloadchromium_src-e495c9bdfa3ce128848418817025308a1f4b21db.zip
chromium_src-e495c9bdfa3ce128848418817025308a1f4b21db.tar.gz
chromium_src-e495c9bdfa3ce128848418817025308a1f4b21db.tar.bz2
Reland "Prepare blink to unify definitions of load completion"
This reverts commit 963b3f017df5e3098f0ffe18fd6ea818a5589b6f. Currently, FrameLoader.cpp contains a function called isDocumentDoneLoading, which has a complicated set of rules to determine when to tell chromium that loading is complete. These rules only really exist for the sake of layout tests, which can't always just define load event completion as the end of the test. A set of rules have been added to the layout tests harness behind a build flag, so add a flagged version of load completion in blink that is strongly mapped to load event completion. Lots of tests need subtle changes. Most of these are forced layouts, waiting for RAF to complete, simple waitUntilDone/notifyDone pairs, and adding missing document.close() calls. BUG=426520 Review URL: https://codereview.chromium.org/678043002 git-svn-id: svn://svn.chromium.org/blink/trunk@184609 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html b/third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html
index cf99a5c..b0b15b0 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/css-insert-import-rule.html
@@ -8,12 +8,10 @@ div {
</style>
<script>
-function test() {
- document.styleSheets[0].insertRule('@import url("resources/css-insert-import-rule.css");', 0);
-}
+document.styleSheets[0].insertRule('@import url("resources/css-insert-import-rule.css");', 0);
</script>
</head>
-<body onload="test()";>
+<body>
<div></div>
</body>