JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / fast / dom / MicroData / itemprop-reflected-by-itemProp-property.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script src="resources/microdata-common.js"></script>
6 </head>
7 <body>
8 <p>This test ensures that the itemprop attribute must be reflected by the .itemProp property.</p>
9 <div id="console"></div>
10 <script>
11 var element = createElement('div', {itemprop: 'http://example.com/foo'});
12
13 shouldBeDefined("element.itemProp");
14 shouldBe("element.itemProp.toString()", "'http://example.com/foo'");
15
16 element.removeAttribute('itemProp');
17 shouldBe("element.itemProp.toString()", "''");
18
19 </script>
20 <script src="../../js/resources/js-test-post.js"></script>
21 </body>
22 </html>