[Pkg-javascript-commits] [sockjs-client] 329/434: Disable onbeforeunload test - it's not used any more.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:22 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 6f79eb4bbc79f30abbb4071f66f46c763e4c7033
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Wed Jan 18 14:41:49 2012 +0000

    Disable onbeforeunload test - it's not used any more.
---
 tests/html/src/domtests.coffee | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/tests/html/src/domtests.coffee b/tests/html/src/domtests.coffee
index 5dce96b..c1ceac1 100644
--- a/tests/html/src/domtests.coffee
+++ b/tests/html/src/domtests.coffee
@@ -42,19 +42,19 @@ else
                     });
                 """))
 
-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 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]", ->

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