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
e0b606d2
Commit
e0b606d2
authored
Jan 27, 2014
by
Oleg Gaidarenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Remove uselss "keys" helper
parent
b26628a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
testrunner.js
test/data/testrunner.js
+1
-15
No files found.
test/data/testrunner.js
View file @
e0b606d2
...
@@ -35,20 +35,6 @@ window.start = function() {
...
@@ -35,20 +35,6 @@ window.start = function() {
oldStart
();
oldStart
();
};
};
function
keys
(
o
)
{
var
ret
,
key
;
if
(
Object
.
keys
)
{
ret
=
Object
.
keys
(
o
);
}
else
{
ret
=
[];
for
(
key
in
o
)
{
ret
.
push
(
key
);
}
}
ret
.
sort
();
return
ret
;
}
/**
/**
* @param {jQuery|HTMLElement|Object|Array} elems Target (or array of targets) for jQuery.data.
* @param {jQuery|HTMLElement|Object|Array} elems Target (or array of targets) for jQuery.data.
* @param {string} key
* @param {string} key
...
@@ -123,7 +109,7 @@ window.moduleTeardown = function() {
...
@@ -123,7 +109,7 @@ window.moduleTeardown = function() {
if
(
QUnit
.
urlParams
.
jqdata
||
this
.
checkJqData
)
{
if
(
QUnit
.
urlParams
.
jqdata
||
this
.
checkJqData
)
{
for
(
i
in
jQuery
.
cache
)
{
for
(
i
in
jQuery
.
cache
)
{
expectedKeys
=
expectedDataKeys
[
i
];
expectedKeys
=
expectedDataKeys
[
i
];
actualKeys
=
jQuery
.
cache
[
i
]
?
keys
(
jQuery
.
cache
[
i
]
)
:
jQuery
.
cache
[
i
];
actualKeys
=
jQuery
.
cache
[
i
]
?
Object
.
keys
(
jQuery
.
cache
[
i
]
)
:
jQuery
.
cache
[
i
];
if
(
!
QUnit
.
equiv
(
expectedKeys
,
actualKeys
)
)
{
if
(
!
QUnit
.
equiv
(
expectedKeys
,
actualKeys
)
)
{
deepEqual
(
actualKeys
,
expectedKeys
,
"Expected keys exist in jQuery.cache"
);
deepEqual
(
actualKeys
,
expectedKeys
,
"Expected keys exist in jQuery.cache"
);
}
}
...
...
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