2010-01-18 16:59:11 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function ok(b,m) {
|
|
|
|
return external.ok(b, m);
|
|
|
|
}
|
|
|
|
|
[WINESYNC]
- Sync comdlg32, crypt32, gdiplus, inetcomm, jscript, msctf, mshtml, msxml3, rsaenh, schannel, shlwapi, urlmon, usp10, wininet winetests.
svn path=/trunk/; revision=46982
2010-04-21 20:35:09 +00:00
|
|
|
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");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-05-29 18:04:05 +00:00
|
|
|
function test_select_index() {
|
|
|
|
var s = document.getElementById("sel");
|
|
|
|
|
|
|
|
ok("0" in s, "'0' is not in s");
|
|
|
|
ok(s[0].text === "opt1", "s[0].text = " + s[0].text);
|
|
|
|
ok("1" in s, "'1 is not in s");
|
|
|
|
ok(s[1].text === "opt2", "s[1].text = " + s[1].text);
|
|
|
|
ok("2" in s, "'2' is in s");
|
|
|
|
ok(s[2] === null, "s[2] = " + s[2]);
|
|
|
|
}
|
|
|
|
|
2010-01-18 16:59:11 +00:00
|
|
|
function runTest() {
|
|
|
|
obj = new Object();
|
|
|
|
ok(obj === window.obj, "obj !== window.obj");
|
|
|
|
|
|
|
|
ok(typeof(divid) === "object", "typeof(divid) = " + typeof(divid));
|
|
|
|
|
[WINESYNC]
- Sync comdlg32, crypt32, gdiplus, inetcomm, jscript, msctf, mshtml, msxml3, rsaenh, schannel, shlwapi, urlmon, usp10, wininet winetests.
svn path=/trunk/; revision=46982
2010-04-21 20:35:09 +00:00
|
|
|
test_removeAttribute(document.getElementById("divid"));
|
|
|
|
test_removeAttribute(document.body);
|
2010-05-29 18:04:05 +00:00
|
|
|
test_select_index();
|
[WINESYNC]
- Sync comdlg32, crypt32, gdiplus, inetcomm, jscript, msctf, mshtml, msxml3, rsaenh, schannel, shlwapi, urlmon, usp10, wininet winetests.
svn path=/trunk/; revision=46982
2010-04-21 20:35:09 +00:00
|
|
|
|
2010-01-18 16:59:11 +00:00
|
|
|
external.reportSuccess();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="runTest();">
|
|
|
|
<div id="divid"></div>
|
2010-05-29 18:04:05 +00:00
|
|
|
<select id="sel">
|
|
|
|
<option>opt1</option>
|
|
|
|
<option>opt2</option>
|
|
|
|
</select>
|
2010-01-18 16:59:11 +00:00
|
|
|
</body>
|
|
|
|
</html>
|