Pass | preconditions | Asserts runPass | assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "CSSStyleSheet and LinkStyle's sheet attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:27:9) | Pass | assert_equals(2, 2, "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:28:9) | Pass | assert_equals("body { width: 50%; }", "body { width: 50%; }", "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:29:9) | Pass | assert_equals("#foo { height: 100px; }", "#foo { height: 100px; }", "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:30:9) | Pass | assert_equals(undefined, undefined, "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:31:9) | Pass | assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "CSSStyleSheet and LinkStyle's sheet attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:33:9) | Pass | assert_equals(0, 0, "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:34:9) |
|
Pass | insertRule with #bar selector | Asserts runPass | assert_equals(3, 3, "CSSStyleSheet cssRules attribute after insertRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:39:9) | Pass | assert_equals("body { width: 50%; }", "body { width: 50%; }", "CSSStyleSheet cssRules attribute")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:40:9) | Pass | assert_equals("#bar { margin: 10px; }", "#bar { margin: 10px; }", "CSSStyleSheet cssRules attribute after insertRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:41:9) | Pass | assert_equals("#foo { height: 100px; }", "#foo { height: 100px; }", "CSSStyleSheet cssRules attribute after insertRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:42:9) | Pass | assert_equals(1, 1, "[SameObject] cssRules attribute after insertRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:43:9) | Pass | assert_equals(2, 2, "[SameObject] cssRules attribute after insertRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:44:9) |
|
Pass | insertRule with no argument throws | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { styleSheet.insertRule() }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:48:9) |
|
Pass | insertRule with index greater than length throws | Asserts runPass | assert_throws_dom("IndexSizeError", function "function() { styleSheet.insertRule("#bar { margin: 10px; }", styleSheet.cssRules.length + 1) }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:52:9) |
|
Pass | deleteRule(1) | Asserts runPass | assert_equals(2, 2, "CSSStyleSheet cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:59:9) | Pass | assert_equals("body { width: 50%; }", "body { width: 50%; }", "CSSStyleSheet cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:60:9) | Pass | assert_equals("#foo { height: 100px; }", "#foo { height: 100px; }", "CSSStyleSheet cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:61:9) | Pass | assert_equals(undefined, undefined, "CSSStyleSheet cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:62:9) | Pass | assert_equals(1, 1, "[SameObject] cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:63:9) | Pass | assert_equals(2, 2, "[SameObject] cssRules attribute after deleteRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:64:9) |
|
Pass | deleteRule with no argument throws | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { styleSheet.deleteRule() }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:68:9) |
|
Pass | deleteRule on empty style sheet throws | Asserts runPass | assert_throws_dom("IndexSizeError", function "function() { emptyStyleSheet.deleteRule(0) }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:72:9) |
|
Pass | removeRule with no argument removes first rule | Asserts runPass | assert_equals(1, 1, "CSSStyleSheet cssRules attribute after removeRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:77:9) | Pass | assert_equals("#foo { height: 100px; }", "#foo { height: 100px; }", "CSSStyleSheet cssRules attribute after removeRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:78:9) |
|
Pass | removeRule on empty style sheet throws | Asserts runPass | assert_throws_dom("IndexSizeError", function "function() { emptyStyleSheet.removeRule(0) }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:82:9) |
|
Pass | addRule with @media rule | Asserts runPass | assert_equals(-1, -1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:86:9) | Pass | assert_equals(2, 2, "CSSStyleSheet cssRules attribute after addRule function")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:87:9) | Pass | assert_true(true, "CSSStyleSheet addRule does some silly string concatenation")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:88:9) |
|
Pass | removeRule(1) | Asserts runPass | assert_equals(1, 1, "CSSStyleSheet cssRules attribute after removeRule function with index")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:93:9) | Pass | assert_equals("#foo { height: 100px; }", "#foo { height: 100px; }", "CSSStyleSheet cssRules attribute after deleteRule function with index")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:94:9) |
|
Pass | addRule with #foo selectors | Asserts runPass | assert_equals(-1, -1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:98:9) | Pass | assert_equals(2, 2, "CSSStyleSheet cssRules attribute after addRule function with simple selector")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:99:9) | Pass | assert_equals("#foo { color: red; }", "#foo { color: red; }", "CSSStyleSheet cssRules attribute after addRule function without index appends to the end")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:100:9) | Pass | assert_equals(-1, -1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:102:9) | Pass | assert_equals(3, 3, "CSSStyleSheet cssRules attribute after addRule function with simple selector with index")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:103:9) | Pass | assert_equals("#foo { color: blue; }", "#foo { color: blue; }", "addRule function with index performs an insertion")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:104:9) |
|
Pass | addRule with no argument adds "undefined" selector | Asserts runPass | assert_equals(-1, -1)
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:108:9) | Pass | assert_equals(4, 4, "CSSStyleSheet cssRules attribute after addRule function without arguments")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:109:9) | Pass | assert_equals("undefined { }", "undefined { }", "addRule arguments default to undefined")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:110:9) |
|
Pass | addRule with index greater than length throws | Asserts runPass | assert_throws_dom("IndexSizeError", function "function() { styleSheet.addRule("#foo", "color: red", styleSheet.cssRules.length + 1); }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:114:9) |
|
Pass | cssRules and rules are the same object | Asserts runPass | assert_equals(object "[object CSSRuleList]", object "[object CSSRuleList]")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:120:9) |
|
Pass | cssRules returns the same object twice | Asserts runPass | assert_equals(object "[object CSSRuleList]", object "[object CSSRuleList]")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:124:9) |
|
Pass | rules returns the same object twice | Asserts runPass | assert_equals(object "[object CSSRuleList]", object "[object CSSRuleList]")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet.html:128:9) |
|