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
955fdb87
Commit
955fdb87
authored
Jan 07, 2007
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test for object/param selection (thanks Andrea)
parent
d7b73ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
index.html
build/test/index.html
+2
-2
selectorTest.js
src/selector/selectorTest.js
+2
-3
No files found.
build/test/index.html
View file @
955fdb87
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
</select>
</select>
<object
id=
"object1"
codebase=
"stupid"
>
<object
id=
"object1"
codebase=
"stupid"
>
<param
id=
"param
1"
/>
<param
name=
"p1"
value=
"x
1"
/>
<param
id=
"param
2"
/>
<param
name=
"p2"
value=
"x
2"
/>
</object>
</object>
</form>
</form>
<b
id=
"floatTest"
>
Float test.
</b>
<b
id=
"floatTest"
>
Float test.
</b>
...
...
src/selector/selectorTest.js
View file @
955fdb87
module
(
"selector"
);
module
(
"selector"
);
test
(
"expressions - element"
,
function
()
{
test
(
"expressions - element"
,
function
()
{
expect
(
7
);
expect
(
6
);
ok
(
$
(
"*"
).
size
()
>=
30
,
"Select all"
);
ok
(
$
(
"*"
).
size
()
>=
30
,
"Select all"
);
t
(
"Element Selector"
,
"div"
,
[
"main"
,
"foo"
]
);
t
(
"Element Selector"
,
"div"
,
[
"main"
,
"foo"
]
);
t
(
"Element Selector"
,
"body"
,
[
"body"
]
);
t
(
"Element Selector"
,
"body"
,
[
"body"
]
);
t
(
"Element Selector"
,
"html"
,
[
"html"
]
);
t
(
"Element Selector"
,
"html"
,
[
"html"
]
);
t
(
"Parent Element"
,
"div div"
,
[
"foo"
]
);
t
(
"Parent Element"
,
"div div"
,
[
"foo"
]
);
t
(
"Object/Param element"
,
"#object1 param"
,
[
"param1"
,
"param2"
]
);
ok
(
$
(
"param"
,
"#object1"
).
length
==
2
,
"Object/param as context"
);
ok
(
$
(
"param"
,
$
(
"#object1"
)[
0
]).
length
==
2
,
"Object/param as context"
);
});
});
test
(
"expressions - id"
,
function
()
{
test
(
"expressions - id"
,
function
()
{
...
...
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