| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div> | 7 <div> |
| 8 <content id="content-simplest"></content> | 8 <content id="content-simplest"></content> |
| 9 </div> | 9 </div> |
| 10 <script> | 10 <script> |
| 11 description("This test ensure that the content element is available."); | 11 description("This test ensure that the content element is available."); |
| 12 var contentSimplest = document.getElementById("content-simplest"); | 12 var contentSimplest = document.getElementById("content-simplest"); |
| 13 shouldBe("contentSimplest.select", "''"); | 13 shouldBe("contentSimplest.select", "''"); |
| 14 contentSimplest.setAttribute("select", "foo"); | 14 contentSimplest.setAttribute("select", "foo"); |
| 15 shouldBe("contentSimplest.select", "'foo'"); | 15 shouldBe("contentSimplest.select", "'foo'"); |
| 16 contentSimplest.select = "bar" | 16 contentSimplest.select = "bar" |
| 17 shouldBe("contentSimplest.getAttribute('select')", "'bar'"); | 17 shouldBe("contentSimplest.getAttribute('select')", "'bar'"); |
| 18 shouldBeTrue("0 <= contentSimplest.constructor.toString().indexOf('HTMLContentEl
ement')"); | 18 shouldBeTrue("0 <= contentSimplest.constructor.toString().indexOf('HTMLContentEl
ement')"); |
| 19 shouldBe("window.HTMLContentElement", "contentSimplest.constructor"); | 19 shouldBe("window.HTMLContentElement", "contentSimplest.constructor"); |
| 20 </script> | 20 </script> |
| 21 <script src="../../js/resources/js-test-post.js"></script> | |
| 22 </body> | 21 </body> |
| 23 </html> | 22 </html> |
| OLD | NEW |