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

Unified Diff: third_party/WebKit/LayoutTests/images/color-profile-reflection.html

Issue 2831953002: Update TestExpectations and rebase some tests. (Closed)
Patch Set: New baselines 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
Index: third_party/WebKit/LayoutTests/images/color-profile-reflection.html
diff --git a/third_party/WebKit/LayoutTests/images/color-profile-reflection.html b/third_party/WebKit/LayoutTests/images/color-profile-reflection.html
index c5f04817939ad946427116c139f7eb5b17be736c..690624f461edc0bceffaac7a58a85ce9af3a755d 100644
--- a/third_party/WebKit/LayoutTests/images/color-profile-reflection.html
+++ b/third_party/WebKit/LayoutTests/images/color-profile-reflection.html
@@ -16,6 +16,11 @@
<script>
window.onload = function() {
+ if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+ }
+
document.querySelector('div').classList.add('reflection');
if (window.testRunner)
@@ -27,12 +32,8 @@ function changeColorProfile() {
}
function done() {
- setTimeout(function() { testRunner.notifyDone() }, 0);
+ runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
}
-if (window.testRunner) {
- testRunner.dumpAsTextWithPixelResults();
- testRunner.waitUntilDone();
-}
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698