aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/ajax.js8
-rw-r--r--test/unit/css.js2
-rw-r--r--test/unit/manipulation.js8
-rw-r--r--test/unit/selector.js6
4 files changed, 12 insertions, 12 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index fbe1802b0..23fb0b473 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -503,7 +503,7 @@ QUnit.module( "ajax", {
}
),
request(
- " http://otherdomain.com",
+ " https://otherdomain.com",
"Cross-domain url with leading space is detected as cross-domain"
)
];
@@ -1507,7 +1507,7 @@ QUnit.module( "ajax", {
return {
// see RFC 2606
- url: "http://example.invalid",
+ url: "https://example.invalid",
error: function( xhr, _, e ) {
assert.ok( true, "file not found: " + xhr.status + " => " + e );
}
@@ -1516,7 +1516,7 @@ QUnit.module( "ajax", {
ajaxTest( "jQuery.ajax() - failing cross-domain", 1, function( assert ) {
return {
- url: "http://" + externalHost,
+ url: "https://" + externalHost,
error: function( xhr, _, e ) {
assert.ok( true, "access denied: " + xhr.status + " => " + e );
}
@@ -2113,7 +2113,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re
assert.strictEqual( status, "error", "proper status" );
}
}, {
- url: "http://" + externalHost + ":80q",
+ url: "https://" + externalHost + ":80q",
done: function( data ) {
assert.ok( false, "done: " + data );
},
diff --git a/test/unit/css.js b/test/unit/css.js
index e148f140d..32d2ba6ec 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1573,7 +1573,7 @@ QUnit.test(
// Firefox returns auto's value
name: "backgroundImage",
value: [ "url('test.png')", "url(" + baseURL + "test.png)", "url(\"" + baseURL + "test.png\")" ],
- expected: [ "none", "url(\"http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif\")" ]
+ expected: [ "none", "url(\"https://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif\")" ]
}, {
name: "backgroundPosition",
value: [ "5% 5%" ],
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 97a5267f3..d920c46c1 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -244,7 +244,7 @@ function testAppend( valueObj, assert ) {
jQuery( "<fieldset/>" ).appendTo( "#form" ).append( valueObj( "<legend id='legend'>test</legend>" ) );
assert.t( "Append legend", "#legend", [ "legend" ] );
- $map = jQuery( "<map/>" ).append( valueObj( "<area id='map01' shape='rect' coords='50,50,150,150' href='http://www.jquery.com/' alt='jQuery'>" ) );
+ $map = jQuery( "<map/>" ).append( valueObj( "<area id='map01' shape='rect' coords='50,50,150,150' href='https://www.jquery.com/' alt='jQuery'>" ) );
assert.equal( $map[ 0 ].childNodes.length, 1, "The area was inserted." );
assert.equal( $map[ 0 ].firstChild.nodeName.toLowerCase(), "area", "The area was inserted." );
@@ -1474,7 +1474,7 @@ QUnit.test( "clone()", function( assert ) {
div.remove();
// Test both html() and clone() for <embed> and <object> types
- div = jQuery( "<div/>" ).html( "<embed height='355' width='425' src='http://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'></embed>" );
+ div = jQuery( "<div/>" ).html( "<embed height='355' width='425' src='https://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'></embed>" );
clone = div.clone( true );
assert.equal( clone.length, 1, "One element cloned" );
@@ -1484,7 +1484,7 @@ QUnit.test( "clone()", function( assert ) {
// this is technically an invalid object, but because of the special
// classid instantiation it is the only kind that IE has trouble with,
// so let's test with it too.
- div = jQuery( "<div/>" ).html( "<object height='355' width='425' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'> <param name='movie' value='http://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='wmode' value='transparent'> </object>" );
+ div = jQuery( "<div/>" ).html( "<object height='355' width='425' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'> <param name='movie' value='https://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='wmode' value='transparent'> </object>" );
clone = div.clone( true );
assert.equal( clone.length, 1, "One element cloned" );
@@ -1511,7 +1511,7 @@ QUnit.test( "clone()", function( assert ) {
} )();
// and here's a valid one.
- div = jQuery( "<div/>" ).html( "<object height='355' width='425' type='application/x-shockwave-flash' data='http://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='movie' value='http://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='wmode' value='transparent'> </object>" );
+ div = jQuery( "<div/>" ).html( "<object height='355' width='425' type='application/x-shockwave-flash' data='https://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='movie' value='https://www.youtube.com/v/3KANI2dpXLw&amp;hl=en'> <param name='wmode' value='transparent'> </object>" );
clone = div.clone( true );
assert.equal( clone.length, 1, "One element cloned" );
diff --git a/test/unit/selector.js b/test/unit/selector.js
index f6e977094..461339335 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -537,7 +537,7 @@ QUnit.test( "attributes - equals", function( assert ) {
assert.t( "Identifier with underscore", "input[id=types_all]", [ "types_all" ] );
assert.t( "String", "#qunit-fixture a[rel='bookmark']", [ "simon1" ] );
assert.t( "String (whitespace ignored)", "#qunit-fixture a[ rel = 'bookmark' ]", [ "simon1" ] );
- assert.t( "Non-identifier string", "#qunit-fixture a[href='http://www.google.com/']", [ "google" ] );
+ assert.t( "Non-identifier string", "#qunit-fixture a[href='https://www.google.com/']", [ "google" ] );
assert.t( "Empty string", "#select1 option[value='']", [ "option1a" ] );
if ( QUnit.jQuerySelectors ) {
@@ -592,7 +592,7 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "attributes - does not equal",
QUnit.test( "attributes - starts with", function( assert ) {
assert.expect( 4 );
- assert.t( "string (whitespace ignored)", "a[href ^= 'http://www']", [ "google", "yahoo" ] );
+ assert.t( "string (whitespace ignored)", "a[href ^= 'https://www']", [ "google", "yahoo" ] );
assert.t( "href starts with hash", "p a[href^='#']", [ "anchor2" ] );
assert.t( "string containing '['", "input[name^='foo[']", [ "hidden2" ] );
assert.t( "string containing '[' ... ']'", "input[name^='foo[bar]']", [ "hidden2" ] );
@@ -1014,7 +1014,7 @@ QUnit.test( "pseudo - misc", function( assert ) {
tmp.id = "tmp_input";
tmp.innerHTML = "<span>Hello I am focusable.</span>";
// Setting tabIndex should make the element focusable
- // http://dev.w3.org/html5/spec/single-page.html#focus-management
+ // https://html.spec.whatwg.org/#the-tabindex-attribute
document.body.appendChild( tmp );
tmp.tabIndex = 0;
tmp.focus();