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

Issue 2227423002: Use testharness.js instead of js-test.js in fast/images. (Closed)

Created:
4 years, 4 months ago by sivag
Modified:
4 years, 4 months ago
Reviewers:
Srirama, fs
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use testharness.js instead of js-test.js in fast/images. This patch uses testharness.js instead of js-test.js. Other changes involved are 1. Move image-error-event-not-firing.html to http/tests/images/. Make sure the destination url used in the test exists. 2.Add test images to http/tests/resources folder. 3.Change DOCTYPE declarations. BUG=637859 . Committed: https://crrev.com/7d3156f22a42e0da256c80134684ebfb7d99225c Cr-Commit-Position: refs/heads/master@{#412230}

Patch Set 1 #

Total comments: 12

Patch Set 2 : comments taken care #

Total comments: 10

Patch Set 3 : removed unused images #

Patch Set 4 : Changed as per comments #

Total comments: 6

Patch Set 5 : Tests changes as per the comments. #

Patch Set 6 : Give correct location of resources folder. #

Total comments: 8

Patch Set 7 : Changed tests as per the comments. #

Total comments: 6

Patch Set 8 : Changed tests as per the comments. #

Patch Set 9 : fix #

Messages

Total messages: 48 (25 generated)
Srirama
https://codereview.chromium.org/2227423002/diff/1/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2227423002/diff/1/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html#newcode2 third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:2: <title>"This test ensures that when an image changes, but ...
4 years, 4 months ago (2016-08-10 06:59:47 UTC) #3
sivag
https://codereview.chromium.org/2227423002/diff/1/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2227423002/diff/1/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html#newcode2 third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:2: <title>"This test ensures that when an image changes, but ...
4 years, 4 months ago (2016-08-10 09:17:49 UTC) #4
Srirama
LGTM with the comments addressed and after getting LGTM from another reviewer. https://codereview.chromium.org/2227423002/diff/20001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html ...
4 years, 4 months ago (2016-08-10 10:50:22 UTC) #10
sivag
https://codereview.chromium.org/2227423002/diff/20001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2227423002/diff/20001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html#newcode12 third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:12: if(img) { On 2016/08/10 10:50:21, Srirama wrote: > condition ...
4 years, 4 months ago (2016-08-10 11:21:54 UTC) #13
sivag
@fs, ptal..
4 years, 4 months ago (2016-08-10 14:22:00 UTC) #17
fs
This looks mostly ok. Some comments on the CSP-related test though - not really your ...
4 years, 4 months ago (2016-08-10 17:13:17 UTC) #18
fs
https://codereview.chromium.org/2227423002/diff/60001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html (right): https://codereview.chromium.org/2227423002/diff/60001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html#newcode1 third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html:1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> Could you make this ...
4 years, 4 months ago (2016-08-10 17:37:08 UTC) #19
sivag
ptal.. https://codereview.chromium.org/2227423002/diff/60001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html (left): https://codereview.chromium.org/2227423002/diff/60001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html#oldcode20 third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html:20: image.src = 'http://www.myfakesiteabc.com/image.png'; On 2016/08/10 17:13:17, fs wrote: ...
4 years, 4 months ago (2016-08-16 09:21:16 UTC) #24
fs
https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html#newcode13 third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:13: assert_equals(internals.needsLayoutCount(), 0); I think we could make this test ...
4 years, 4 months ago (2016-08-16 09:39:37 UTC) #26
sivag
@fs, ptal. https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html#newcode13 third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:13: assert_equals(internals.needsLayoutCount(), 0); On 2016/08/16 09:39:37, fs wrote: ...
4 years, 4 months ago (2016-08-16 10:06:40 UTC) #27
fs
https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html (left): https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html#oldcode1 third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html:1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> This file is listed ...
4 years, 4 months ago (2016-08-16 10:36:15 UTC) #28
fs
LGTM w/ nit. Please also make sure that the file that was moved no longer ...
4 years, 4 months ago (2016-08-16 10:42:42 UTC) #29
fs
https://codereview.chromium.org/2227423002/diff/120001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html (right): https://codereview.chromium.org/2227423002/diff/120001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html#newcode6 third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html:6: <img src="../resources/image-error-event-not-firing-test-image.png"></img> Could probably also use one of the ...
4 years, 4 months ago (2016-08-16 10:44:55 UTC) #30
sivag
@fs, ptal.. https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html (left): https://codereview.chromium.org/2227423002/diff/100001/third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html#oldcode1 third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html:1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 11:54:21 UTC) #31
sivag
On 2016/08/16 10:42:42, fs wrote: > LGTM w/ nit. > > Please also make sure ...
4 years, 4 months ago (2016-08-16 11:55:32 UTC) #32
fs
https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html (right): https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html#newcode12 third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html:12: img.src = "file:///../resources/square.png"; Use http://127.0.0.1:8000/resources/square.png like in PS7. (file: ...
4 years, 4 months ago (2016-08-16 12:47:52 UTC) #33
sivag
https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html (right): https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html#newcode12 third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html:12: img.src = "file:///../resources/square.png"; On 2016/08/16 12:47:52, fs wrote: > ...
4 years, 4 months ago (2016-08-16 12:51:56 UTC) #34
fs
https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html File third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html (right): https://codereview.chromium.org/2227423002/diff/180001/third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html#newcode12 third_party/WebKit/LayoutTests/http/tests/images/image-error-event-not-firing.html:12: img.src = "file:///../resources/square.png"; On 2016/08/16 at 12:51:55, sivag wrote: ...
4 years, 4 months ago (2016-08-16 12:56:17 UTC) #35
sivag
I am not able to mark the file third_party/WebKit/LayoutTests/fast/images/image-error-event-not-firing.html as deleted. Am i missing something ...
4 years, 4 months ago (2016-08-16 13:12:29 UTC) #40
fs
On 2016/08/16 at 13:12:29, siva.gunturi wrote: > I am not able to mark the file ...
4 years, 4 months ago (2016-08-16 13:22:27 UTC) #41
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/2227423002/240001
4 years, 4 months ago (2016-08-16 13:23:31 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 4 months ago (2016-08-16 14:28:47 UTC) #46
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 14:30:02 UTC) #48
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7d3156f22a42e0da256c80134684ebfb7d99225c
Cr-Commit-Position: refs/heads/master@{#412230}

Powered by Google App Engine
This is Rietveld 408576698