From a821f01612dc518bc255a5bc5996c9c83706fc2f Mon Sep 17 00:00:00 2001 From: Artem Tabalin Date: Tue, 1 Nov 2016 23:44:18 +0100 Subject: [PATCH] Tests: Fix check of standard Promise availability --- tests/jsgrid.tests.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/jsgrid.tests.js b/tests/jsgrid.tests.js index 7ce8abfa..92e8f674 100755 --- a/tests/jsgrid.tests.js +++ b/tests/jsgrid.tests.js @@ -2679,8 +2679,9 @@ $(function() { }); asyncTest("should support JS promise success callback", 1, function() { - if(!Promise) { + if(typeof Promise === "undefined") { ok(true, "Promise not supported"); + start(); return; } @@ -2708,8 +2709,9 @@ $(function() { }); asyncTest("should support JS promise fail callback", 1, function() { - if(!Promise) { + if(typeof Promise === "undefined") { ok(true, "Promise not supported"); + start(); return; }