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