0
Commit Graph

130 Commits

Author SHA1 Message Date
Xianzhu Wang
c5e2eaf13f Update docs/testing/web_test_expectations.md
- Remove an extra heading under "Rebaselining using try jobs" >
  "Options".
- Add doc for '--patchset=n'.
- Add link to local manual rebaselining.

TBR=robertma@chromium.org

Change-Id: I54d1daf6754707009c08cbc53791a70262bca206
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2005408
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732573}
2020-01-16 22:13:09 +00:00
Joshua Peraza
00e6c56324 Reland "linux: Enable Crashpad for content shell"
This is a reland of 9747ecdd3e

Original change's description:
> linux: Enable Crashpad for content shell
> 
> Bug: 942279
> Change-Id: I221431e352f11b40c3bc39bbcd8297b431dd8f0c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763346
> Commit-Queue: Joshua Peraza <jperaza@chromium.org>
> Reviewed-by: Peter Beverloo <peter@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#699880}

Bug: 942279
Change-Id: I7ced7adacbbe585f5ea47d00163b69953912b99d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847882
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729810}
2020-01-09 18:19:37 +00:00
Matt Falkenhagen
cef0974514 documentation: Improve web_tests README files.
Incorporate information into the main documentation and link to them.

Change-Id: I16432d5454ab39a52fe5212cf38239717e4f132c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983691
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728455}
2020-01-06 05:43:38 +00:00
Tom Anderson
93e49e49ba Update relative links to Linux docs
This is a followup to [1].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1974901

TBR=sky

Change-Id: I442ffe121378607bdc5e1b16c081b8d66b138955
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980900
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727226}
2019-12-23 19:55:37 +00:00
Tom Anderson
9f5be07962 Move Linux documents to a subdir
There were 32 linux documents in docs. It's getting out of hand, so lets
move them to a subdirectory.

R=sky,jorgelo
CC=thestig
BUG=None

Change-Id: Ib7de415c72fe6ec3c51dc2b28f06b34487b5b6d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974901
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726499}
2019-12-19 20:54:32 +00:00
Philip Jägenstedt
f0cb86d77c Update documentation for how to disable WPT auto-import
The previously linked CL no longer applies, and can't be landed
directly or cherry-picked.

Bug: 1032951
Change-Id: Ib325c2c1f84fd17813421d32f1aa4174e496e973
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960349
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723940}
2019-12-11 20:12:52 +00:00
behdad
cf8139e23c Added docs for representative perf tests
. README added for representative perf tests.
. Update pixel-wrangling instructions to include looking at
  repr_perf_test results.
. Linked the pixel-wrangling doc to the representative perf test's for
  more detail.

Bug: chromium:1000837
Change-Id: Iefe03f7c722ccc9c8d72cf3e5ada7816e240d1cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937848
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Behdad Bakhshinategh <behdadb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720547}
2019-12-02 17:55:46 +00:00
Ryan Sleevi
e059091a72 Add a link to the Android emulator instructions for how to run.
Device Setup > Emulators is largely a pointer to
//docs/android_emulator.md, which has more setup instructions.
However, it also references the instructions for how to run,
but those don't appear until later in the document, and thus
is unclear when read in order. Add a link to the later
section, to make it clearer that it's discussed later in the
document.

Bug: none
Change-Id: I2b3fee4d973ab500bba942a016bcb52a299aab19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930140
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718231}
2019-11-22 19:23:51 +00:00
Yuke Liao
6e57a8a437 [code coverage] Update per-cl coverage documentation
To clarify that ChromeOS is now supported.

Change-Id: I2ef92ac00baad6407cedd39b8ba173f1c7a47845
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1910767
Reviewed-by: Sajjad Mirza <sajjadm@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714680}
2019-11-12 22:23:49 +00:00
Xianzhu Wang
15355b2104 web_tests/FlagSpecificConfig
It specifies the name of the flag-specific expectation file
under web_tests/FlagExpectations and the baseline directory under
web_tests/flag-specific, in the following format:

  {
    "name": "short-name",
    "args": ["--arg1", "--arg2"]
  }

When at least --additional-driver-flag=--arg1 and
--additional-driver-flag=--arg2 are in run_web_tests.py command line,
or --flag-specific=short-name is in the command line,
we will find web_tests/FlagExpectations/short-name for the additional
expectation file and web_tests/flag-specific/short-name for the
additional baseline directory.

Bug: 1019501
Change-Id: Idf0621abc89efc18cd17f9a9612074aa9d7de298
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894069
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712013}
2019-11-02 23:20:02 +00:00
Yang Guo
708d74b1d7 Use path to new location of devtools frontend
Bug: 1011259
Change-Id: I97cb5b2956e2f847a534356ab66bc5b02cac27e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1881552
Auto-Submit: Yang Guo <yangguo@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711166}
2019-10-31 08:06:08 +00:00
Xianzhu Wang
5d682c8cd8 Better support of real tests under virtual test suite
Now group previous multiple virtual test suites with the same
prefix and args together.

For example, previous configuration
  {
    "prefix": "composite-after-paint",
    "base": "compositing",
    "args": ["--enable-blink-features=CompositeAfterPaint"]
  }
  {
    "prefix": "composite-after-paint",
    "base": "paint",
    "args": ["--enable-blink-features=CompositeAfterPaint"]
  }
now becomes
  {
    "prefix": "composite-after-paint",
    "bases": ["compositing",
              "paint"],
    "args": ["--enable-blink-features=CompositeAfterPaint"]
  }

This shortens VirtualTestSuites by nearly half, avoids accidental
inconsistent args (We should create different virtual test suite
for different args), and allow "pure physical" virtual test suite
which is an alternative of physical test suite.

A "pure physical" virtual test suite has empty "bases", and the
"virtual/<prefix>" test path contains real tests only.

Normal vitual test suites can still contain real tests.

Bug: 1014162
Change-Id: I8d24be0e62b44ec8987aef65cb6f9ff0423b2d2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873504
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710210}
2019-10-29 05:08:19 +00:00
Yuke Liao
a085b98d20 [code coverage] Update per-cl coverage documentation
This CL updates per-cl coverage documentation with percentages.

Change-Id: Ib39834a06dfb03b48f4f3449223ebfce91c6a52a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876730
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709223}
2019-10-24 21:37:11 +00:00
Yuke Liao
8c0868fe61 [code coverage] Fix code coverage documentation
This CL fixes the code coverage documentation:
1. 'is_debug=false' gn arg is required.
2. Sandbox is working now.
3. Remove obsolete links.

Bug: 1012473
Change-Id: I178f42cd6879fbfaf464d344ee272268ee654ea3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1874486
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708351}
2019-10-22 21:02:33 +00:00
Oystein Eftevaag
0daba3430b Remove the nonperfetto_content_browsertests suite
The non-perfetto support is being removed starting with
https://chromium-review.googlesource.com/c/chromium/src/+/1816735
as Perfetto has been the default and stable for a couple of releases now.

R=dpranke@chromium.org

Bug: 839086
Change-Id: I3fd7b3fbec4af035eb6d0be29fdd4f2653ae493c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1822661
Commit-Queue: oysteine <oysteine@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700531}
2019-09-27 01:31:59 +00:00
Jonathan Ross
80846d48e8 Revert "linux: Enable Crashpad for content shell"
This reverts commit 9747ecdd3e.

Reason for revert: This is potentially crashing vulkan_blink_web_tests on Intel. 

A failure of one test in the following run, lead to a crash of the entire test suite: https://ci.chromium.org/p/chromium/builders/ci/Linux%20FYI%20SkiaRenderer%20Vulkan%20%28Intel%20HD%20630%29/1639

Original change's description:
> linux: Enable Crashpad for content shell
> 
> Bug: 942279
> Change-Id: I221431e352f11b40c3bc39bbcd8297b431dd8f0c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763346
> Commit-Queue: Joshua Peraza <jperaza@chromium.org>
> Reviewed-by: Peter Beverloo <peter@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#699880}

TBR=jperaza@chromium.org

Change-Id: I117aa67f345510a5eb9ae77ec60ea5122ac12b16
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 942279
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825920
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699972}
2019-09-25 21:52:43 +00:00
Joshua Peraza
9747ecdd3e linux: Enable Crashpad for content shell
Bug: 942279
Change-Id: I221431e352f11b40c3bc39bbcd8297b431dd8f0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763346
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699880}
2019-09-25 18:12:44 +00:00
Jeonghee Ahn
2cbb9cb865 Docs: Fixing broken links in web_tests.md
broken links.
- ... [Running Web Tests Using the Content Shell](web_tests_in_content_shell.md)
- ... [docs/web_tests_linux.md](./web_tests_linux.md).

Change-Id: I5dd681d21e2f6e340f0907581d67f1fbfcd647fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1817863
Reviewed-by: Victor Costan <pwnall@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698808}
2019-09-23 02:52:57 +00:00
Ben Pastene
b30c66e969 chromeos: Add a doc for debugging test failures on Chrome OS.
Add a link to that doc in Tast test failure log snippets.

Will make failure snippets look like:
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8904924613768986736/+/steps/chrome_all_tast_tests__with_patch__on_ChromeOS/0/logs/Deterministic_failure:_session.LogoutCleanup__status_FAILURE_/0

Bug: 923426
Change-Id: Id7d19fa94126a013763e6671cfc0cd8f6263c71b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1759234
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692275}
2019-08-30 23:25:10 +00:00
Yuke Liao
78aa43b208 [code coverage] Update per-cl coverage documentation
This CL updates the documentation for per-cl coverage.

Bug: 930364
Change-Id: Id22ee2f22bd8e170253af7d82b86fa7b9bd766d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1774907
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691677}
2019-08-29 16:58:17 +00:00
Lei Lei
75b4ff79d1 Add the high level doc about testing in Chromium.
Change-Id: I096f86553aa1c173c03f2e103a8c199db94d7d3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1711101
Reviewed-by: Caleb Rouleau <crouleau@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Lei Lei <leilei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689108}
2019-08-21 19:03:54 +00:00
Yuke Liao
03c644076d [code coverage] Update code coverage component references
The Monorail component for code coverage was renamed from:
Tools>CodeCoverage to Infra>Test>CodeCoverage, and this CL updates the
references.

Change-Id: I886422c5b8f839570ade415354fe2c122ee35ff7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1726371
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682373}
2019-07-30 18:33:40 +00:00
Yuke Liao
adeb4912b0 [code coverage] Add life_of_increasing_code_coverage.md
This CL adds documentation to guide how to use code coverage
information to improve tests.

Bug: 974379
Change-Id: I6526ea70f3e293c3aeac086097f8c90308b69515
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707248
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Yun Liu <yliuyliu@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#679704}
2019-07-22 21:08:24 +00:00
Robert Ma
0d0b664df7 [docs] Document how to debug WPT in content_shell
This should make the workflow of attaching devtools to content_shell to
debug WPT much clearer.

Change-Id: I86a071332c9e4405efbd4725c59d6f172201bc0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1709329
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Auto-Submit: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678786}
2019-07-18 19:12:00 +00:00
Eric Foo
31267c4dc8 OWNERS files updated with latest COMPONENT and TEAMS.
This is CL is generated by a script. Data is pulled from
review conducted in Q2 2019. See https://tinyurl.com/yxau5sc4
for context.

Please review and LGTM before July 16th or the CL will be
submitted as-is.

NOTRY=true

Bug: 977050
Change-Id: I1770239e09a71381d80f3893ce27096b81513056
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700822
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Auto-Submit: Eric Foo <efoo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#677831}
2019-07-16 17:02:33 +00:00
Staphany Park
4b66843ede Fix typo in testing documentation.
Change-Id: Ic0a245f29020ec2c2b8679ed56f285312312d126
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1696834
Commit-Queue: Victor Costan <pwnall@chromium.org>
Auto-Submit: Staphany Park <staphany@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676313}
2019-07-11 07:28:33 +00:00
Yuke Liao
04efa97ad6 [code coverage] Update doc references to clang_coverage recipe module
The clang_coverage recipe module was renamed to code_coverage in
https://chromium-review.googlesource.com/c/chromium/tools/build/+/1670914.
This CL updates the references at chromium/src side accordingly.

Bug: 977032
Change-Id: I2059b978cbc75d3f8621e7c14880ee6d40a92f85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1669984
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672657}
2019-06-26 21:14:07 +00:00
Yuke Liao
43bbbcd535 [code coverage] Update documentation for code coverage
This CL updates the documentation for code coverage.

TBR=jbudorick@chromium.org

Bug: 974379
Change-Id: If9abde5ce40793a7a4d265703fb695126d8f0e56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663371
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671397}
2019-06-21 19:34:50 +00:00
A Olsen
fdd20c8546 Addressing Lutz' comments in "Writing a JS unittest" doc.
A rendering of this doc (CSS styles may differ) is available internally
here:

https://g3doc.corp.google.com/experimental/users/olsen/g3doc/writing_js_unit_test.md?cl=240342366

Change-Id: I35ee7a81283b9adf7af3f20d20c2e91ecd80b71a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1655529
Commit-Queue: A Olsen <olsen@chromium.org>
Reviewed-by: Lutz Justen <ljusten@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669154}
2019-06-14 08:00:25 +00:00
A Olsen
8f1585c8f1 Added documentation for writing JS unit tests -
tests written in JS, for testing code written in JS.

Markdown is rendered here (in case gerrit doesn't render it):
https://g3doc.corp.google.com/experimental/users/olsen/g3doc/writing_js_unit_test.md?cl=240342366

Change-Id: I996e2fd559e9c637edbf22211c28bb3e54948bad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1648158
Commit-Queue: A Olsen <olsen@chromium.org>
Reviewed-by: Alexander Hendrich <hendrich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667065}
2019-06-07 09:51:14 +00:00
Luke Zielinski
64ff949844 Link to instructions for adding new testdriver API for WPT tests
Change-Id: I5f729822140f544717432aa0b45c56dfdf30b9ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636787
Commit-Queue: Luke Z <lpz@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664792}
2019-05-30 17:42:29 +00:00
Andrew Grieve
db31fb9af9 android_test_instructions.md: Minor edits & fix broken links.
Change-Id: I788538d4a9036dae160ff5e2cb5a5bd2a1ad068d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1622898
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662809}
2019-05-23 20:53:48 +00:00
Caleb Rouleau
caca09d33e [Test Results Format doc] Add shard as optional per-test field.
Bug: 960951
Change-Id: I869bc9c675f2f2e5e48d7fe3400735d5291eddbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614322
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Auto-Submit: Caleb Rouleau <crouleau@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660577}
2019-05-16 21:50:32 +00:00
Jochen Eisinger
b003ef45fa Add content_shell_crash_test to Android
- add support for resolving shared library deps on android
- add work around for missing local build id on android
- use devil.py to access the android device
- hook script up to swarming on android

Bug: 688737, 849904
Change-Id: I9ff2e3ae1fed279fef83a44b07c693c338b8ee13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1583715
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657138}
2019-05-07 06:10:03 +00:00
Lei Lei
8aa9db627d Move testing related docs into testing/ folder and update doc index.
This CL moves the following md files:
android_test_instructions.md
ipc_fuzzer.md
linux_running_asan_tests.md
test_descriptions.md
web_tests_linux.md

Change-Id: I88dd14f5c98b79a23f5607dbddd1e5b36eb41812
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1578589
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Lei Lei <leilei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#655750}
2019-05-01 21:08:01 +00:00
Robert Ma
c31beaebb6 Remove mentions of Travis in the wpt GitHub repo
Update docs & the comment posted by the exporter to avoid confusion.

Change-Id: I6eab5a9e88f61a99a50dd91d9d6ef3a39105db5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1589058
Auto-Submit: Robert Ma <robertma@chromium.org>
Reviewed-by: Luke Bj <lukebjerring@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#655220}
2019-04-30 14:46:46 +00:00
Rakib M. Hasan
7855a65c72 Remove test_name_prefix from the results_merge.py script
This field has been moved from the top level to the metadata field
in the JSON results. The field has also been removed from the JSON
results documentation.

Bug: None
Change-Id: I7da08bcaf71c48d52b49f9cc7595cf551ab94f3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565371
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Rakib Hasan <rmhasan@google.com>
Cr-Commit-Position: refs/heads/master@{#650159}
2019-04-12 01:29:56 +00:00
Rakib M. Hasan
5cfefc7995 Relands "Adds the metadata optional field to the standard JSON results"
This CL had to be reverted because GPU bots were failing because the
results_merger.py script could not handle the test_name_prefix field
that was still getting populated in the JSON results. This CL will
add the metadata field along side the test_name_prefix field in the
Optional fields list in the results_merger.py script. It also removes
the checking of test_name_prefix in the gpu unit tests because the
test_name_prefix field will be removed from the top level of the
results in a future CL.

Bug: chromium:698902
Change-Id: I4867e60ca5a97d426d5fd1a4de08e26c14d326ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559492
Commit-Queue: Rakib Hasan <rmhasan@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649665}
2019-04-10 21:51:51 +00:00
Stephen Martinis
67cb9c0e73 Document the 'flag_name' json test results field
Change-Id: Ic23a007188bcda0775e76633e72fc4f2047602b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539180
Reviewed-by: Aleks Totic <atotic@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Stephen Martinis <martiniss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649217}
2019-04-09 19:14:08 +00:00
Rakib Hasan
164b660fdd Revert "Adds the metadata optional field to the standard JSON results"
This reverts commit 7c7d23256a.

Reason for revert: We reverted the removal of the test_name_prefix
top level field in crrev.com/c/1558856. So for the JSON results to be properly
merged, we need to re-add the test_name_prefix field to the
results_merger.py script.

Original change's description:
> Adds the metadata optional field to the standard JSON results
>
> A test runner may have several pieces of metadata. Instead of putting all
> of them in the top level, they can be put in the metadata field. I
> also removed the test name prefix, tags and expectations files fields
> from the top level. These fields will be put in the metadata field.
>
> Bug: chromium:698902
> Change-Id: I97973e4aed4cb2fe3761e047e48ce455422d300e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552490
> Reviewed-by: Kenneth Russell <kbr@chromium.org>
> Reviewed-by: Stephen Martinis <martiniss@chromium.org>
> Commit-Queue: Rakib Hasan <rmhasan@google.com>
> Cr-Commit-Position: refs/heads/master@{#648900}

TBR=kbr@chromium.org,martiniss@chromium.org,rmhasan@google.com

Change-Id: Ic1ccc87851fb10540ac505789fd2d2a0be3ecb24
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:698902
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559246
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#648943}
2019-04-09 00:29:45 +00:00
Rakib M. Hasan
7c7d23256a Adds the metadata optional field to the standard JSON results
A test runner may have several pieces of metadata. Instead of putting all
of them in the top level, they can be put in the metadata field. I
also removed the test name prefix, tags and expectations files fields
from the top level. These fields will be put in the metadata field.

Bug: chromium:698902
Change-Id: I97973e4aed4cb2fe3761e047e48ce455422d300e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552490
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
Commit-Queue: Rakib Hasan <rmhasan@google.com>
Cr-Commit-Position: refs/heads/master@{#648900}
2019-04-08 22:31:08 +00:00
jonross
2618570e69 Non-headless Fuzzy Blink Web Tests
This is a split of a previous review: https://chromium-review.googlesource.com/c/chromium/src/+/1500784

There we discussed both the non-headless content_shell, as well as fuzzy pixel
diffs. However that review also had testing infrastructure changes which we are
blocked on landing.

This change pulls out the portion required for running SkiaRenderer and Vulkan
blink_web_tests. So that the team can run them locally.

content_shell defaults to a headless state when running the blink_web_tests.
Which forces Chrome to perform software rendering. There is currently no Swift
Shader equivalent for Vulkan. So we cannot use this for testing.

This change introduces a new Chrome switch "--disable-headless-mode" which
prevents the content_shell from triggering the headless state.

Actual GPU output introduces a variance from the baseline expectation files. So
this change also updates image_diff to have a new flag "--fuzzy-diff" which
allows it to have a tolerance in pixel differences. A corresponding
"--fuzzy-diff" flag has been added for blink_web_tests to be able to
trigger this.

I've also updated documentation of blink_web_tests based on findings
while writting this.

A follow up change will land tests on the Chromium GPU.FYI bots.

Bug: 925161
Change-Id: Ifd3837ec48a32bbdc776433e8c543138dde7418d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553280
Commit-Queue: Jonathan Ross <jonross@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#648767}
2019-04-08 18:54:10 +00:00
Rakib M. Hasan
92075cd635 Adds new optional fields to the JSON results merger script
These new fields can be useful for debugging regressions due to
invalid test expectations. It also updates the JSON results documentation
to include the new fields as well as the optional test_name_prefix field
which was added in a previous CL.

Bug: chromium:698902
Change-Id: Icc0edd59a2a3b585fb793a70355ee585cac28fad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546257
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Rakib Hasan <rmhasan@google.com>
Cr-Commit-Position: refs/heads/master@{#646000}
2019-03-29 23:27:39 +00:00
Xianzhu Wang
0a37e9d41f Document more topics about running/debugging Content Shell
- The protocol mode
- Running HTTP web tests in Content Shell
- Running WPT tests in Content Shell
- Debugging with --single-process
- Debugging web tests
- Some corrections

Change-Id: I1d23d0f8a75b9d597edab153e4ec0ea9cdb7cb67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541863
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645002}
2019-03-27 21:27:29 +00:00
Joshua Peraza
6f96b9d264 Add Android support to breakpad_integration_test.py and update docs
Bug: crashpad:30
Change-Id: Id8ecfacafb2ea69fc254157c0ea2c9600440693f
Reviewed-on: https://chromium-review.googlesource.com/c/1157685
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631268}
2019-02-12 16:55:14 +00:00
Darwin Huang
a8cd381885 Docs: Fixing some markdown docs issues
- Fixing broken links.
- Fixed spelling.

Bug: 896479
Change-Id: Id063538cbade42363eebf327afa0b6118123558f
Reviewed-on: https://chromium-review.googlesource.com/c/1401510
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621539}
2019-01-10 11:05:10 +00:00
Kent Tamura
59ffb020bd Update "LayoutTests" / "layout test" in docs/*.md.
This CL renames the following md files:
 - layout_tests_linux -> web_tests_linux.md
 - how_to_extend_layout_test_framework.md ->
   how_to_extend_web_test_framework.md
 - testing/layout_test_baseline_fallback.md ->
   testing/web_test_baseline_fallback.md
 - testing/layout_test_expectations.md -> testing/web_test_expectations.md
 - testing/layout_tests.md -> testing/web_tests.md
 - testing/layout_tests_in_content_shell.md ->
   testing/web_tests_in_content_shell.md
 - testing/layout_tests_tips.md -> testing/web_tests_tips.md
 - testing/layout_tests_with_manual_fallback.md ->
   testing/web_tests_with_manual_fallback.md
 - testing/writing_layout_tests -> testing/writing_web_tests.md

No-Try: true
Change-Id: Ied34815c92e449888b20818540a5ed0a76107bd1
Bug: 843412
Reviewed-on: https://chromium-review.googlesource.com/c/1350559
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611024}
2018-11-27 05:30:56 +00:00
kyle Ju
8f7d38df74 Correct the directory in the layout-test build instruction
Change-Id: I80c5bea68c43493acb0b6cb95b9263adf51f856a
Reviewed-on: https://chromium-review.googlesource.com/c/1351209
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610859}
2018-11-26 16:51:22 +00:00
Xianzhu Wang
4bbcebe042 [run_web_tests] Let reftest's text baseline use the common rule
Before crrev.com/c/1277654 when we created text results for ref tests
most of which don't need text baselines, we let reftest's text baseline
be optional, so that most reftests can ignore the text results, while
a few of them for which the text result is significant can still check
the text results.

After crrev.com/1277654, reftests no longer produce text results thus
don't need text baseline, unless a test explicitly produces text result.
In this case, we can just let the test determine if the text baseline
is needed, instead of run_web_tests.py checking existance of the
text baselines.

About existing reftests producing text results but without text
baselines:
1. for tests that don't actually need text results, modify them so that
   they no longer produce text results. This includes some tests
   previously calling testRunner.dumpAsTextWithPixelResults() just
   to dump pixel results.
2. for tests that produce meaningful text results, create text
   baselines.
3. for tests that don't produce text results intentionally, but the
   text results are created because of some console messages, etc.
   also create text baselines. There are several cases:
 a) the message shows the purpose of the test, e.g. intentionally
    testing with some invalid values. New text baselines are created
    in this CL.
 b) the message shows some problem of the test that doesn't need to
    fix for now, e.g. the test is using some deprecating API. New
    baselines are created in this CL.
 c) the message indicates some fatal bug in the test, e.g. using
    undefined variable, invalid JavaScript grammar, etc. The bugs are
    fixed in this CL.

Bug: 703899
Change-Id: I82a6b25c61d1fb794840fdaa0da248909a690592
Reviewed-on: https://chromium-review.googlesource.com/c/1298120
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604116}
2018-10-31 02:21:46 +00:00
Mason Freed
c41b2d0829 Enable display compositor pixel dumps by default.
SHERIFFS: PLEASE DO NOT REVERT THIS CL BECAUSE OF A SMALL AMOUNT OF LAYOUT
TEST FLAKINESS. If a few layout tests begin to show flakiness after this CL
lands, please add them to TestExpectations and email me (masonfreed@) to
investigate. Though I tried to identify all potentially flaky tests, a few
may have slipped through.

With this CL, the --enable-display-compositor-pixel-dump flag becomes the default
for content_shell. With this flag in place, layout test pixel dumps are performed
from the browser side, instead of from the renderer side. Note that to avoid a
significant amount of layout test flakiness, another change was also made to
not add the --run-all-compositor-stages-before-draw flag by default. There is
a bug (crbug.com/894613) tracking that problem separately.

With the flip of this switch, several modifications had to be made to the
TestExpectations file. First, there are a number of tests that change their
appearance slightly when being captured from the browser, and these tests need
to be rebaselined. These are summarized below, and will be rebaselined as a
separate CL, once this one lands and has had time to stabilize.

These bugs track the items added to TestExpectations:
 - crbug.com/887140: HDR support
 - crbug.com/881040: Media controls now contain an overflow menu.
 - crbug.com/667551: A bunch of tests are listed under this bug, and just
                     require rebaselining to fix non-material single-pixel
                     antialiasing failures.
 - crbug.com/891427: These either start failing, or become flaky, when the
                     --enable-display-compositor-pixel-dump flag is enabled.
                     They need to be debugged prior to re-enabling.
 - crbug.com/895556: These tests double their background size when the flag
                     is enabled. They need to be fixed or rebaselined.

Bug: 667551, 891427, 881040, 887140, 894613, 895556
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I46946e6377f659c9dedc0dfaa20e7658e8cc519d
Reviewed-on: https://chromium-review.googlesource.com/c/1213864
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603127}
2018-10-26 17:20:21 +00:00