Commit 605adccc authored by yoav's avatar yoav Committed by Commit bot

Fix an outdated picture removal test and comment

One of the Client Hints tests contained an outdated comment about mutation
related issue that was since solved, as well as a workaround for that issue.

This CL removes the comment and makes sure that the test doesn't work around
that no-longer-relevant bug.

BUG=

Review URL: https://codereview.chromium.org/1644503002

Cr-Commit-Position: refs/heads/master@{#371909}
parent b2bec813
......@@ -6,9 +6,8 @@
<script>
window.addEventListener("message", function (message) {
var pic = document.getElementById("pic");
pic.removeChild(pic.childNodes[0]);
// TODO(yoav): this should trigger a load, but doesn't. See https://crbug.com/418903
success();
pic.removeChild(document.getElementById("firstsource"));
setTimeout(function(){fail(4);}, 200);
});
var fail = function(num) {
......@@ -37,7 +36,7 @@
}
</script>
<picture id=pic>
<source sizes="50vw" media="(min-width: 800px)" srcset="image-checks-for-width.php?rw=400">
<source sizes="50vw" srcset="image-checks-for-width.php?rw=300">
<source sizes="50vw" id="firstsource" media="(min-width: 800px)" srcset="image-checks-for-width.php?rw=400">
<source sizes="40vw" srcset="image-checks-for-width.php?rw=320">
<img onerror="error()" onload="load()">
</picture>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment