9 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!22391V4 dev,!22143Fix selectable disabled toggle radio buttons,!22598test,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!17021v4
// Disable jQuery event aliases to ensure we don't accidentally use any of them
(function(){
vareventAliases=[
'blur',
'focus',
'focusin',
'focusout',
'load',
'resize',
'scroll',
'unload',
'click',
'dblclick',
'mousedown',
'mouseup',
'mousemove',
'mouseover',
'mouseout',
'mouseenter',
'mouseleave',
'change',
'select',
'submit',
'keydown',
'keypress',
'keyup',
'error',
'contextmenu',
'hover',
'bind',
'unbind',
'delegate',
'undelegate'
]
for(vari=0;i<eventAliases.length;i++){
vareventAlias=eventAliases[i]
$.fn[eventAlias]=function(){
thrownewError('Using the ".'+eventAlias+'()" method is not allowed, so that Bootstrap can be compatible with custom jQuery builds which exclude the "event aliases" module that defines said method. See https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md#js')
// See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
varlog=[]
// Disable jQuery event aliases to ensure we don't accidentally use any of them
[
'blur',
'focus',
'focusin',
'focusout',
'resize',
'scroll',
'click',
'dblclick',
'mousedown',
'mouseup',
'mousemove',
'mouseover',
'mouseout',
'mouseenter',
'mouseleave',
'change',
'select',
'submit',
'keydown',
'keypress',
'keyup',
'contextmenu'
].forEach(function(eventAlias){
$.fn[eventAlias]=function(){
thrownewError('Using the ".'+eventAlias+'()" method is not allowed, so that Bootstrap can be compatible with custom jQuery builds which exclude the "event aliases" module that defines said method. See https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md#js')
}
})
// Require assert.expect in each test
QUnit.config.requireExpects=true
QUnit.done(function(testResults){
// See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
varlog=[]
vartestName
QUnit.done(function(testResults){
vartests=[]
for(vari=0,len=log.length;i<len;i++){
for(vari=0;i<log.length;i++){
vardetails=log[i]
tests.push({
name:details.name,
...
...
@@ -77,9 +68,8 @@
window.global_test_results=testResults
})
QUnit.testStart(function(testDetails){
$(window).scrollTop(0)
QUnit.log(function(details){
QUnit.testStart(function(testDetails){
QUnit.log(function(details){
if(!details.result){
details.name=testDetails.name
log.push(details)
...
...
@@ -89,51 +79,23 @@
// Cleanup
QUnit.testDone(function(){
$('#qunit-fixture').empty()
$('#modal-test, .modal-backdrop').remove()
})
// Display fixture on-screen on iOS to avoid false positives
// See https://github.com/twbs/bootstrap/pull/15955
if(/iPhone|iPad|iPod/.test(navigator.userAgent)){
QUnit.begin(function(){
$('#qunit-fixture').css({top:0,left:0})
})
QUnit.done(function(){
QUnit.done(function(){
$('#qunit-fixture').css({top:'',left:''})
})
}
// Disable deprecated global QUnit method aliases in preparation for QUnit v2