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

Issue 2477783002: Support image / audio references in testharness.js tests. (Closed)

Created:
4 years, 1 month ago by pwnall
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, blink-reviews, jeffcarp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support image / audio references in testharness.js tests. Asides from being the framework for Web Platform Tests, testharness.js gets special treatment in our test suite. Specifically, we don't have to commit -expected.txt files for testharness.js tests where we expect all the assertions to pass. Unfortunately, this behavior does not apply to testharness.js tests that generate images or audio files. There is at least a good use case for testharness.js tests that also do image comparions -- drag and drop tests that cover both DOM aspects and the drag feedback image (a.k.a. ghost / preview). This CL adds support for use cases like the one described above, by decoupling the image/audio expectation checks from the text expectations checks. The latter receive the special testharness.js treatment, while the former are handled the same way as for non-testharness.js tests. BUG=74302 Committed: https://crrev.com/9f5d7f5ddc14e5293117eecef0b59ab1ba9a5ca9 Cr-Commit-Position: refs/heads/master@{#432332}

Patch Set 1 #

Patch Set 2 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py View 1 chunk +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (11 generated)
pwnall
Can you please take a look? If it helps, the CL I need this for ...
4 years, 1 month ago (2016-11-03 16:40:40 UTC) #5
Dirk Pranke
+qyearsley, +jeffcarp fyi ... Generally speaking, we shouldn't be creating new pixel or audio tests ...
4 years, 1 month ago (2016-11-03 19:15:30 UTC) #8
pwnall
On 2016/11/03 19:15:30, Dirk Pranke wrote: > +qyearsley, +jeffcarp fyi ... > > Generally speaking, ...
4 years, 1 month ago (2016-11-03 20:23:18 UTC) #9
Dirk Pranke
These are good questions. The answers aren't obvious, and it's even possible that I'm giving ...
4 years, 1 month ago (2016-11-03 20:37:14 UTC) #10
pwnall
On 2016/11/03 20:37:14, Dirk Pranke wrote: > These are good questions. The answers aren't obvious, ...
4 years, 1 month ago (2016-11-04 19:17:34 UTC) #11
Dirk Pranke
On 2016/11/04 19:17:34, pwnall wrote: > What you said makes perfect sense. Thank you very ...
4 years, 1 month ago (2016-11-04 19:27:54 UTC) #12
pwnall
On 2016/11/04 19:27:54, Dirk Pranke wrote: > On 2016/11/04 19:17:34, pwnall wrote: > > What ...
4 years, 1 month ago (2016-11-15 02:44:15 UTC) #13
Dirk Pranke
Yup, lgtm, thanks (and thanks for bearing with me). qyearsley / jeffcarp - note the ...
4 years, 1 month ago (2016-11-15 23:17:59 UTC) #14
pwnall
On 2016/11/15 23:17:59, Dirk Pranke wrote: > Yup, lgtm, thanks (and thanks for bearing with ...
4 years, 1 month ago (2016-11-15 23:22:57 UTC) #15
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/2477783002/20001
4 years, 1 month ago (2016-11-15 23:23:50 UTC) #17
qyearsley
Follow-up question: I didn't actually understand how testharness.js tests can produce image/audio results; are there ...
4 years, 1 month ago (2016-11-15 23:39:34 UTC) #18
pwnall
On 2016/11/15 23:39:34, qyearsley wrote: > Follow-up question: > > I didn't actually understand how ...
4 years, 1 month ago (2016-11-15 23:43:13 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/261394)
4 years, 1 month ago (2016-11-15 23:46:48 UTC) #21
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/2477783002/20001
4 years, 1 month ago (2016-11-16 01:04:49 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-16 01:20:44 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 01:25:50 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9f5d7f5ddc14e5293117eecef0b59ab1ba9a5ca9
Cr-Commit-Position: refs/heads/master@{#432332}

Powered by Google App Engine
This is Rietveld 408576698