+ This page tests a fix that will abort requests on abort so that Internet Explorer
+ does not keep connections alive.
+
+
+ In this situation, no callback should be triggered.
+
+
Take the following steps:
+
+
+ open the console,
+
+
+ set it to persistent mode if available,
+
+
+ click this
+
+ to make a request and trigger the beforeunload event,
+
+
+ then either:
+
+
+ wait for the request to complete then cancel unload,
+
+
+ fire unload (you have 10 seconds to do so).
+
+
+
+
+
+ Test passes if:
+
+
+ you get a "success" logged,
+
+
+ you get no "error" log and no alert.
+
+
+
+
+
\ No newline at end of file
diff --git a/test/delegatetest.html b/test/delegatetest.html
index 169e60f7..7d891b95 100644
--- a/test/delegatetest.html
+++ b/test/delegatetest.html
@@ -182,16 +182,16 @@
BUTTON
DOCUMENT
-
-
+
+
Mouseleave Tests
-
Count mouse leave event
-
-
mouse over here should not trigger the counter.
-
-
0
+
Count mouse leave event
+
+
mouse over here should not trigger the counter.
+
+
0
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 56c398e5..cd8d7777 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -6,7 +6,7 @@ var functionReturningObj = function(value) { return (function() { return value;
test("jQuery.attrFix/jQuery.propFix integrity test", function() {
expect(2);
-
+
// This must be maintained and equal jQuery.attrFix when appropriate
// Ensure that accidental or erroneous property
// overwrites don't occur
@@ -57,7 +57,7 @@ test("attr(String)", function() {
equals( jQuery("").attr("value"), "t", "Check setting custom attr named 'value' on a div" );
equals( jQuery("#form").attr("blah", "blah").attr("blah"), "blah", "Set non-existant attribute on a form" );
equals( jQuery("#foo").attr("height"), undefined, "Non existent height attribute should return undefined" );
-
+
// [7472] & [3113] (form contains an input with name="action" or name="id")
var extras = jQuery("").appendTo("#testForm");
equals( jQuery("#form").attr("action","newformaction").attr("action"), "newformaction", "Check that action attribute was changed" );
@@ -67,7 +67,7 @@ test("attr(String)", function() {
// Bug #3685 (form contains input with name="name")
equals( jQuery("#testForm").attr("name"), undefined, "Retrieving name does not retrieve input with name=name" );
extras.remove();
-
+
equals( jQuery("#text1").attr("maxlength"), "30", "Check for maxlength attribute" );
equals( jQuery("#text1").attr("maxLength"), "30", "Check for maxLength attribute" );
equals( jQuery("#area1").attr("maxLength"), "30", "Check for maxLength attribute" );
@@ -248,7 +248,7 @@ test("attr(String, Object)", function() {
commentNode = document.createComment("some comment"),
textNode = document.createTextNode("some text"),
obj = {};
-
+
jQuery.each( [commentNode, textNode, attributeNode], function( i, elem ) {
var $elem = jQuery( elem );
$elem.attr( "nonexisting", "foo" );
@@ -288,7 +288,7 @@ test("attr(String, Object)", function() {
j.removeAttr("name");
QUnit.reset();
-
+
// Type
var type = jQuery("#check2").attr("type");
var thrown = false;
@@ -450,7 +450,7 @@ test("removeAttr(String)", function() {
equals( jQuery("#foo").attr("style", "position:absolute;").removeAttr("style").attr("style"), undefined, "Check removing style attribute" );
equals( jQuery("#form").attr("style", "position:absolute;").removeAttr("style").attr("style"), undefined, "Check removing style attribute on a form" );
equals( jQuery("#fx-test-group").attr("height", "3px").removeAttr("height").css("height"), "1px", "Removing height attribute has no effect on height set with style attribute" );
-
+
jQuery("#check1").removeAttr("checked").prop("checked", true).removeAttr("checked");
equals( document.getElementById("check1").checked, false, "removeAttr sets boolean properties to false" );
jQuery("#text1").prop("readOnly", true).removeAttr("readonly");
@@ -607,11 +607,11 @@ test("val()", function() {
var $button = jQuery("").insertAfter("#button");
equals( $button.val(), "foobar", "Value retrieval on a button does not return innerHTML" );
equals( $button.val("baz").html(), "text", "Setting the value does not change innerHTML" );
-
+
equals( jQuery("").val("test").attr("value"), "test", "Setting value sets the value attribute" );
});
-if ( "value" in document.createElement("meter") &&
+if ( "value" in document.createElement("meter") &&
"value" in document.createElement("progress") ) {
test("val() respects numbers without exception (Bug #9319)", function() {
@@ -758,7 +758,7 @@ test("val(select) after form.reset() (Bug #2551)", function() {
same( jQuery("#select3").val(), ["1", "2"], "Call val() on a multiple=\"multiple\" select" );
jQuery("#kk").remove();
-});
+});
var testAddClass = function(valueObj) {
expect(5);
@@ -802,7 +802,7 @@ test("addClass(Function) with incoming value", function() {
var div = jQuery("div"), old = div.map(function(){
return jQuery(this).attr("class") || "";
});
-
+
div.addClass(function(i, val) {
if ( this.id !== "_firebugConsole") {
equals( val, old[i], "Make sure the incoming value is correct." );