mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
jQuery: scrollLeft /scrollTop test suites
This commit is contained in:
@@ -1814,6 +1814,20 @@ function test_outerWidth() {
|
||||
" , outerWidth( true ):" + p.outerWidth(true));
|
||||
}
|
||||
|
||||
function test_scrollLeft() {
|
||||
var p = $("p:first");
|
||||
$("p:last").text("scrollLeft:" + p.scrollLeft());
|
||||
|
||||
$("div.demo").scrollLeft(300);
|
||||
}
|
||||
|
||||
function test_scrollTop() {
|
||||
var p = $("p:first");
|
||||
$("p:last").text("scrollTop:" + p.scrollTop());
|
||||
|
||||
$("div.demo").scrollTop(300);
|
||||
}
|
||||
|
||||
function test_position() {
|
||||
var p = $("p:first");
|
||||
var position = p.position();
|
||||
|
||||
Reference in New Issue
Block a user