diff options
Diffstat (limited to 'test/built-ins/Object/is')
-rw-r--r-- | test/built-ins/Object/is/name.js | 1 | ||||
-rw-r--r-- | test/built-ins/Object/is/not-same-value-x-y-null.js | 1 | ||||
-rw-r--r-- | test/built-ins/Object/is/not-same-value-x-y-object.js | 24 | ||||
-rw-r--r-- | test/built-ins/Object/is/not-same-value-x-y-string.js | 6 | ||||
-rw-r--r-- | test/built-ins/Object/is/not-same-value-x-y-symbol.js | 12 | ||||
-rw-r--r-- | test/built-ins/Object/is/not-same-value-x-y-type.js | 31 | ||||
-rw-r--r-- | test/built-ins/Object/is/same-value-x-y-null.js | 1 | ||||
-rw-r--r-- | test/built-ins/Object/is/same-value-x-y-string.js | 12 | ||||
-rw-r--r-- | test/built-ins/Object/is/symbol-object-is-same-value.js | 2 |
9 files changed, 48 insertions, 42 deletions
diff --git a/test/built-ins/Object/is/name.js b/test/built-ins/Object/is/name.js index 1f20bd106..da73e1a4b 100644 --- a/test/built-ins/Object/is/name.js +++ b/test/built-ins/Object/is/name.js @@ -15,3 +15,4 @@ assert.sameValue(Object.is.name, 'is', "The value of `Object.is.name` is `'is'`" verifyNotEnumerable(Object.is, "name"); verifyNotWritable(Object.is, "name"); verifyConfigurable(Object.is, "name"); + diff --git a/test/built-ins/Object/is/not-same-value-x-y-null.js b/test/built-ins/Object/is/not-same-value-x-y-null.js index afeb1bf3d..c364bc11b 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-null.js +++ b/test/built-ins/Object/is/not-same-value-x-y-null.js @@ -17,3 +17,4 @@ description: > assert.sameValue(Object.is(null), false, "`Object.is(null)` returns `false`"); assert.sameValue(Object.is(null, undefined), false, "`Object.is(null, undefined)` returns `false`"); + diff --git a/test/built-ins/Object/is/not-same-value-x-y-object.js b/test/built-ins/Object/is/not-same-value-x-y-object.js index b10ec42c2..7ec854c37 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-object.js +++ b/test/built-ins/Object/is/not-same-value-x-y-object.js @@ -11,22 +11,22 @@ description: > assert.sameValue(Object.is({}, {}), false, "`Object.is({}, {})` returns `false`"); assert.sameValue( - Object.is(Object(), Object()), - false, - "`Object.is(Object(), Object())` returns `false`" + Object.is(Object(), Object()), + false, + "`Object.is(Object(), Object())` returns `false`" ); assert.sameValue( - Object.is(new Object(), new Object()), - false, - "`Object.is(new Object(), new Object())` returns `false`" + Object.is(new Object(), new Object()), + false, + "`Object.is(new Object(), new Object())` returns `false`" ); assert.sameValue( - Object.is(Object(0), Object(0)), - false, - "`Object.is(Object(0), Object(0))` returns `false`" + Object.is(Object(0), Object(0)), + false, + "`Object.is(Object(0), Object(0))` returns `false`" ); assert.sameValue( - Object.is(new Object(''), new Object('')), - false, - "`Object.is(new Object(''), new Object(''))` returns `false`" + Object.is(new Object(''), new Object('')), + false, + "`Object.is(new Object(''), new Object(''))` returns `false`" ); diff --git a/test/built-ins/Object/is/not-same-value-x-y-string.js b/test/built-ins/Object/is/not-same-value-x-y-string.js index f7c9f4b8a..6def9622d 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-string.js +++ b/test/built-ins/Object/is/not-same-value-x-y-string.js @@ -19,9 +19,9 @@ assert.sameValue(Object.is('', true), false, "`Object.is('', true)` returns `fal assert.sameValue(Object.is('', 0), false, "`Object.is('', 0)` returns `false`"); assert.sameValue(Object.is('', {}), false, "`Object.is('', {})` returns `false`"); assert.sameValue( - Object.is('', undefined), - false, - "`Object.is('', undefined)` returns `false`" + Object.is('', undefined), + false, + "`Object.is('', undefined)` returns `false`" ); assert.sameValue(Object.is('', null), false, "`Object.is('', null)` returns `false`"); assert.sameValue(Object.is('', NaN), false, "`Object.is('', NaN)` returns `false`"); diff --git a/test/built-ins/Object/is/not-same-value-x-y-symbol.js b/test/built-ins/Object/is/not-same-value-x-y-symbol.js index b564172ac..28ccc0a78 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-symbol.js +++ b/test/built-ins/Object/is/not-same-value-x-y-symbol.js @@ -14,12 +14,12 @@ features: [Symbol] ---*/ assert.sameValue( - Object.is(Symbol(), Symbol()), - false, - "`Object.is(Symbol(), Symbol())` returns `false`" + Object.is(Symbol(), Symbol()), + false, + "`Object.is(Symbol(), Symbol())` returns `false`" ); assert.sameValue( - Object.is(Symbol('description'), Symbol('description')), - false, - "`Object.is(Symbol('description'), Symbol('description'))` returns `false`" + Object.is(Symbol('description'), Symbol('description')), + false, + "`Object.is(Symbol('description'), Symbol('description'))` returns `false`" ); diff --git a/test/built-ins/Object/is/not-same-value-x-y-type.js b/test/built-ins/Object/is/not-same-value-x-y-type.js index 0f6ff22b4..203f6d061 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-type.js +++ b/test/built-ins/Object/is/not-same-value-x-y-type.js @@ -19,27 +19,27 @@ assert.sameValue(Object.is(a, true), false, "`Object.is(a, true)` returns `false assert.sameValue(Object.is(a, ''), false, "`Object.is(a, '')` returns `false`"); assert.sameValue(Object.is(a, 0), false, "`Object.is(a, 0)` returns `false`"); assert.sameValue( - Object.is(a, undefined), - false, - "`Object.is(a, undefined)` returns `false`" + Object.is(a, undefined), + false, + "`Object.is(a, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, true), false, "`Object.is(NaN, true)` returns `false`"); assert.sameValue(Object.is(NaN, ''), false, "`Object.is(NaN, '')` returns `false`"); assert.sameValue(Object.is(NaN, a), false, "`Object.is(NaN, a)` returns `false`"); assert.sameValue( - Object.is(NaN, undefined), - false, - "`Object.is(NaN, undefined)` returns `false`" + Object.is(NaN, undefined), + false, + "`Object.is(NaN, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, null), false, "`Object.is(NaN, null)` returns `false`"); assert.sameValue(Object.is(true, 0), false, "`Object.is(true, 0)` returns `false`"); assert.sameValue(Object.is(true, a), false, "`Object.is(true, a)` returns `false`"); assert.sameValue( - Object.is(true, undefined), - false, - "`Object.is(true, undefined)` returns `false`" + Object.is(true, undefined), + false, + "`Object.is(true, undefined)` returns `false`" ); assert.sameValue(Object.is(true, null), false, "`Object.is(true, null)` returns `false`"); assert.sameValue(Object.is(true, NaN), false, "`Object.is(true, NaN)` returns `false`"); @@ -48,9 +48,9 @@ assert.sameValue(Object.is(true, ''), false, "`Object.is(true, '')` returns `fal assert.sameValue(Object.is(false, 0), false, "`Object.is(false, 0)` returns `false`"); assert.sameValue(Object.is(false, a), false, "`Object.is(false, a)` returns `false`"); assert.sameValue( - Object.is(false, undefined), - false, - "`Object.is(false, undefined)` returns `false`" + Object.is(false, undefined), + false, + "`Object.is(false, undefined)` returns `false`" ); assert.sameValue(Object.is(false, null), false, "`Object.is(false, null)` returns `false`"); assert.sameValue(Object.is(false, NaN), false, "`Object.is(false, NaN)` returns `false`"); @@ -59,10 +59,11 @@ assert.sameValue(Object.is(false, ''), false, "`Object.is(false, '')` returns `f assert.sameValue(Object.is(0, true), false, "`Object.is(0, true)` returns `false`"); assert.sameValue(Object.is(0, a), false, "`Object.is(0, a)` returns `false`"); assert.sameValue( - Object.is(0, undefined), - false, - "`Object.is(0, undefined)` returns `false`" + Object.is(0, undefined), + false, + "`Object.is(0, undefined)` returns `false`" ); assert.sameValue(Object.is(0, null), false, "`Object.is(0, null)` returns `false`"); assert.sameValue(Object.is(0, NaN), false, "`Object.is(0, NaN)` returns `false`"); assert.sameValue(Object.is(0, ''), false, "`Object.is(0, '')` returns `false`"); + diff --git a/test/built-ins/Object/is/same-value-x-y-null.js b/test/built-ins/Object/is/same-value-x-y-null.js index f99164239..cd770d098 100644 --- a/test/built-ins/Object/is/same-value-x-y-null.js +++ b/test/built-ins/Object/is/same-value-x-y-null.js @@ -16,3 +16,4 @@ description: > ---*/ assert.sameValue(Object.is(null, null), true, "`Object.is(null, null)` returns `true`"); + diff --git a/test/built-ins/Object/is/same-value-x-y-string.js b/test/built-ins/Object/is/same-value-x-y-string.js index cc2ddf11e..e7a7ec3f9 100644 --- a/test/built-ins/Object/is/same-value-x-y-string.js +++ b/test/built-ins/Object/is/same-value-x-y-string.js @@ -17,12 +17,12 @@ description: > assert.sameValue(Object.is('', ''), true, "`Object.is('', '')` returns `true`"); assert.sameValue( - Object.is('foo', 'foo'), - true, - "`Object.is('foo', 'foo')` returns `true`" + Object.is('foo', 'foo'), + true, + "`Object.is('foo', 'foo')` returns `true`" ); assert.sameValue( - Object.is(String('foo'), String('foo')), - true, - "`Object.is(String('foo'), String('foo'))` returns `true`" + Object.is(String('foo'), String('foo')), + true, + "`Object.is(String('foo'), String('foo'))` returns `true`" ); diff --git a/test/built-ins/Object/is/symbol-object-is-same-value.js b/test/built-ins/Object/is/symbol-object-is-same-value.js index 4e70febdb..4a58a0927 100644 --- a/test/built-ins/Object/is/symbol-object-is-same-value.js +++ b/test/built-ins/Object/is/symbol-object-is-same-value.js @@ -13,3 +13,5 @@ var symB = Symbol('66'); assert.sameValue(Object.is(symA, symA), true, "`Object.is(symA, symA)` returns `true`"); assert.sameValue(Object.is(symB, symB), true, "`Object.is(symB, symB)` returns `true`"); assert.sameValue(Object.is(symA, symB), false, "`Object.is(symA, symB)` returns `false`"); + + |