Commit 20b49a5e authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Delete Array#remove test case that got ported to unit test

The same functionality is already tested here:

https://source.chromium.org/chromium/chromium/src/+/a15fa1cd393dd9672d412a08cb7397ff06714f8a:third_party/devtools-frontend/src/test/unittests/front_end/platform/utilities.ts;l=36

So the layout test version can safely be removed.

R=petermarshall@chromium.org

Bug: chromium:1050549
Change-Id: Ibb1f95bf77255f0d55d89d6d6a80343e988daf02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095065
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: default avatarPeter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748209}
parent cd0aa150
This test checks Web Inspector utilities. This test checks Web Inspector utilities.
Running: remove
Running: orderedMergeIntersect Running: orderedMergeIntersect
Running: binaryIndexOfTest Running: binaryIndexOfTest
......
...@@ -8,24 +8,6 @@ ...@@ -8,24 +8,6 @@
TestRunner.runTestSuite([ TestRunner.runTestSuite([
function remove(next) {
var testArrays = [
[], [], [], [1], [1], [1], [1, 2, 3, 4, 5, 4, 3, 2, 1], [1, 3, 4, 5, 4, 3, 2, 1], [1, 3, 4, 5, 4, 3, 1],
[2, 2, 2, 2, 2], [2, 2, 2, 2], [], [2, 2, 2, 1, 2, 2, 3, 2], [2, 2, 1, 2, 2, 3, 2], [1, 3]
];
for (var i = 0; i < testArrays.length; i += 3) {
var actual = testArrays[i].slice(0);
var expected = testArrays[i + 1];
actual.remove(2, true);
TestRunner.assertEquals(JSON.stringify(expected), JSON.stringify(actual), 'remove(2, true) passed');
actual = testArrays[i].slice(0);
expected = testArrays[i + 2];
actual.remove(2, false);
TestRunner.assertEquals(JSON.stringify(expected), JSON.stringify(actual), 'remove(2, false) passed');
}
next();
},
function orderedMergeIntersect(next) { function orderedMergeIntersect(next) {
function comparator(a, b) { function comparator(a, b) {
return a - b; return a - b;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment