OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> | 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> |
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 <p>Test [un]registering a <style scoped> element from its parent</p> | 7 <p>Test [un]registering a <style scoped> element from its parent</p> |
8 <div id="scope1"> | 8 <div id="scope1"> |
9 <style id="global1"></style> | 9 <style id="global1"></style> |
10 <style scoped='scoped1' id="scoped1"></style> | 10 <style scoped='scoped1' id="scoped1"></style> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped1.scoped = false; | 132 scoped1.scoped = false; |
133 scoped2.removeAttribute('scoped'); | 133 scoped2.removeAttribute('scoped'); |
134 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope1)", "1");
/* in tree, child of scope2 */ | 134 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope1)", "1");
/* in tree, child of scope2 */ |
135 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope2)", "0");
/* in tree */ | 135 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope2)", "0");
/* in tree */ |
136 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope3)", "4");
/* in tree */ | 136 shouldBe("internals.numberOfScopedHTMLStyleChildren(scope3)", "4");
/* in tree */ |
137 | 137 |
138 debug("--- DONE ---"); | 138 debug("--- DONE ---"); |
139 } | 139 } |
140 var successfullyParsed = true; | 140 var successfullyParsed = true; |
141 </script> | 141 </script> |
142 <script src="../../js/resources/js-test-post.js"></script> | |
143 </body> | 142 </body> |
144 </html> | 143 </html> |
OLD | NEW |