kernel32: Remove superfluous heap reallocation calls in FormatMessageA/W.
[wine] / dlls / mshtml / tests / jstest.html
1 <html>
2 <head>
3 <script>
4 function ok(b,m) {
5     return external.ok(b, m);
6 }
7
8 function test_removeAttribute(e) {
9     ok(e.removeAttribute('nonexisting') === false, "removeAttribute('nonexisting') didn't return false");
10
11     e.title = "title";
12     ok(e.removeAttribute('title') === true, "removeAttribute('title') didn't return true");
13     ok(e.title === "", "e.title = " + e.title);
14     ok(("title" in e) === true, "title is not in e");
15
16     e["myattr"] = "test";
17     ok(e.removeAttribute('myattr') === true, "removeAttribute('myattr') didn't return true");
18     ok(e["myattr"] === undefined, "e['myattr'] = " + e['myattr']);
19     ok(("myattr" in e) === false, "myattr is in e");
20
21 }
22
23 function runTest() {
24     obj = new Object();
25     ok(obj === window.obj, "obj !== window.obj");
26
27     ok(typeof(divid) === "object", "typeof(divid) = " + typeof(divid));
28
29     test_removeAttribute(document.getElementById("divid"));
30     test_removeAttribute(document.body);
31
32     external.reportSuccess();
33 }
34 </script>
35 <body onload="runTest();">
36 <div id="divid"></div>
37 </body>
38 </html>