aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-02-05 22:00:56 +0100
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-02-05 23:21:21 +0100
commit627c573ac62e6582b4b324bcc6a1283ca48c3906 (patch)
treee4397bd21165482790d3d5b901a5a880699923cb /test/unit
parent15b62a2eb5d65ff4c830d8a5c7629d30f852cbb1 (diff)
downloadjquery-627c573ac62e6582b4b324bcc6a1283ca48c3906.tar.gz
jquery-627c573ac62e6582b4b324bcc6a1283ca48c3906.zip
Build: Rename master to main across the repository
The default branch was updated, this updates the remaining occurrences in code & comments. Closes gh-4838 (cherry picked from commit 8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f)
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/offset.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index 5607ddaf9..814de29a9 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -69,7 +69,7 @@ QUnit.test( "disconnected element", function( assert ) {
var result = jQuery( document.createElement( "div" ) ).offset();
- // These tests are solely for master/compat consistency
+ // These tests are solely for main/compat consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
assert.equal( result.top, 0, "Retrieving offset on disconnected elements returns zeros (gh-2310)" );
@@ -86,7 +86,7 @@ QUnit.test( "hidden (display: none) element", function( assert ) {
node.remove();
- // These tests are solely for master/compat consistency
+ // These tests are solely for main/compat consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
assert.equal( result.top, 0, "Retrieving offset on hidden elements returns zeros (gh-2310)" );
@@ -484,7 +484,7 @@ testIframe( "scroll", "offset/scroll.html", function( assert, $, win ) {
assert.equal( $( "#scroll-1-1" ).offset().top, 11, "jQuery('#scroll-1-1').offset().top" );
assert.equal( $( "#scroll-1-1" ).offset().left, 11, "jQuery('#scroll-1-1').offset().left" );
- // These tests are solely for master/compat consistency
+ // These tests are solely for main/compat consistency
// Retrieving offset on disconnected/hidden elements is not officially
// valid input, but will return zeros for back-compat
assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" );