blob: f341c4663000e852b7d5f0827d15281ed5359fec [file] [log] [blame]
Tests that the parameters to CSSStyleSheet.insertRule() / deleteRule() are mandatory.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS stylesheet.__proto__ is CSSStyleSheet.prototype
PASS stylesheet.deleteRule() threw exception TypeError: Not enough arguments.
PASS stylesheet.insertRule() threw exception TypeError: Not enough arguments.
PASS stylesheet.rules.length is 0
PASS stylesheet.insertRule('body { margin: 0; }') did not throw exception.
PASS stylesheet.rules.length is 1
PASS successfullyParsed is true
TEST COMPLETE