This came up in https://codereview.chromium.org/2595153002/#msg8 Perhaps this could be made a bit more general with should().notBeConstantValueOf(x)?
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/48de3222c0b6a9cf23aa2e18184ef72cf736023a commit 48de3222c0b6a9cf23aa2e18184ef72cf736023a Author: hongchan <hongchan@chromium.org> Date: Fri Jan 06 23:30:11 2017 Implement should().notBeConstantValueOf(x) This CL adds the new assertion to audit; it checks if an array has values other than the expected value. This is useful when checking the non-zero array. BUG= 678695 TEST= LayoutTests/webaudio/unit-tests/audit.html LayoutTests/webaudio/unit-tests/audit-failures.html Review-Url: https://codereview.chromium.org/2618053002 Cr-Commit-Position: refs/heads/master@{#442095} [modify] https://crrev.com/48de3222c0b6a9cf23aa2e18184ef72cf736023a/third_party/WebKit/LayoutTests/webaudio/resources/audit.js [modify] https://crrev.com/48de3222c0b6a9cf23aa2e18184ef72cf736023a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-expected.txt [modify] https://crrev.com/48de3222c0b6a9cf23aa2e18184ef72cf736023a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures-expected.txt [modify] https://crrev.com/48de3222c0b6a9cf23aa2e18184ef72cf736023a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html [modify] https://crrev.com/48de3222c0b6a9cf23aa2e18184ef72cf736023a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
Comment 1 by hongchan@chromium.org
, Jan 6 2017Owner: hongchan@chromium.org
Status: Started (was: Available)