mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
cf1aa4d073
This way, implementations of other drivers can use the specs to verify that they are working correctly.
33 lines
971 B
JavaScript
33 lines
971 B
JavaScript
var activeRequests = 0;
|
|
$(function() {
|
|
$('#change').text('I changed it');
|
|
$('#drag').draggable();
|
|
$('#drop').droppable({
|
|
drop: function(event, ui) {
|
|
ui.draggable.remove();
|
|
$(this).html('Dropped!');
|
|
}
|
|
});
|
|
$('#clickable').click(function() {
|
|
var link = $(this);
|
|
setTimeout(function() {
|
|
$(link).after('<a href="#">Has been clicked</a>');
|
|
$(link).after('<input type="submit" value="New Here">');
|
|
$(link).after('<input type="text" id="new_field">');
|
|
$('#change').remove();
|
|
}, 500);
|
|
return false;
|
|
});
|
|
$('#waiter').change(function() {
|
|
activeRequests = 1;
|
|
setTimeout(function() {
|
|
activeRequests = 0;
|
|
}, 500);
|
|
});
|
|
$('#with_focus_event').focus(function() {
|
|
$('body').append('<p id="focus_event_triggered">Focus Event triggered</p>')
|
|
});
|
|
$('#checkbox_with_event').click(function() {
|
|
$('body').append('<p id="checkbox_event_triggered">Checkbox event triggered</p>')
|
|
});
|
|
});
|