|
|
DescriptionHandle window.onload and img.onload in image-change-without-resize-shouldnt-layout test.
1.Handle the test inside window.onload.
2.Change image src of same size. This triggers img.onload.
3.Check for no layout on src change.
BUG=638288, 637859
Committed: https://crrev.com/f6ceacf5494a9fff8d53c86d6a39f19f954c8e23
Cr-Commit-Position: refs/heads/master@{#412501}
Patch Set 1 #Patch Set 2 : Remove assert. #
Total comments: 2
Patch Set 3 : Test changed as per comments. #
Total comments: 4
Patch Set 4 : Add assert just after img src change. #
Messages
Total messages: 20 (7 generated)
Description was changed from ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle window.onload. Layout count should be greater than zero. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ========== to ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle window.onload. Layout count should be greater than zero. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ==========
siva.gunturi@samsung.com changed reviewers: + srirama.m@samsung.com
siva.gunturi@samsung.com changed reviewers: + fs@opera.com
@fs, srirama ptal.. This is failing on WebKit Mac10.11 (dbg) and WebKit Linux Debug. I cant find these builds in trybots. Where can we trigger them?
Description was changed from ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle window.onload. Layout count should be greater than zero. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ========== to ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle the test inside window.onload. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ==========
On 2016/08/17 06:45:04, sivag wrote: > @fs, srirama ptal.. > This is failing on WebKit Mac10.11 (dbg) and WebKit Linux Debug. I cant find > these builds in trybots. Where can we trigger them? I think we cannot trigger those from here, but we have to check the status here https://build.chromium.org/p/chromium.webkit/builders/ after landing the patch. As it is flaky in linux, may be you can try running it 1000 times locally and see if it is still flaky.
https://codereview.chromium.org/2250323002/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func(function() { use t.step_func_done and remove t.done below.
https://codereview.chromium.org/2250323002/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func(function() { On 2016/08/17 07:14:57, Srirama wrote: > use t.step_func_done and remove t.done below. Done.
On 2016/08/17 07:14:47, Srirama wrote: > On 2016/08/17 06:45:04, sivag wrote: > > @fs, srirama ptal.. > > This is failing on WebKit Mac10.11 (dbg) and WebKit Linux Debug. I cant find > > these builds in trybots. Where can we trigger them? > > I think we cannot trigger those from here, but we have to check the status here > https://build.chromium.org/p/chromium.webkit/builders/ after landing the patch. > As it is flaky in linux, may be you can try running it 1000 times locally and > see if it is still flaky. The old test is failing in my linux machine when i iterate it 1000 times. This patch fixes the issue.
https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func_done(function() { Does it still work/pass if you assert needsLayoutCount == 0 here just after setting .src?
https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func_done(function() { On 2016/08/17 08:56:08, fs wrote: > Does it still work/pass if you assert needsLayoutCount == 0 here just after > setting .src? yes it works fine.
https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func_done(function() { On 2016/08/17 at 09:00:09, sivag wrote: > On 2016/08/17 08:56:08, fs wrote: > > Does it still work/pass if you assert needsLayoutCount == 0 here just after > > setting .src? > > yes it works fine. Could you add that assertion too then? =)
ptal.. https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html (right): https://codereview.chromium.org/2250323002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/images/image-change-without-resize-shouldnt-layout.html:14: img.onload = t.step_func_done(function() { On 2016/08/17 10:27:46, fs wrote: > On 2016/08/17 at 09:00:09, sivag wrote: > > On 2016/08/17 08:56:08, fs wrote: > > > Does it still work/pass if you assert needsLayoutCount == 0 here just after > > > setting .src? > > > > yes it works fine. > > Could you add that assertion too then? =) Done.
lgtm
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle the test inside window.onload. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ========== to ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle the test inside window.onload. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle the test inside window.onload. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 ========== to ========== Handle window.onload and img.onload in image-change-without-resize-shouldnt-layout test. 1.Handle the test inside window.onload. 2.Change image src of same size. This triggers img.onload. 3.Check for no layout on src change. BUG=638288, 637859 Committed: https://crrev.com/f6ceacf5494a9fff8d53c86d6a39f19f954c8e23 Cr-Commit-Position: refs/heads/master@{#412501} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/f6ceacf5494a9fff8d53c86d6a39f19f954c8e23 Cr-Commit-Position: refs/heads/master@{#412501} |