diff options
Diffstat (limited to 'LayoutTests/fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js')
-rw-r--r-- | LayoutTests/fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js b/LayoutTests/fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js new file mode 100644 index 0000000..793ed65 --- /dev/null +++ b/LayoutTests/fast/dom/StyleSheet/script-tests/get-stylesheet-byname.js @@ -0,0 +1,8 @@ +description("This test verifies that a StyleSheet object will be returned instead of a HTMLStyleElement when calling document.styleSheets named property getter."); + +var styleElement = document.createElement("style"); +styleElement.setAttribute("id", "test"); +document.head.appendChild(styleElement); +shouldBe('document.styleSheets["test"]', 'styleElement.sheet'); + +var successfullyParsed = true; |