This assertion is also poorly formed. Consider using the following instead:
assert_equals(e.name, "InvalidPointerId" , "DOMException should be InvalidPointerId");