Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
10e65421
Commit
10e65421
authored
Mar 10, 2014
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajax, Effects: Disable Chrome 31 workarounds
parent
bb1db391
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
30 deletions
+11
-30
ajax.js
test/unit/ajax.js
+4
-11
effects.js
test/unit/effects.js
+7
-19
No files found.
test/unit/ajax.js
View file @
10e65421
...
@@ -1586,17 +1586,10 @@ module( "ajax", {
...
@@ -1586,17 +1586,10 @@ module( "ajax", {
}
}
});
});
// Support: Chrome 31.
testIframeWithCallback
(
"#14379 - jQuery.ajax() on unload"
,
"ajax/onunload.html"
,
function
(
status
)
{
// Chrome 31 doesn't fire Ajax requests in beforeunload event handler.
expect
(
1
);
// There is no way for us to workaround it and it's been fixed in Chrome 32
strictEqual
(
status
,
"success"
,
"Request completed"
);
// so let's just blacklist Chrome 31 as long as it's in TestSwarm.
});
// See https://code.google.com/p/chromium/issues/detail?id=321241
if
(
navigator
.
userAgent
.
indexOf
(
" Chrome/31."
)
===
-
1
)
{
testIframeWithCallback
(
"#14379 - jQuery.ajax() on unload"
,
"ajax/onunload.html"
,
function
(
status
)
{
expect
(
1
);
strictEqual
(
status
,
"success"
,
"Request completed"
);
});
}
//----------- jQuery.ajaxPrefilter()
//----------- jQuery.ajaxPrefilter()
...
...
test/unit/effects.js
View file @
10e65421
...
@@ -395,32 +395,20 @@ test("animate table-row width/height", function() {
...
@@ -395,32 +395,20 @@ test("animate table-row width/height", function() {
});
});
test
(
"animate table-cell width/height"
,
function
()
{
test
(
"animate table-cell width/height"
,
function
()
{
// Support: Chrome 31.
expect
(
3
);
// Chrome 31 reports incorrect offsetWidth on a table cell with fixed width.
// This is fixed in Chrome 32 so let's just skip the failing test in Chrome 31.
// See https://code.google.com/p/chromium/issues/detail?id=290399
var
displayMode
,
td
,
chrome31
=
navigator
.
userAgent
.
indexOf
(
" Chrome/31."
)
!==
-
1
;
if
(
chrome31
)
{
expect
(
2
);
}
else
{
expect
(
3
);
}
td
=
jQuery
(
"#table"
)
var
displayMode
,
td
=
jQuery
(
"#table"
)
.
attr
({
"cellspacing"
:
0
,
"cellpadding"
:
0
,
"border"
:
0
})
.
attr
({
"cellspacing"
:
0
,
"cellpadding"
:
0
,
"border"
:
0
})
.
html
(
"<tr><td style='width:42px;height:42px;padding:0;'><div style='width:20px;height:20px;'></div></td></tr>"
)
.
html
(
"<tr><td style='width:42px;height:42px;padding:0;'><div style='width:20px;height:20px;'></div></td></tr>"
)
.
find
(
"td"
);
.
find
(
"td"
);
// IE<8 uses "block" instead of the correct display type
// IE<8 uses "block" instead of the correct display type
displayMode
=
td
.
css
(
"display"
)
!==
"table-cell"
?
"block"
:
"table-cell"
;
displayMode
=
td
.
css
(
"display"
)
!==
"table-cell"
?
"block"
:
"table-cell"
;
td
.
animate
({
width
:
10
,
height
:
10
},
100
,
function
()
{
td
.
animate
({
width
:
10
,
height
:
10
},
100
,
function
()
{
equal
(
jQuery
(
this
).
css
(
"display"
),
displayMode
,
"display mode is correct"
);
equal
(
jQuery
(
this
).
css
(
"display"
),
displayMode
,
"display mode is correct"
);
if
(
!
chrome31
)
{
equal
(
this
.
offsetWidth
,
20
,
"width animated to shrink wrap point"
);
equal
(
this
.
offsetWidth
,
20
,
"width animated to shrink wrap point"
);
}
equal
(
this
.
offsetHeight
,
20
,
"height animated to shrink wrap point"
);
equal
(
this
.
offsetHeight
,
20
,
"height animated to shrink wrap point"
);
});
});
this
.
clock
.
tick
(
100
);
this
.
clock
.
tick
(
100
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment