aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/offset/relative.html
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-01-07 23:59:08 +0100
committerGitHub <noreply@github.com>2020-01-07 23:59:08 +0100
commit0f780ba7cc5968d53bba386bdcb59b8d9410873b (patch)
tree7b67a1637447eea398606dc516e1f7a8cd8e22ab /test/data/offset/relative.html
parent1dad1185e0b2ca2a13bf411558eda75fb2d4da88 (diff)
downloadjquery-0f780ba7cc5968d53bba386bdcb59b8d9410873b.tar.gz
jquery-0f780ba7cc5968d53bba386bdcb59b8d9410873b.zip
Build:Tests: Fix custom build tests, verify on Travis
This commit fixes unit tests for the following builds: 1. The no-deprecated build: `custom:-deprecated` 2. The current slim build: `custom:-ajax,-effects` 3. The future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects` It also adds separate Travis jobs for the no-deprecated & slim builds. Closes gh-4577
Diffstat (limited to 'test/data/offset/relative.html')
-rw-r--r--test/data/offset/relative.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/data/offset/relative.html b/test/data/offset/relative.html
index 288fd4ea3..0a092375d 100644
--- a/test/data/offset/relative.html
+++ b/test/data/offset/relative.html
@@ -14,15 +14,15 @@
<script src="../../jquery.js"></script>
<script src="../iframeTest.js"></script>
<script type="text/javascript" charset="utf-8">
- jQuery(function($) {
- $(".relative").click(function() {
- $("#marker").css( $(this).offset() );
- var pos = $(this).position();
- $(this).css({ position: 'absolute', top: pos.top, left: pos.left });
+ jQuery( function( $ ) {
+ $( ".relative" ).on( "click", function() {
+ $( "#marker" ).css( $( this ).offset() );
+ var pos = $( this ).position();
+ $( this ).css( { position: 'absolute', top: pos.top, left: pos.left } );
return false;
- });
+ } );
startIframeTest();
- });
+ } );
</script>
</head>
<body>