Fixing tests of internal test suite.

This commit is contained in:
Ruben Ayrapetyan
2014-11-06 17:39:24 +03:00
parent e33e6a77cb
commit 7c488ea11a
21 changed files with 50 additions and 25 deletions
@@ -15,5 +15,5 @@
var a = new Object();
var b = 123;
assert(a.isPrototypeOf(b));
assert(!a.isPrototypeOf(b));
@@ -15,4 +15,4 @@
var object = new Object();
var otherObject = new Object();
assert(otherObject.isPrototypeOf(object));
assert(!otherObject.isPrototypeOf(object));
@@ -13,4 +13,4 @@
// limitations under the License.
var object = new Object();
assert(object.isPrototypeOf(object));
assert(!object.isPrototypeOf(object));
@@ -14,4 +14,4 @@
var object = Object.create(null);
var temp = new Object();
assert(temp.isPrototypeOf(object));
assert(!temp.isPrototypeOf(object));
@@ -12,4 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
Object.prototype.isPrototypeOf.call(undefined, {});
try
{
Object.prototype.isPrototypeOf.call(undefined, {});
assert(false);
} catch (e)
{
assert (e instanceof TypeError);
}
@@ -23,4 +23,4 @@ var propertyDescriptor = {
Object.defineProperty(object, 'prop', propertyDescriptor);
assert(object.propertyIsEnumerable('prop'));
assert(!object.propertyIsEnumerable('prop'));