blob: 0f457c6558e9f2142d5c2fdbebeeec635739cafa [file] [log] [blame]
This tests the insertRule(rule, index) and deleteRule(index) methods of the CSSMediaRule interface. It has passed if all of the output below begins with the text "PASS".
PASS: No exception raised! New rule inserted successfully.
PASS: Exception raised successfully. Type: IndexSizeError: Index or size was negative, or greater than the allowed value.
PASS: Exception raised successfully. Type: IndexSizeError: Index or size was negative, or greater than the allowed value.
PASS: Exception raised successfully. Type: SyntaxError: An invalid or illegal string was specified.
PASS: Exception raised successfully. Type: HierarchyRequestError: A Node was inserted somewhere it doesn't belong.
PASS: Exception raised successfully. Type: SyntaxError: An invalid or illegal string was specified.
PASS: Exception raised successfully. Type: SyntaxError: An invalid or illegal string was specified.
PASS: No exception raised! Rule at position 'length - 1' deleted successfully.
PASS: Exception raised successfully. Type: IndexSizeError: Index or size was negative, or greater than the allowed value.
PASS: Exception raised successfully. Type: IndexSizeError: Index or size was negative, or greater than the allowed value.