[Pkg-javascript-commits] [sockjs-client] 08/22: #97 - okay, instanceof should be working in ie

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit d0bc7ec4a6be693ad1a86b7cf10cc45372572e75
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Sat Dec 29 04:53:08 2012 +0000

    #97 - okay, instanceof should be working in ie
---
 tests/html/src/unittests.coffee | 27 ++++++++-------------------
 1 file changed, 8 insertions(+), 19 deletions(-)

diff --git a/tests/html/src/unittests.coffee b/tests/html/src/unittests.coffee
index 53376ff..7202099 100644
--- a/tests/html/src/unittests.coffee
+++ b/tests/html/src/unittests.coffee
@@ -239,22 +239,11 @@ test "EventEmitter", ->
     r.close()
 
 
-instanceof_working = false
-try
-    obj = {}
-    instanceof_working = obj instanceof Object
-catch x
-    #pass
-
-if not instanceof_working
-    test "[NoConstructor unsupported by client]", ->
-        log('NoConstructor unsupported by client')
-else
-    test "NoConstructor", ->
-        expect(2)
-        r = new SockJS('//1.2.3.4/blah', null, {protocols_whitelist: []})
-        ok(r instanceof SockJS)
-        r.close()
-        r = SockJS('//1.2.3.4/blah', null, {protocols_whitelist: []})
-        ok(r instanceof SockJS)
-        r.close()
+test "NoConstructor", ->
+    expect(2)
+    r = new SockJS('//1.2.3.4/blah', null, {protocols_whitelist: []})
+    ok(r instanceof SockJS)
+    r.close()
+    r = SockJS('//1.2.3.4/blah', null, {protocols_whitelist: []})
+    ok(r instanceof SockJS)
+    r.close()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list