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

Unified Diff: third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html

Issue 2808013003: Deflake background-image-relative-url-in-iframe.html (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
index fadf494c3c627127c2ac49d796b8b8f669c9353a..64a1433bf847deebe5167e0c89c3168ce9fcbf09 100644
--- a/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
@@ -1,8 +1,12 @@
<!DOCTYPE html>
<iframe id="iframe"></iframe>
<script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ }
+
var iframe = document.getElementById('iframe');
- iframe.contentDocument.body.innerHTML = `
+ iframe.srcdoc = `
<style>
.bg-img {
background: url('./resources/green-24x24.png') no-repeat;
@@ -11,4 +15,8 @@
}
</style>
<div class='bg-img'></div>`;
+
+ if (window.testRunner) {
+ iframe.onload = function() { testRunner.notifyDone(); };
+ }
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698