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

Unified Diff: third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html

Issue 2667193002: Harden mq-color-gamut-picture.html test to avoid flakyness. (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html
diff --git a/third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html b/third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html
index e62f040bdd1b014e68ca5b54ca380dba3701c781..6dbb30dd8cf2b9e375b7bea90ccd749a42421e7c 100644
--- a/third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html
+++ b/third_party/WebKit/LayoutTests/fast/media/mq-color-gamut-picture.html
@@ -1,9 +1,14 @@
<!DOCTYPE html>
<title>Tests for color-gamut media query with picture</title>
<script>
-testRunner.setColorProfile('adobeRGB', () => {});
+testRunner.waitUntilDone();
+testRunner.setColorProfile('adobeRGB', () => {
+ var container = document.querySelector('div');
+ container.innerHTML = '<picture><source media="(color-gamut: p3)" srcset="resources/apple_logo_big.jpg"><img src="resources/apple_logo_half_size.jpg"></picture>';
+
+ var img = container.querySelector('img');
+ img.addEventListener('load', () => { testRunner.notifyDone(); });
+});
</script>
-<picture>
- <source media="(color-gamut: p3)" srcset="resources/apple_logo_big.jpg">
- <img src="resources/apple_logo_half_size.jpg">
-</picture>
+<div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698