OLD | NEW |
| (Empty) |
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 itemValue must reflect the src attribute on img elemen
t.</p> | |
9 <div id="console"></div> | |
10 <script> | |
11 var imgElement = createElement('img', {itemprop: 'foo', src: 'green.jpg'}); | |
12 shouldBe('imgElement.itemValue', 'imgElement.src'); | |
13 imgElement.src = 'red.jpg'; | |
14 shouldBe('imgElement.itemValue', "imgElement.src"); | |
15 imgElement.itemValue = 'blue.jpeg'; | |
16 shouldBe('imgElement.src', "imgElement.itemValue"); | |
17 | |
18 </script> | |
19 <script src="../../js/resources/js-test-post.js"></script> | |
20 </body> | |
21 </html | |
OLD | NEW |