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
621694ef
Commit
621694ef
authored
Mar 24, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement:removeAttribute tests.
parent
00293e9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
jstest.html
dlls/mshtml/tests/jstest.html
+18
-0
No files found.
dlls/mshtml/tests/jstest.html
View file @
621694ef
...
...
@@ -5,12 +5,30 @@ function ok(b,m) {
return
external
.
ok
(
b
,
m
);
}
function
test_removeAttribute
(
e
)
{
ok
(
e
.
removeAttribute
(
'nonexisting'
)
===
false
,
"removeAttribute('nonexisting') didn't return false"
);
e
.
title
=
"title"
;
ok
(
e
.
removeAttribute
(
'title'
)
===
true
,
"removeAttribute('title') didn't return true"
);
ok
(
e
.
title
===
""
,
"e.title = "
+
e
.
title
);
ok
((
"title"
in
e
)
===
true
,
"title is not in e"
);
e
[
"myattr"
]
=
"test"
;
ok
(
e
.
removeAttribute
(
'myattr'
)
===
true
,
"removeAttribute('myattr') didn't return true"
);
ok
(
e
[
"myattr"
]
===
undefined
,
"e['myattr'] = "
+
e
[
'myattr'
]);
ok
((
"myattr"
in
e
)
===
false
,
"myattr is in e"
);
}
function
runTest
()
{
obj
=
new
Object
();
ok
(
obj
===
window
.
obj
,
"obj !== window.obj"
);
ok
(
typeof
(
divid
)
===
"object"
,
"typeof(divid) = "
+
typeof
(
divid
));
test_removeAttribute
(
document
.
getElementById
(
"divid"
));
test_removeAttribute
(
document
.
body
);
external
.
reportSuccess
();
}
</script>
...
...
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