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

Issue 2874073003: Add layout tests for ImageLoader::UpdateFromElement(kUpdateForcedReload) (Closed)

Created:
3 years, 7 months ago by hiroshige
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add layout tests for ImageLoader::UpdateFromElement(kUpdateForcedReload) HTMLImageElement::ForceReload() and ImageLoader::UpdateFromElement(kUpdateForcedReload) were introduced by [1] but are not covered by any tests. This CL adds layout tests for this code path. This is also confirming the correctness of [2] and [3]. [1] https://codereview.chromium.org/1112513005/ [2] https://codereview.chromium.org/2877583002/ [3] https://codereview.chromium.org/2859383002/ BUG=485295, 624697, 719759 Review-Url: https://codereview.chromium.org/2874073003 Cr-Commit-Position: refs/heads/master@{#471401} Committed: https://chromium.googlesource.com/chromium/src/+/f33a3ba6de05eaed0115636c6dd552b9f8c80333

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Comment #

Total comments: 8

Patch Set 4 : Reflect comments (test, Internals) #

Patch Set 5 : fix #

Total comments: 9

Patch Set 6 : Reflect comments #

Patch Set 7 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/images/force-reload.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (23 generated)
hiroshige
PTAL.
3 years, 7 months ago (2017-05-11 16:11:24 UTC) #11
kouhei (in TOK)
https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html File third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html (right): https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html#newcode15 third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html:15: // We need an URL that returns different non-SVG ...
3 years, 7 months ago (2017-05-11 16:50:52 UTC) #12
hiroshige
https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html File third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html (right): https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html#newcode15 third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html:15: // We need an URL that returns different non-SVG ...
3 years, 7 months ago (2017-05-11 17:11:45 UTC) #13
kouhei (in TOK)
https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html File third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html (right): https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html#newcode15 third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html:15: // We need an URL that returns different non-SVG ...
3 years, 7 months ago (2017-05-11 17:30:15 UTC) #14
hiroshige
https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html File third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html (right): https://codereview.chromium.org/2874073003/diff/40001/third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html#newcode15 third_party/WebKit/LayoutTests/http/tests/images/force-reload-image-document.html:15: // We need an URL that returns different non-SVG ...
3 years, 7 months ago (2017-05-11 18:12:16 UTC) #19
kouhei (in TOK)
lgtm https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php File third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php (right): https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php#newcode6 third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php:6: if (!sys_get_temp_dir()) { I'm not sure if we ...
3 years, 7 months ago (2017-05-11 18:22:08 UTC) #20
yhirano
lgtm https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php File third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php (right): https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php#newcode2 third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php:2: # Returns a cacheable image randomly. Isn't this ...
3 years, 7 months ago (2017-05-12 10:30:43 UTC) #23
hiroshige
https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php File third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php (right): https://codereview.chromium.org/2874073003/diff/80001/third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php#newcode2 third_party/WebKit/LayoutTests/http/tests/cache/resources/random-cached-image.php:2: # Returns a cacheable image randomly. On 2017/05/12 10:30:43, ...
3 years, 7 months ago (2017-05-12 17:14:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874073003/120001
3 years, 7 months ago (2017-05-12 17:17:17 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 19:18:54 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f33a3ba6de05eaed0115636c6dd5...

Powered by Google App Engine
This is Rietveld 408576698