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

Issue 2568573002: Additional unit test for audit.js: failure cases and logging examples. (Closed)

Created:
4 years ago by hongchan
Modified:
4 years ago
Reviewers:
Raymond Toy
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Additional unit test for audit.js: failure cases and logging examples. The unit test for audit.js only covers basic/successful cases. This CL is to add another unit test that tests failure cases with the expected text result. In the course of refining the failure output message, some editorial edits also have been made in audit.js. BUG=672988 TEST=LayoutTests/webaudio/unit-tests/audit-failures.html Committed: https://crrev.com/e373ad9f97f06bf8e44ead4ad51c0500bb98afee Cr-Commit-Position: refs/heads/master@{#439681}

Patch Set 1 : Initial patch #

Patch Set 2 : Adding expected result #

Total comments: 18

Patch Set 3 : Add another expected result #

Patch Set 4 : Addressing feedback #

Patch Set 5 : Addressing feedback 2 #

Patch Set 6 : Simplify containValues() algorithm and error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -56 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/resources/audit.js View 1 2 3 4 5 21 chunks +77 lines, -54 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-expected.txt View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures-expected.txt View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
hongchan
PTAL.
4 years ago (2016-12-09 21:30:42 UTC) #2
Raymond Toy
While you're at it, can you add the expected file for the tests that pass ...
4 years ago (2016-12-09 22:10:26 UTC) #5
hongchan
Can you take a look at this again? https://codereview.chromium.org/2568573002/diff/20001/third_party/WebKit/LayoutTests/webaudio/resources/audit.js File third_party/WebKit/LayoutTests/webaudio/resources/audit.js (right): https://codereview.chromium.org/2568573002/diff/20001/third_party/WebKit/LayoutTests/webaudio/resources/audit.js#newcode305 third_party/WebKit/LayoutTests/webaudio/resources/audit.js:305: failDetail ...
4 years ago (2016-12-19 22:14:06 UTC) #8
hongchan
PTAL at PS6. Now containValues() prints out the wrong value/index properly.
4 years ago (2016-12-20 00:15:00 UTC) #9
Raymond Toy
lgtm
4 years ago (2016-12-20 00:18:18 UTC) #10
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/2568573002/100001
4 years ago (2016-12-20 02:49:22 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-20 02:54:45 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-20 02:57:05 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e373ad9f97f06bf8e44ead4ad51c0500bb98afee
Cr-Commit-Position: refs/heads/master@{#439681}

Powered by Google App Engine
This is Rietveld 408576698