Convert video-controls* tests to testharness.js (issue 2115833002 by srirama.m@samsung.com)

0 views
Skip to first unread message

srir...@samsung.com

unread,
Jul 1, 2016, 3:51:02 AM7/1/16
to f...@opera.com, foo...@chromium.org, chromium...@chromium.org, blink-...@chromium.org, poscia...@chromium.org, mlamouri+w...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Reviewers: fs, Philip Jägenstedt
CL: https://codereview.chromium.org/2115833002/

Message:
PTAL

Description:
Convert video-controls* tests to testharness.js

Cleaning up video-controls* 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

Base URL: https://chromium.googlesource.com/chromium/src.git@master

Affected files (+86, -152 lines):
M third_party/WebKit/LayoutTests/media/video-controls.html
D third_party/WebKit/LayoutTests/media/video-controls-expected.txt
M third_party/WebKit/LayoutTests/media/video-controls-transformed.html
D third_party/WebKit/LayoutTests/media/video-controls-transformed-expected.txt
M third_party/WebKit/LayoutTests/media/video-controls-zoomed.html
D third_party/WebKit/LayoutTests/media/video-controls-zoomed-expected.txt


f...@opera.com

unread,
Jul 1, 2016, 5:21:22 AM7/1/16
to srir...@samsung.com, foo...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org
LGTM w/ nits


https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-transformed.html
File
third_party/WebKit/LayoutTests/media/video-controls-transformed.html
(right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-transformed.html#newcode17
third_party/WebKit/LayoutTests/media/video-controls-transformed.html:17:
assert_not_equals(video.controls, null);
assert_true

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-zoomed.html
File third_party/WebKit/LayoutTests/media/video-controls-zoomed.html
(right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-zoomed.html#newcode16
third_party/WebKit/LayoutTests/media/video-controls-zoomed.html:16:
assert_not_equals(video.controls, null);
Ditto

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html
File third_party/WebKit/LayoutTests/media/video-controls.html (right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html#newcode10
third_party/WebKit/LayoutTests/media/video-controls.html:10:
assert_not_equals(video.controls, null);
'controls' is a boolean attribute, so assert_true would seem more to the
point here (and similarly below.)

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html#newcode19
third_party/WebKit/LayoutTests/media/video-controls.html:19:
assert_false(video.controls, false);
Nit: Drop second arg (false is a poor description ;-))

https://codereview.chromium.org/2115833002/

srir...@samsung.com

unread,
Jul 1, 2016, 5:34:04 AM7/1/16
to f...@opera.com, foo...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-transformed.html
File
third_party/WebKit/LayoutTests/media/video-controls-transformed.html
(right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-transformed.html#newcode17
third_party/WebKit/LayoutTests/media/video-controls-transformed.html:17:
assert_not_equals(video.controls, null);
On 2016/07/01 09:21:22, fs wrote:
> assert_true

Done.


https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-zoomed.html
File third_party/WebKit/LayoutTests/media/video-controls-zoomed.html
(right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls-zoomed.html#newcode16
third_party/WebKit/LayoutTests/media/video-controls-zoomed.html:16:
assert_not_equals(video.controls, null);
On 2016/07/01 09:21:22, fs wrote:
> Ditto

Done.


https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html
File third_party/WebKit/LayoutTests/media/video-controls.html (right):

https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html#newcode10
third_party/WebKit/LayoutTests/media/video-controls.html:10:
assert_not_equals(video.controls, null);
On 2016/07/01 09:21:22, fs wrote:
> 'controls' is a boolean attribute, so assert_true would seem more to
the point
> here (and similarly below.)

Done.


https://codereview.chromium.org/2115833002/diff/1/third_party/WebKit/LayoutTests/media/video-controls.html#newcode19
third_party/WebKit/LayoutTests/media/video-controls.html:19:
assert_false(video.controls, false);
On 2016/07/01 09:21:22, fs wrote:
> Nit: Drop second arg (false is a poor description ;-))

commit-bot@chromium.org via codereview.chromium.org

unread,
Jul 1, 2016, 5:34:49 AM7/1/16
to srir...@samsung.com, f...@opera.com, foo...@chromium.org, commi...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org

commit-bot@chromium.org via codereview.chromium.org

unread,
Jul 1, 2016, 6:42:55 AM7/1/16
to srir...@samsung.com, f...@opera.com, foo...@chromium.org, commi...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org
Committed patchset #2 (id:20001)

https://codereview.chromium.org/2115833002/

commit-bot@chromium.org via codereview.chromium.org

unread,
Jul 1, 2016, 6:42:56 AM7/1/16
to srir...@samsung.com, f...@opera.com, foo...@chromium.org, commi...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org

commit-bot@chromium.org via codereview.chromium.org

unread,
Jul 1, 2016, 6:45:02 AM7/1/16
to srir...@samsung.com, f...@opera.com, foo...@chromium.org, commi...@chromium.org, blink-...@chromium.org, chromium...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, mlamouri+w...@chromium.org, poscia...@chromium.org
Patchset 2 (id:??) landed as
https://crrev.com/029e9b258d6a9f685f389054588d9f2cfb1ac9b0
Cr-Commit-Position: refs/heads/master@{#403434}

https://codereview.chromium.org/2115833002/
Reply all
Reply to author
Forward
0 new messages