[Pkg-javascript-commits] [sockjs-client] 394/434: #57 - don't test onunload in opera

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


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

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

commit 6410982a4fc2a861f4a3d77687d69fd5f8e79a06
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Fri Apr 20 13:26:02 2012 +0100

    #57 - don't test onunload in opera
---
 tests/html/src/domtests.coffee | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/tests/html/src/domtests.coffee b/tests/html/src/domtests.coffee
index bfbe802..0043cce 100644
--- a/tests/html/src/domtests.coffee
+++ b/tests/html/src/domtests.coffee
@@ -28,7 +28,7 @@ onunload_test_factory = (code) ->
             hook.del()
             start()
 
-if navigator.userAgent.indexOf('Konqueror') isnt -1
+if navigator.userAgent.indexOf('Konqueror') isnt -1 or navigator.userAgent.indexOf('Opera') isnt -1
     test "onunload [unsupported by client]", ->
         ok(true)
 else
@@ -48,20 +48,6 @@ else
                     u.attachEvent('unload', run);
                 """))
 
-# if navigator.userAgent.indexOf('Konqueror') isnt -1 or $.browser.opera
-#     test "onbeforeunload [unsupported by client]", ->
-#         ok(true)
-# else
-#     asyncTest('onbeforeunload', onunload_test_factory("""
-#                     var u = SockJS.getUtils();
-#                     u.attachEvent('load', function(){
-#                         hook.load();
-#                     });
-#                     u.attachEvent('beforeunload', function(){
-#                         hook.unload();
-#                     });
-#                 """))
-
 if not SockJS.getIframeTransport().enabled()
     test "onmessage [unsupported by client]", ->
         ok(true)

-- 
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