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

Issue 433873002: Loading screenshots and simple 1-to-1 comparison of screenshots (Closed)

Created:
6 years, 4 months ago by Lisa Ignatyeva
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Denis Kuznetsov (DE-MUC), dzhioev (left Google)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Continues https://codereview.chromium.org/405093003, so general description is there. Now the testing mode has appeared: ScreenshotTester can now load the golden screenshot from the disk and compare it to the screenshot taken right now. It still should be turned on with switches. To turn testing with screenshots on, --enable-screenshot-testing-with-mode=MODE is used, where MODE can be "test" or "update". "update" updates golden screenshot and requires --golden-screenshots-dir=DIR: place to store golden screenshots. "test" runs comparing golden screenshot with current one, and --artifacts-dir=DIR can be used, where DIR is the place to store screenshots that are different from golden ones if they exist, and also an image representing difference between screenshots. If no --artifacts-dir switch is found, these bugproofs are saved to the directory with golden screenshots. BUG=395653 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286880 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286981

Patch Set 1 #

Patch Set 2 : "switch files updated" #

Total comments: 22

Patch Set 3 : minor fixes #

Patch Set 4 : some DCHECKs replaced with CHECKs #

Patch Set 5 : LOGs replaced with CHECKs #

Total comments: 14

Patch Set 6 : minor style fixes #

Patch Set 7 : compiler error fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -52 lines) Patch
M chrome/browser/chromeos/login/login_ui_browsertest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screenshot_tester.h View 1 2 2 chunks +36 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/screenshot_tester.cc View 1 2 3 4 5 6 4 chunks +150 lines, -29 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Lisa Ignatyeva
6 years, 4 months ago (2014-07-31 13:01:18 UTC) #1
ygorshenin1
https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/login_ui_browsertest.cc File chrome/browser/chromeos/login/login_ui_browsertest.cc (right): https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/login_ui_browsertest.cc#newcode146 chrome/browser/chromeos/login/login_ui_browsertest.cc:146: nit: blank line is not needed here. https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/screenshot_tester.cc File ...
6 years, 4 months ago (2014-07-31 13:19:14 UTC) #2
Lisa Ignatyeva
https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/login_ui_browsertest.cc File chrome/browser/chromeos/login/login_ui_browsertest.cc (right): https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/login_ui_browsertest.cc#newcode146 chrome/browser/chromeos/login/login_ui_browsertest.cc:146: On 2014/07/31 13:19:14, ygorshenin1 wrote: > nit: blank line ...
6 years, 4 months ago (2014-07-31 16:37:40 UTC) #3
ygorshenin1
https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/screenshot_tester.cc File chrome/browser/chromeos/login/screenshot_tester.cc (right): https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/screenshot_tester.cc#newcode56 chrome/browser/chromeos/login/screenshot_tester.cc:56: DCHECK(false); On 2014/07/31 16:37:39, Lisa Ignatyeva wrote: > On ...
6 years, 4 months ago (2014-07-31 16:50:17 UTC) #4
Lisa Ignatyeva
https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/screenshot_tester.cc File chrome/browser/chromeos/login/screenshot_tester.cc (right): https://codereview.chromium.org/433873002/diff/20001/chrome/browser/chromeos/login/screenshot_tester.cc#newcode56 chrome/browser/chromeos/login/screenshot_tester.cc:56: DCHECK(false); On 2014/07/31 16:50:17, ygorshenin1 wrote: > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 16:58:39 UTC) #5
ygorshenin1
lgtm, but please resolve new bunch of comments. https://codereview.chromium.org/433873002/diff/80001/chrome/browser/chromeos/login/screenshot_tester.cc File chrome/browser/chromeos/login/screenshot_tester.cc (right): https://codereview.chromium.org/433873002/diff/80001/chrome/browser/chromeos/login/screenshot_tester.cc#newcode7 chrome/browser/chromeos/login/screenshot_tester.cc:7: #include ...
6 years, 4 months ago (2014-07-31 17:28:18 UTC) #6
Lisa Ignatyeva
https://codereview.chromium.org/433873002/diff/80001/chrome/browser/chromeos/login/screenshot_tester.cc File chrome/browser/chromeos/login/screenshot_tester.cc (right): https://codereview.chromium.org/433873002/diff/80001/chrome/browser/chromeos/login/screenshot_tester.cc#newcode7 chrome/browser/chromeos/login/screenshot_tester.cc:7: #include <algorithm> On 2014/07/31 17:28:18, ygorshenin1 wrote: > Where ...
6 years, 4 months ago (2014-07-31 17:40:00 UTC) #7
Lisa Ignatyeva
The CQ bit was checked by elizavetai@chromium.org
6 years, 4 months ago (2014-07-31 17:40:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elizavetai@chromium.org/433873002/100001
6 years, 4 months ago (2014-07-31 17:43:14 UTC) #9
commit-bot: I haz the power
Change committed as 286880
6 years, 4 months ago (2014-07-31 20:10:17 UTC) #10
scheib
A revert of this CL has been created in https://codereview.chromium.org/423713006/ by scheib@chromium.org. The reason for ...
6 years, 4 months ago (2014-07-31 20:30:02 UTC) #11
Lisa Ignatyeva
6 years, 4 months ago (2014-08-01 07:58:42 UTC) #12
Lisa Ignatyeva
Compiler error is fixed and now it seems to be working.
6 years, 4 months ago (2014-08-01 08:01:44 UTC) #13
Nikita (slow)
lgtm
6 years, 4 months ago (2014-08-01 08:29:16 UTC) #14
Lisa Ignatyeva
The CQ bit was checked by elizavetai@chromium.org
6 years, 4 months ago (2014-08-01 08:29:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elizavetai@chromium.org/433873002/120001
6 years, 4 months ago (2014-08-01 08:31:04 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-01 12:51:48 UTC) #17
Message was sent while issue was closed.
Change committed as 286981

Powered by Google App Engine
This is Rietveld 408576698