Commit 2c661e44 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[test] Remove obsolete TODO in object-is.js test.

R=jkummerow@chromium.org
TEST=mjsunit/object-is

Change-Id: Ic933c71d8d7baa252644a69cd7816a8fc0ac85ab
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914206Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64937}
parent 6dad771a
......@@ -25,23 +25,15 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Test both the Harmony egal operator and it's function equivalent.
function TestEgal(expected, x, y) {
// TODO(mstarzinger): Once we have the egal operator, we can test it here.
assertSame(expected, Object.is(x, y));
}
var test_set = [ {}, [], Infinity, -Infinity, "s", "ア", 0, 0/-1, null,
undefined, true, false, Symbol("foo"), NaN ];
for (var i = 0; i < test_set.length; i++) {
for (var j = 0; j < test_set.length; j++) {
if (i == j) {
assertSame(test_set[i], test_set[j]);
TestEgal(true, test_set[i], test_set[j]);
assertTrue(Object.is(test_set[i], test_set[j]));
} else {
TestEgal(false, test_set[i], test_set[j]);
TestEgal(false, test_set[j], test_set[i]);
assertFalse(Object.is(test_set[i], test_set[j]));
}
}
}
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