Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ee931ed
Include distribution in release tag
timmywil Feb 12, 2014
13e9cde
Include distribution in release tag
timmywil Feb 12, 2014
9b20df0
Include distribution in release tag
timmywil Feb 12, 2014
dbce0ce
Include distribution in release tag
timmywil Feb 12, 2014
2888cae
Include distribution in release tag
timmywil Feb 12, 2014
17eeebb
Include distribution in release tag
timmywil Feb 12, 2014
af543e2
🔒️ fix CVE-2015-9251
ctcpip Dec 11, 2023
eb69988
🔒️ fix CVE-2012-6708
ctcpip Dec 11, 2023
ab024c1
🔒️ fix CVE-2019-11358
ctcpip Dec 11, 2023
a92926c
🔒️ fix CVE-2020-11022
ctcpip Dec 11, 2023
e5a5d49
🔒️ fix CVE-2020-11023
ctcpip Dec 11, 2023
9048c5a
🔒️ fix CVE-2020-7656
ctcpip Dec 11, 2023
ac067d7
fix support reference
ctcpip Dec 15, 2023
fe5ca13
fix script regex
ctcpip Dec 15, 2023
08ffd65
test fixes
ctcpip Dec 18, 2023
c70c7ba
🔒️ fix CVE-2011-4969
ctcpip Dec 20, 2023
8bdec18
🔒️ fix CVE-2012-6708
ctcpip Dec 20, 2023
654d925
🔒️ fix CVE-2019-11358
ctcpip Dec 21, 2023
ae1140f
🔒️ fix CVE-2020-11022
ctcpip Dec 21, 2023
8158bf0
🔒️ fix CVE-2020-7656
ctcpip Feb 10, 2024
6767dbc
🔒️ fix CVE-2020-11023
ctcpip Feb 10, 2024
8f1483b
💚 commit built jquery from latest
ctcpip Feb 15, 2024
f400223
Merge branch '1.2.7-sec' into 1.3.3-sec
ctcpip Feb 15, 2024
5affbad
Merge branch '1.3.3-sec' into 1.4.5-sec
ctcpip Feb 15, 2024
d0fef0a
✅ fix tests
ctcpip Feb 15, 2024
634d27d
🔒️ fix CVE-2015-9251
ctcpip Feb 16, 2024
fa65c2b
♻️ update old node code, prevent jslint exception
ctcpip Feb 16, 2024
6446298
Merge branch '1.4.5-sec' into 1.5.3-sec
ctcpip Feb 16, 2024
3877721
Merge branch '1.5.3-sec' into 1.6.5-sec
ctcpip Feb 16, 2024
d412a7b
Merge branch '1.6.5-sec' into 1.7.3-sec
ctcpip Feb 16, 2024
2d4663e
🚑️ Grunty McGruntface
ctcpip Feb 17, 2024
acf0b3b
Merge branch '1.7.3-sec' into 1.8.4-sec
ctcpip Feb 17, 2024
e630ae7
🐛 fix rquickExpr and update test
ctcpip Feb 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test fixes
  • Loading branch information
ctcpip committed Dec 18, 2023
commit 08ffd65957e8e31f3f2108e1e02b32be4e85a84f
94 changes: 55 additions & 39 deletions test/unit/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,52 +70,68 @@ test("jQuery.ajax() - success callbacks - (url, options) syntax", function() {
}, 13);
});

ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) {
return {
create: function( options ) {
options.crossDomain = true;
return jQuery.ajax( url( "data/script.php?header=ecma" ), options );
},
success: function() {
assert.ok( true, "success" );
},
complete: function() {
assert.ok( true, "complete" );
}
};
} );
test( "jQuery.ajax() - do not execute js (crossOrigin) 1", 2, function() {

ajaxTest( "jQuery.ajax() - execute js for crossOrigin when dataType option is provided", 3,
function( assert ) {
return {
create: function( options ) {
options.crossDomain = true;
options.dataType = "script";
return jQuery.ajax( url( "data/script.php?header=ecma" ), options );
jQuery.ajaxSetup({ timeout: 0 });

stop();

setTimeout(function(){
jQuery.ajax({
url: url( "data/script.php?header=ecma" ),
crossDomain: true,
success: function() {
ok( true, "success" );
},
complete: function() {
ok( true, "complete" );
start();
}
});
}, 13);
} );

test( "jQuery.ajax() - execute js for crossOrigin when dataType option is provided", 3, function() {

jQuery.ajaxSetup({ timeout: 0 });

stop();

setTimeout(function(){
jQuery.ajax({
url: url( "data/script.php?header=ecma" ),
crossDomain: true,
dataType: "script",
success: function() {
assert.ok( true, "success" );
ok( true, "success" );
},
complete: function() {
assert.ok( true, "complete" );
ok( true, "complete" );
start();
}
};
}
);
});
}, 13);
} );

ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) {
return {
create: function( options ) {
options.crossDomain = true;
return jQuery.ajax( url( "data/script.php" ), options );
},
success: function() {
assert.ok( true, "success" );
},
complete: function() {
assert.ok( true, "complete" );
}
};
test( "jQuery.ajax() - do not execute js (crossOrigin) 2", 2, function() {

jQuery.ajaxSetup({ timeout: 0 });

stop();

setTimeout(function(){
jQuery.ajax({
url: url( "data/script.php" ),
crossDomain: true,
success: function() {
ok( true, "success" );
},
complete: function() {
ok( true, "complete" );
start();
}
});
}, 13);
} );

test("jQuery.ajax() - success callbacks (late binding)", function() {
Expand Down
8 changes: 4 additions & 4 deletions test/unit/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test("Basic requirements", function() {
});

test("jQuery()", function() {
expect(29);
expect(25);

// Basic constructor's behavior

Expand Down Expand Up @@ -56,7 +56,7 @@ test("jQuery()", function() {
var img = jQuery("<img/>");
equals( img.length, 1, "Correct number of elements generated for img" );
equals( img.parent().length, 0, "Make sure that the generated HTML has no parent." );
var div = jQuery("<div/><hr/><code/><b/>");
var div = jQuery("<div></div><hr><code></code><b></b>");
equals( div.length, 4, "Correct number of elements generated for div hr code b" );
equals( div.parent().length, 0, "Make sure that the generated HTML has no parent." );

Expand Down Expand Up @@ -855,10 +855,10 @@ test("jQuery.extend(Object, Object)", function() {
});

QUnit.test( "jQuery.extend( true, ... ) Object.prototype pollution", function( assert ) {
assert.expect( 1 );
expect( 1 );

jQuery.extend( true, {}, JSON.parse( "{\"__proto__\": {\"devMode\": true}}" ) );
assert.ok( !( "devMode" in {} ), "Object.prototype not polluted" );
ok( !( "devMode" in {} ), "Object.prototype not polluted" );
} );

test("jQuery.each(Object,Function)", function() {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test("css(String|Hash)", function() {
equals( div.css("width"), "4px", "Width on disconnected node." );
equals( div.css("height"), "4px", "Height on disconnected node." );

var div2 = jQuery( "<div style='display:none;'><input type='text' style='height:20px;'/><textarea style='height:20px;'/><div style='height:20px;'></div></div>").appendTo("body");
var div2 = jQuery( "<div style='display:none;'><input type='text' style='height:20px;'/><textarea style='height:20px;'></textarea><div style='height:20px;'></div></div>").appendTo("body");

equals( div2.find("input").css("height"), "20px", "Height on hidden input." );
equals( div2.find("textarea").css("height"), "20px", "Height on hidden textarea." );
Expand Down
2 changes: 1 addition & 1 deletion test/unit/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ var testHtml = function(valueObj) {
}
ok( pass, "Set HTML" );

div = jQuery("<div/>").html( valueObj("<div id='parent_1'><div id='child_1'/></div><div id='parent_2'/>") );
div = jQuery("<div>").html( valueObj("<div id='parent_1'><div id='child_1'></div></div><div id='parent_2'></div>") );

equals( div.children().length, 2, "Make sure two child nodes exist." );
equals( div.children().children().length, 1, "Make sure that a grandchild exists." );
Expand Down