|
|
Created:
4 years, 5 months ago by Srirama Modified:
4 years, 5 months ago CC:
blink-reviews, chromium-reviews, eric.carlson_apple.com, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, posciak+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionConvert video-playback* and sources-fallback* tests to testharness.js
Cleaning up video-playback* and sources-fallback* tests
in media/ to use testharness.js instead of video-test.js.
This will enable to upstream these tests to web-platform-tests.
BUG=588956, 443596
Committed: https://crrev.com/a917ba2f258ec028e8389c4e2141235dcee3d384
Cr-Commit-Position: refs/heads/master@{#407143}
Patch Set 1 #
Total comments: 6
Patch Set 2 : rebase and address comments #
Messages
Total messages: 24 (10 generated)
Description was changed from ========== fix fix fix fix BUG= ========== to ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956 ==========
Patchset #1 (id:1) has been deleted
srirama.m@samsung.com changed reviewers: + foolip@chromium.org, fs@opera.com
Should we add 443596 to the BUG list? It is marked as won't fix right now.
On 2016/07/07 at 15:16:06, srirama.m wrote: > Should we add 443596 to the BUG list? It is marked as won't fix right now. If this addresses the flakiness, then absolutely (and re-open it too.) The test is still flaky on Mac it seems.
lgtm https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:37: if (test.setType) Could use the existence of typeArray instead perhaps? https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: media.oncanplaythrough = t.step_func_done(); Maybe add onerror handlers to fail fast(er) and to avoid just timing out? (Maybe the <source> onerror could be kept as well for additional checking.)
Patchset #2 (id:40001) has been deleted
Patchset #2 (id:60001) has been deleted
The flakiness is due to differences in the -expected.txt file, so that should not be a problem now. I will reopen and close it after sometime if the flakiness is gone in the flakiness dashboard. https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:37: if (test.setType) On 2016/07/07 15:47:48, fs wrote: > Could use the existence of typeArray instead perhaps? Done. https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: media.oncanplaythrough = t.step_func_done(); On 2016/07/07 15:47:49, fs wrote: > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? (Maybe > the <source> onerror could be kept as well for additional checking.) Problem is "error" will be fired even for success case because one of "mp4, ogg" will not be supported.
On 2016/07/07 at 16:30:05, srirama.m wrote: > The flakiness is due to differences in the -expected.txt file, so that should not be a problem now. I will reopen and close it after sometime if the flakiness is gone in the flakiness dashboard. Ok. Sounds good. https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: media.oncanplaythrough = t.step_func_done(); On 2016/07/07 at 16:30:04, Srirama wrote: > On 2016/07/07 15:47:49, fs wrote: > > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? (Maybe > > the <source> onerror could be kept as well for additional checking.) > > Problem is "error" will be fired even for success case because one of "mp4, ogg" will not be supported. Yes. The "old" test double-checked with canPlayType. We can leave that aside if you think it's more trouble than it is worth.
On 2016/07/07 17:35:59, fs wrote: > On 2016/07/07 at 16:30:05, srirama.m wrote: > > The flakiness is due to differences in the -expected.txt file, so that should > not be a problem now. I will reopen and close it after sometime if the flakiness > is gone in the flakiness dashboard. > > Ok. Sounds good. > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: > media.oncanplaythrough = t.step_func_done(); > On 2016/07/07 at 16:30:04, Srirama wrote: > > On 2016/07/07 15:47:49, fs wrote: > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? > (Maybe > > > the <source> onerror could be kept as well for additional checking.) > > > > Problem is "error" will be fired even for success case because one of "mp4, > ogg" will not be supported. > > Yes. The "old" test double-checked with canPlayType. We can leave that aside if > you think it's more trouble than it is worth. Ok, that will be good to have, but it was easy for me to leave it :), so removed it. Lets see what philip says and if he also feels that it is good to have then i will try adding it.
On 2016/07/07 18:29:54, Srirama wrote: > On 2016/07/07 17:35:59, fs wrote: > > On 2016/07/07 at 16:30:05, srirama.m wrote: > > > The flakiness is due to differences in the -expected.txt file, so that > should > > not be a problem now. I will reopen and close it after sometime if the > flakiness > > is gone in the flakiness dashboard. > > > > Ok. Sounds good. > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html > (right): > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: > > media.oncanplaythrough = t.step_func_done(); > > On 2016/07/07 at 16:30:04, Srirama wrote: > > > On 2016/07/07 15:47:49, fs wrote: > > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? > > (Maybe > > > > the <source> onerror could be kept as well for additional checking.) > > > > > > Problem is "error" will be fired even for success case because one of "mp4, > > ogg" will not be supported. > > > > Yes. The "old" test double-checked with canPlayType. We can leave that aside > if > > you think it's more trouble than it is worth. > > Ok, that will be good to have, but it was easy for me to leave it :), so removed > it. Lets see what philip says and if he also feels that it is good to have then > i will try adding it. @foolip, can you please review this once?
Description was changed from ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956 ========== to ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956, 443596 ==========
On 2016/07/13 14:04:03, Srirama wrote: > On 2016/07/07 18:29:54, Srirama wrote: > > On 2016/07/07 17:35:59, fs wrote: > > > On 2016/07/07 at 16:30:05, srirama.m wrote: > > > > The flakiness is due to differences in the -expected.txt file, so that > > should > > > not be a problem now. I will reopen and close it after sometime if the > > flakiness > > > is gone in the flakiness dashboard. > > > > > > Ok. Sounds good. > > > > > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > > File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html > > (right): > > > > > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > > third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: > > > media.oncanplaythrough = t.step_func_done(); > > > On 2016/07/07 at 16:30:04, Srirama wrote: > > > > On 2016/07/07 15:47:49, fs wrote: > > > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing > out? > > > (Maybe > > > > > the <source> onerror could be kept as well for additional checking.) > > > > > > > > Problem is "error" will be fired even for success case because one of > "mp4, > > > ogg" will not be supported. > > > > > > Yes. The "old" test double-checked with canPlayType. We can leave that aside > > if > > > you think it's more trouble than it is worth. > > > > Ok, that will be good to have, but it was easy for me to leave it :), so > removed > > it. Lets see what philip says and if he also feels that it is good to have > then > > i will try adding it. > > @foolip, can you please review this once? @foolip, one pass through it please (may be you would have missed it)
lgtm https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: media.oncanplaythrough = t.step_func_done(); On 2016/07/07 17:35:59, fs wrote: > On 2016/07/07 at 16:30:04, Srirama wrote: > > On 2016/07/07 15:47:49, fs wrote: > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? > (Maybe > > > the <source> onerror could be kept as well for additional checking.) > > > > Problem is "error" will be fired even for success case because one of "mp4, > ogg" will not be supported. > > Yes. The "old" test double-checked with canPlayType. We can leave that aside if > you think it's more trouble than it is worth. Having an error event on the last source element would also work, if you reach that one you know it's not going to work out.
On 2016/07/21 00:09:00, foolip wrote: > lgtm > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html (right): > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: > media.oncanplaythrough = t.step_func_done(); > On 2016/07/07 17:35:59, fs wrote: > > On 2016/07/07 at 16:30:04, Srirama wrote: > > > On 2016/07/07 15:47:49, fs wrote: > > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing out? > > (Maybe > > > > the <source> onerror could be kept as well for additional checking.) > > > > > > Problem is "error" will be fired even for success case because one of "mp4, > > ogg" will not be supported. > > > > Yes. The "old" test double-checked with canPlayType. We can leave that aside > if > > you think it's more trouble than it is worth. > > Having an error event on the last source element would also work, if you reach > that one you know it's not going to work out. That doesn't seem to work, as we are skipping unsupported sources in selectNextSourceChild() if (!supportsType(ContentType(type))) { goto checkAgain; }
On 2016/07/21 14:28:40, Srirama wrote: > On 2016/07/21 00:09:00, foolip wrote: > > lgtm > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > File third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html > (right): > > > > > https://codereview.chromium.org/2121383005/diff/20001/third_party/WebKit/Layo... > > third_party/WebKit/LayoutTests/media/sources-fallback-codecs.html:42: > > media.oncanplaythrough = t.step_func_done(); > > On 2016/07/07 17:35:59, fs wrote: > > > On 2016/07/07 at 16:30:04, Srirama wrote: > > > > On 2016/07/07 15:47:49, fs wrote: > > > > > Maybe add onerror handlers to fail fast(er) and to avoid just timing > out? > > > (Maybe > > > > > the <source> onerror could be kept as well for additional checking.) > > > > > > > > Problem is "error" will be fired even for success case because one of > "mp4, > > > ogg" will not be supported. > > > > > > Yes. The "old" test double-checked with canPlayType. We can leave that aside > > if > > > you think it's more trouble than it is worth. > > > > Having an error event on the last source element would also work, if you reach > > that one you know it's not going to work out. > > That doesn't seem to work, as we are skipping unsupported sources in > selectNextSourceChild() > if (!supportsType(ContentType(type))) { > goto checkAgain; > } Sending it to CQ in the current form for now.
The CQ bit was checked by srirama.m@samsung.com
The patchset sent to the CQ was uploaded after l-g-t-m from fs@opera.com Link to the patchset: https://codereview.chromium.org/2121383005/#ps80001 (title: "rebase and address comments")
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 ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956, 443596 ========== to ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956, 443596 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956, 443596 ========== to ========== Convert video-playback* and sources-fallback* tests to testharness.js Cleaning up video-playback* and sources-fallback* tests in media/ to use testharness.js instead of video-test.js. This will enable to upstream these tests to web-platform-tests. BUG=588956, 443596 Committed: https://crrev.com/a917ba2f258ec028e8389c4e2141235dcee3d384 Cr-Commit-Position: refs/heads/master@{#407143} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/a917ba2f258ec028e8389c4e2141235dcee3d384 Cr-Commit-Position: refs/heads/master@{#407143} |