This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14590 - testharness.js doesn't allow testing for native ES errors
Summary: testharness.js doesn't allow testing for native ES errors
Status: RESOLVED WORKSFORME
Alias: None
Product: Testing
Classification: Unclassified
Component: testharness.js (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: James Graham
QA Contact: James Graham
URL:
Whiteboard:
Keywords:
Depends on: 14589
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-28 18:51 UTC by Aryeh Gregor
Modified: 2011-11-10 20:50 UTC (History)
1 user (show)

See Also:


Attachments

Description Aryeh Gregor 2011-10-28 18:51:57 UTC
We should be able to test for things like TypeError.  I'll write a patch once bug 14589 is fixed -- I don't want to write one now because it will just conflict.
Comment 1 Aryeh Gregor 2011-11-10 20:50:33 UTC
It seems like assert_throws(new TypeError(), ...) works.