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
16249f0a
Commit
16249f0a
authored
Apr 15, 2012
by
Yehuda Katz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some stragglers
parent
6bc08c2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
16 deletions
+10
-16
attributes.js
test/unit/attributes.js
+9
-14
core.js
test/unit/core.js
+1
-2
No files found.
test/unit/attributes.js
View file @
16249f0a
...
@@ -387,21 +387,16 @@ test("attr(jquery_method)", function(){
...
@@ -387,21 +387,16 @@ test("attr(jquery_method)", function(){
equal
(
elem
.
style
.
paddingRight
,
"1px"
,
"attr({...})"
);
equal
(
elem
.
style
.
paddingRight
,
"1px"
,
"attr({...})"
);
});
});
if
(
!
isLocal
)
{
test
(
"attr(String, Object) - Loaded via XML document"
,
function
()
{
test
(
"attr(String, Object) - Loaded via XML document"
,
function
()
{
expect
(
2
);
expect
(
2
);
var
xml
=
createDashboardXML
();
stop
();
var
titles
=
[];
jQuery
.
get
(
"data/dashboard.xml"
,
function
(
xml
)
{
jQuery
(
"tab"
,
xml
).
each
(
function
()
{
var
titles
=
[];
titles
.
push
(
jQuery
(
this
).
attr
(
"title"
)
);
jQuery
(
"tab"
,
xml
).
each
(
function
()
{
titles
.
push
(
jQuery
(
this
).
attr
(
"title"
)
);
});
equal
(
titles
[
0
],
"Location"
,
"attr() in XML context: Check first title"
);
equal
(
titles
[
1
],
"Users"
,
"attr() in XML context: Check second title"
);
start
();
});
});
});
}
equal
(
titles
[
0
],
"Location"
,
"attr() in XML context: Check first title"
);
equal
(
titles
[
1
],
"Users"
,
"attr() in XML context: Check second title"
);
});
test
(
"attr('tabindex')"
,
function
()
{
test
(
"attr('tabindex')"
,
function
()
{
expect
(
8
);
expect
(
8
);
...
...
test/unit/core.js
View file @
16249f0a
...
@@ -552,8 +552,7 @@ test("XSS via location.hash", function() {
...
@@ -552,8 +552,7 @@ test("XSS via location.hash", function() {
test
(
"isXMLDoc - XML"
,
function
()
{
test
(
"isXMLDoc - XML"
,
function
()
{
expect
(
3
);
expect
(
3
);
var
xml
=
createXMLDocument
();
var
xml
=
createDashboardXML
();
xml
.
documentElement
.
appendChild
(
xml
.
createElement
(
"tab"
)
);
ok
(
jQuery
.
isXMLDoc
(
xml
),
"XML document"
);
ok
(
jQuery
.
isXMLDoc
(
xml
),
"XML document"
);
ok
(
jQuery
.
isXMLDoc
(
xml
.
documentElement
),
"XML documentElement"
);
ok
(
jQuery
.
isXMLDoc
(
xml
.
documentElement
),
"XML documentElement"
);
ok
(
jQuery
.
isXMLDoc
(
jQuery
(
"tab"
,
xml
)[
0
]
),
"XML Tab Element"
);
ok
(
jQuery
.
isXMLDoc
(
jQuery
(
"tab"
,
xml
)[
0
]
),
"XML Tab Element"
);
...
...
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