Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
421f62ad
Commit
421f62ad
authored
May 17, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
May 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added whitespace parser tests.
parent
1c134c16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
jstest.html
dlls/mshtml/tests/jstest.html
+23
-0
No files found.
dlls/mshtml/tests/jstest.html
View file @
421f62ad
...
...
@@ -190,6 +190,28 @@ function test_customtag() {
ok
(
children
[
2
].
tagName
===
"BR"
,
"children[2].tagName = "
+
children
[
2
].
tagName
);
}
function
test_whitespace_nodes
()
{
document
.
body
.
innerHTML
=
'<table id="tid"> <tr>
\
t<td>
\
n
\
t<div></div> </td>
\
n </tr> </table>'
;
var
t
=
document
.
getElementById
(
"tid"
);
ok
(
t
.
childNodes
.
length
===
1
,
"t.childNodes.length = "
+
t
.
childNodes
.
length
);
ok
(
t
.
childNodes
[
0
].
tagName
===
"TBODY"
,
"t.childNodes[0].tagName = "
+
t
.
childNodes
[
0
].
tagName
);
var
row
=
t
.
rows
[
0
];
ok
(
row
.
childNodes
.
length
===
1
,
"row.childNodes.length = "
+
row
.
childNodes
.
length
);
ok
(
row
.
childNodes
[
0
].
tagName
===
"TD"
,
"row.childNodes[0].tagName = "
+
row
.
childNodes
[
0
].
tagName
);
var
cell
=
row
.
cells
[
0
];
ok
(
cell
.
childNodes
.
length
===
1
,
"cell.childNodes.length = "
+
cell
.
childNodes
.
length
);
document
.
body
.
innerHTML
=
'<table id="tid"> x<tr>
\
tx<td>
\
n
\
tx<div></div> </td>
\
n </tr> </table>'
;
t
=
document
.
getElementById
(
"tid"
);
ok
(
t
.
rows
[
0
].
cells
[
0
].
childNodes
.
length
===
2
,
"t.rows[0].cells[0].childNodes.length = "
+
t
.
rows
[
0
].
cells
[
0
].
childNodes
.
length
);
}
var
globalVar
=
false
;
function
runTests
()
{
...
...
@@ -212,6 +234,7 @@ function runTests() {
test_override_functions
();
test_forin
();
test_customtag
();
test_whitespace_nodes
();
var
r
=
window
.
execScript
(
"globalVar = true;"
);
ok
(
r
===
undefined
,
"execScript returned "
+
r
);
...
...
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