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

Unified Diff: test/mjsunit/double-equals.js

Issue 1421413002: Update to ES2015 == semantics for Symbol/SIMD wrappers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make ordering closer to other clauses Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/es6/symbols.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/double-equals.js
diff --git a/test/mjsunit/double-equals.js b/test/mjsunit/double-equals.js
index 5ebf92ca7bd4bb31df070555a59ad8b34953775e..40d9a76b48ca4c0701418b03cc986f2d8dacf3ec 100644
--- a/test/mjsunit/double-equals.js
+++ b/test/mjsunit/double-equals.js
@@ -25,6 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Flags: --harmony-simd
+
/**
* This test uses assert{True,False}(... == ...) instead of
* assertEquals(..., ...) to not rely on the details of the
@@ -234,3 +236,15 @@ function testBadConversion(value) {
testBadConversion(0);
testBadConversion("string");
testBadConversion(true);
+
+var s = Symbol();
+testEqual(s, s);
+testEqual(Object(s), s);
+testEqual(new Wrapper(s), s);
+testNotEqual(Object(s), Object(s));
+
+var simd = SIMD.Float32x4(1, 2, 3, 4);
+testEqual(simd, simd);
+testEqual(Object(simd), simd);
+testEqual(new Wrapper(simd), simd);
+testNotEqual(Object(simd), Object(simd));
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/es6/symbols.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698