Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
75863340
Commit
75863340
authored
Feb 19, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added more ownerDocument property tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23b1d3a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
elements.js
dlls/mshtml/tests/elements.js
+23
-1
No files found.
dlls/mshtml/tests/elements.js
View file @
75863340
...
...
@@ -187,6 +187,27 @@ function test_compare_position() {
next_test
();
}
function
test_document_owner
()
{
var
node
;
ok
(
document
.
ownerDocument
===
null
,
"ownerDocument = "
+
document
.
ownerDocument
);
ok
(
document
.
body
.
ownerDocument
===
document
,
"body.ownerDocument = "
+
document
.
body
.
ownerDocument
);
ok
(
document
.
documentElement
.
ownerDocument
===
document
,
"documentElement.ownerDocument = "
+
document
.
documentElement
.
ownerDocument
);
node
=
document
.
createElement
(
"test"
);
ok
(
node
.
ownerDocument
===
document
,
"element.ownerDocument = "
+
node
.
ownerDocument
);
node
=
document
.
createDocumentFragment
(
"test"
);
ok
(
node
.
ownerDocument
===
document
,
"fragment.ownerDocument = "
+
node
.
ownerDocument
);
node
=
document
.
createTextNode
(
"test"
);
ok
(
node
.
ownerDocument
===
document
,
"text.ownerDocument = "
+
node
.
ownerDocument
);
next_test
();
}
var
tests
=
[
test_input_selection
,
test_textContent
,
...
...
@@ -195,5 +216,6 @@ var tests = [
test_head
,
test_iframe
,
test_query_selector
,
test_compare_position
test_compare_position
,
test_document_owner
];
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