aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/draggable.js20
-rw-r--r--tests/slider.js2
-rw-r--r--tests/sortable.js2
-rw-r--r--tests/visual/spinner.html14
4 files changed, 19 insertions, 19 deletions
diff --git a/tests/draggable.js b/tests/draggable.js
index e0ffa660f..c9cd45678 100644
--- a/tests/draggable.js
+++ b/tests/draggable.js
@@ -291,7 +291,7 @@ test("{ cursor: 'move' }", function() {
el = $("#draggable2").draggable({
cursor: expected,
- start: function(e, ui) {
+ start: function(event, ui) {
actual = getCursor();
}
});
@@ -316,7 +316,7 @@ test("{ cursorAt: { left: -5, top: -5 } }", function() {
var actual = null;
$("#draggable2").draggable({
cursorAt: { left: cax, top: cay },
- drag: function(e, ui) {
+ drag: function(event, ui) {
actual = ui.absolutePosition;
}
});
@@ -340,7 +340,7 @@ test("{ cursorAt: { left: -5, top: -5 } }", function() {
var actual = null;
$("#draggable1").draggable({
cursorAt: { left: cax, top: cay },
- drag: function(e, ui) {
+ drag: function(event, ui) {
actual = ui.absolutePosition;
}
});
@@ -422,7 +422,7 @@ test("{ opacity: 0.5 }", function() {
var opacity = null;
el = $("#draggable2").draggable({
opacity: 0.5,
- start: function(e, ui) {
+ start: function(event, ui) {
opacity = $(this).css("opacity");
}
});
@@ -442,7 +442,7 @@ test("{ zIndex: 10 }", function() {
var zIndex = null;
el = $("#draggable2").draggable({
zIndex: expected,
- start: function(e, ui) {
+ start: function(event, ui) {
actual = $(this).css("zIndex");
}
});
@@ -566,7 +566,7 @@ test("{ helper: 'clone' }, absolute", function() {
var helperOffset = null;
var origOffset = $("#draggable1").offset();
- el = $("#draggable1").draggable({ helper: "clone", drag: function(e, ui) {
+ el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) {
helperOffset = ui.helper.offset();
} });
@@ -582,7 +582,7 @@ test("{ helper: 'clone' }, absolute with scroll offset on parent", function() {
var helperOffset = null;
var origOffset = $("#draggable1").offset();
- el = $("#draggable1").draggable({ helper: "clone", drag: function(e, ui) {
+ el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) {
helperOffset = ui.helper.offset();
} });
@@ -599,7 +599,7 @@ test("{ helper: 'clone' }, absolute with scroll offset on root", function() {
var helperOffset = null;
var origOffset = $("#draggable1").offset();
- el = $("#draggable1").draggable({ helper: "clone", drag: function(e, ui) {
+ el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) {
helperOffset = ui.helper.offset();
} });
@@ -617,7 +617,7 @@ test("{ helper: 'clone' }, absolute with scroll offset on root and parent", func
var helperOffset = null;
var origOffset = $("#draggable1").offset();
- el = $("#draggable1").draggable({ helper: "clone", drag: function(e, ui) {
+ el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) {
helperOffset = ui.helper.offset();
} });
@@ -649,7 +649,7 @@ test("#2965 cursorAt with margin", function() {
var actual, expected;
$("#draggable2").draggable({
cursorAt: { left: ox, top: oy },
- drag: function(e, ui) {
+ drag: function(event, ui) {
actual = ui.absolutePosition;
}
});
diff --git a/tests/slider.js b/tests/slider.js
index 3fbdd8b74..fa20f0339 100644
--- a/tests/slider.js
+++ b/tests/slider.js
@@ -41,7 +41,7 @@ function assertChange(stepping, start, result, action) {
startValue: start,
min: 0,
max: 1000,
- change: function(e, ui) {
+ change: function(event, ui) {
equals(ui.value, result, "changed to " + ui.value);
}
});
diff --git a/tests/sortable.js b/tests/sortable.js
index 2dd720e18..64b0b6833 100644
--- a/tests/sortable.js
+++ b/tests/sortable.js
@@ -135,7 +135,7 @@ test("defaults", function() {
test("#3019: Stop fires too early", function() {
var helper = null;
- el = $("#sortable").sortable({ stop: function(e, ui) {
+ el = $("#sortable").sortable({ stop: function(event, ui) {
helper = ui.helper;
}});
diff --git a/tests/visual/spinner.html b/tests/visual/spinner.html
index 438ce110e..b9151f9ad 100644
--- a/tests/visual/spinner.html
+++ b/tests/visual/spinner.html
@@ -47,7 +47,7 @@ $(function(){
// Two methods of adding external items to the spinner
//
// method 1: on initalisation call the add method directly and format html manually
- init: function(e, ui) {
+ init: function(event, ui) {
for (var i=0; i<itemList.length; i++) {
ui.add('<a href="'+ itemList[i].url +'" target="_blank">'+ itemList[i].title +'</a>');
}
@@ -59,19 +59,19 @@ $(function(){
},
// callbacks
's6': {
- init: function(e, ui) {
+ init: function(event, ui) {
console.log('init: '+ ui.value);
},
- up: function(e, ui) {
+ up: function(event, ui) {
console.log('up: '+ ui.value);
},
- down: function(e, ui) {
+ down: function(event, ui) {
console.log('down: '+ ui.value);
},
- spin: function(e, ui) {
+ spin: function(event, ui) {
console.log('spin: '+ ui.value);
},
- change: function(e, ui) {
+ change: function(event, ui) {
console.log('change: '+ ui.value);
}
}
@@ -80,7 +80,7 @@ $(function(){
for (var n in opts)
$("#"+n).spinner(opts[n]);
- $("button").click(function(e){
+ $("button").click(function(event){
var ns = $(this).attr('id').match(/(s\d)\-(\w+)$/);
if (ns != null)
$('#'+ns[1]).spinner( (ns[2] == 'create') ? opts[ns[1]] : ns[2]);