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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html

Issue 1882893002: Remove the line-number flakiness by adding an img element dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/"/'/g per https://www.chromium.org/developers/web-development-style-guide Created 4 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/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html ('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/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html
index e75e59a7262019ffc50f397a44de054c6d3f560d..e4a2d3c250809f6e6925504b27f50754ef0d6dcc 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html
@@ -1,8 +1,12 @@
-<img src="http://127.0.0.1:8080/security/resources/compass.jpg"
- srcset="http://127.0.0.1:8080/security/resources/compass.jpg 2x">
<script>
window.onload = function() {
- if (window.opener)
- window.opener.postMessage('done', '*');
+ var img = document.createElement('img');
+ img.src = 'http://127.0.0.1:8080/security/resources/compass.jpg';
+ img.srcset = 'http://127.0.0.1:8080/security/resources/compass.jpg 2x';
+ img.addEventListener('load', function () {
+ if (window.opener)
+ window.opener.postMessage('done', '*');
+ });
+ document.body.appendChild(img);
};
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-empty-srcset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698