blob: 793ed652857655ff633001c4577b36fa6050d12f (
plain)
1
2
3
4
5
6
7
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;
|